@focus-reactive/payload-plugin-translator 0.1.0 → 0.1.1
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.
- package/README.md +27 -14
- package/package.json +3 -1
- package/dist/client/app/cache/CacheProvider.d.ts.map +0 -1
- package/dist/client/app/cache/CacheProvider.export.d.ts.map +0 -1
- package/dist/client/app/cache/CacheProvider.export.js.map +0 -1
- package/dist/client/app/cache/CacheProvider.js.map +0 -1
- package/dist/client/app/cache/CacheProvider.jsx +0 -11
- package/dist/client/app/config/TranslateKitConfigContext.d.ts.map +0 -1
- package/dist/client/app/config/TranslateKitConfigContext.js.map +0 -1
- package/dist/client/app/config/TranslateKitConfigContext.jsx +0 -13
- package/dist/client/app/config/index.d.ts.map +0 -1
- package/dist/client/app/config/index.js.map +0 -1
- package/dist/client/entities/translation/api/mutations/useCancelCollectionTranslations.d.ts.map +0 -1
- package/dist/client/entities/translation/api/mutations/useCancelCollectionTranslations.js.map +0 -1
- package/dist/client/entities/translation/api/mutations/useCancelDocumentTranslation.d.ts.map +0 -1
- package/dist/client/entities/translation/api/mutations/useCancelDocumentTranslation.js.map +0 -1
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.d.ts.map +0 -1
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.js.map +0 -1
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslations.d.ts.map +0 -1
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslations.js.map +0 -1
- package/dist/client/entities/translation/api/mutations/useRunDocumentTranslation.d.ts.map +0 -1
- package/dist/client/entities/translation/api/mutations/useRunDocumentTranslation.js.map +0 -1
- package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.d.ts.map +0 -1
- package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.js.map +0 -1
- package/dist/client/entities/translation/api/queries/useDocumentTranslation.d.ts.map +0 -1
- package/dist/client/entities/translation/api/queries/useDocumentTranslation.js.map +0 -1
- package/dist/client/entities/translation/index.d.ts.map +0 -1
- package/dist/client/entities/translation/index.js.map +0 -1
- package/dist/client/entities/translation/model/enums.d.ts.map +0 -1
- package/dist/client/entities/translation/model/enums.js.map +0 -1
- package/dist/client/entities/translation/model/types.d.ts.map +0 -1
- package/dist/client/entities/translation/model/types.js.map +0 -1
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.js.map +0 -1
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.jsx +0 -25
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.js.map +0 -1
- package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.js.map +0 -1
- package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.jsx +0 -24
- package/dist/client/entities/translation/ui/FailedTranslationStatus/index.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/FailedTranslationStatus/index.js.map +0 -1
- package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.js.map +0 -1
- package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.jsx +0 -38
- package/dist/client/entities/translation/ui/PendingTranslationStatus/index.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/PendingTranslationStatus/index.js.map +0 -1
- package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.js.map +0 -1
- package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.jsx +0 -32
- package/dist/client/entities/translation/ui/RunningTranslationStatus/index.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/RunningTranslationStatus/index.js.map +0 -1
- package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.js.map +0 -1
- package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.jsx +0 -16
- package/dist/client/entities/translation/ui/TranslationDirection/index.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/TranslationDirection/index.js.map +0 -1
- package/dist/client/features/collection-translation-form/index.client.d.ts.map +0 -1
- package/dist/client/features/collection-translation-form/index.client.js.map +0 -1
- package/dist/client/features/collection-translation-form/index.d.ts.map +0 -1
- package/dist/client/features/collection-translation-form/index.js.map +0 -1
- package/dist/client/features/collection-translation-form/model/constants.d.ts.map +0 -1
- package/dist/client/features/collection-translation-form/model/constants.js.map +0 -1
- package/dist/client/features/collection-translation-form/model/form-model.d.ts.map +0 -1
- package/dist/client/features/collection-translation-form/model/form-model.js.map +0 -1
- package/dist/client/features/collection-translation-form/model/index.d.ts.map +0 -1
- package/dist/client/features/collection-translation-form/model/index.js.map +0 -1
- package/dist/client/features/collection-translation-form/model/schema.d.ts.map +0 -1
- package/dist/client/features/collection-translation-form/model/schema.js.map +0 -1
- package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.d.ts.map +0 -1
- package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.js.map +0 -1
- package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.jsx +0 -25
- package/dist/client/features/collection-translation-form/ui/index.d.ts.map +0 -1
- package/dist/client/features/collection-translation-form/ui/index.js.map +0 -1
- package/dist/client/features/collection-translation-popup/index.d.ts.map +0 -1
- package/dist/client/features/collection-translation-popup/index.js.map +0 -1
- package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.d.ts.map +0 -1
- package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.js.map +0 -1
- package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.jsx +0 -23
- package/dist/client/features/collection-translation-progress/index.d.ts.map +0 -1
- package/dist/client/features/collection-translation-progress/index.js.map +0 -1
- package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.d.ts.map +0 -1
- package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.js.map +0 -1
- package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.jsx +0 -47
- package/dist/client/features/document-translation-progress-failed/index.d.ts.map +0 -1
- package/dist/client/features/document-translation-progress-failed/index.js.map +0 -1
- package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.d.ts.map +0 -1
- package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.js.map +0 -1
- package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.jsx +0 -19
- package/dist/client/features/document-translation-progress-pending/index.d.ts.map +0 -1
- package/dist/client/features/document-translation-progress-pending/index.js.map +0 -1
- package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.d.ts.map +0 -1
- package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.js.map +0 -1
- package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.jsx +0 -34
- package/dist/client/features/document-translation-progress-running/index.d.ts.map +0 -1
- package/dist/client/features/document-translation-progress-running/index.js.map +0 -1
- package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.d.ts.map +0 -1
- package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.js.map +0 -1
- package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.jsx +0 -19
- package/dist/client/features/open-document-translation-popup/index.d.ts.map +0 -1
- package/dist/client/features/open-document-translation-popup/index.js.map +0 -1
- package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.d.ts.map +0 -1
- package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.js.map +0 -1
- package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.jsx +0 -15
- package/dist/client/features/translate-document-form/index.client.d.ts.map +0 -1
- package/dist/client/features/translate-document-form/index.client.js.map +0 -1
- package/dist/client/features/translate-document-form/index.d.ts.map +0 -1
- package/dist/client/features/translate-document-form/index.js.map +0 -1
- package/dist/client/features/translate-document-form/model/constants.d.ts.map +0 -1
- package/dist/client/features/translate-document-form/model/constants.js.map +0 -1
- package/dist/client/features/translate-document-form/model/form-model.d.ts.map +0 -1
- package/dist/client/features/translate-document-form/model/form-model.js.map +0 -1
- package/dist/client/features/translate-document-form/model/index.d.ts.map +0 -1
- package/dist/client/features/translate-document-form/model/index.js.map +0 -1
- package/dist/client/features/translate-document-form/model/schema.d.ts.map +0 -1
- package/dist/client/features/translate-document-form/model/schema.js.map +0 -1
- package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.d.ts.map +0 -1
- package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.js.map +0 -1
- package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.jsx +0 -24
- package/dist/client/features/translate-document-form/ui/index.d.ts.map +0 -1
- package/dist/client/features/translate-document-form/ui/index.js.map +0 -1
- package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.d.ts.map +0 -1
- package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.js.map +0 -1
- package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.jsx +0 -4
- package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.d.ts.map +0 -1
- package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.js.map +0 -1
- package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.jsx +0 -3
- package/dist/client/shared/lib/assets/icons/ReloadIcon.d.ts.map +0 -1
- package/dist/client/shared/lib/assets/icons/ReloadIcon.js.map +0 -1
- package/dist/client/shared/lib/assets/icons/ReloadIcon.jsx +0 -3
- package/dist/client/shared/lib/errors/handleApiError.d.ts.map +0 -1
- package/dist/client/shared/lib/errors/handleApiError.js.map +0 -1
- package/dist/client/shared/lib/forms/handle-form-error.d.ts.map +0 -1
- package/dist/client/shared/lib/forms/handle-form-error.js.map +0 -1
- package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.d.ts.map +0 -1
- package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.js.map +0 -1
- package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.d.ts.map +0 -1
- package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.js.map +0 -1
- package/dist/client/shared/lib/payload/hooks/useLocaleOptions.d.ts.map +0 -1
- package/dist/client/shared/lib/payload/hooks/useLocaleOptions.js.map +0 -1
- package/dist/client/shared/lib/utils/errors/handleApiError.d.ts.map +0 -1
- package/dist/client/shared/lib/utils/errors/handleApiError.js.map +0 -1
- package/dist/client/shared/lib/utils/react/useToggle.d.ts.map +0 -1
- package/dist/client/shared/lib/utils/react/useToggle.js.map +0 -1
- package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.d.ts.map +0 -1
- package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.js.map +0 -1
- package/dist/client/shared/providers/CacheClientProvider/index.d.ts.map +0 -1
- package/dist/client/shared/providers/CacheClientProvider/index.js.map +0 -1
- package/dist/client/shared/types/AccessGuard.d.ts.map +0 -1
- package/dist/client/shared/types/AccessGuard.js.map +0 -1
- package/dist/client/shared/types/PayloadComponentExport.d.ts.map +0 -1
- package/dist/client/shared/types/PayloadComponentExport.js.map +0 -1
- package/dist/client/shared/ui/Alert/Alert.d.ts.map +0 -1
- package/dist/client/shared/ui/Alert/Alert.js.map +0 -1
- package/dist/client/shared/ui/Alert/Alert.jsx +0 -33
- package/dist/client/shared/ui/Alert/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Alert/index.js.map +0 -1
- package/dist/client/shared/ui/Button/Button.d.ts.map +0 -1
- package/dist/client/shared/ui/Button/Button.js.map +0 -1
- package/dist/client/shared/ui/Button/Button.jsx +0 -35
- package/dist/client/shared/ui/Button/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Button/index.js.map +0 -1
- package/dist/client/shared/ui/Checkbox/Checkbox.d.ts.map +0 -1
- package/dist/client/shared/ui/Checkbox/Checkbox.js.map +0 -1
- package/dist/client/shared/ui/Checkbox/Checkbox.jsx +0 -6
- package/dist/client/shared/ui/Checkbox/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Checkbox/index.js.map +0 -1
- package/dist/client/shared/ui/ColorIndicator/ColorIndicator.d.ts.map +0 -1
- package/dist/client/shared/ui/ColorIndicator/ColorIndicator.js.map +0 -1
- package/dist/client/shared/ui/ColorIndicator/ColorIndicator.jsx +0 -7
- package/dist/client/shared/ui/ColorIndicator/index.d.ts.map +0 -1
- package/dist/client/shared/ui/ColorIndicator/index.js.map +0 -1
- package/dist/client/shared/ui/Description/Description.d.ts.map +0 -1
- package/dist/client/shared/ui/Description/Description.js.map +0 -1
- package/dist/client/shared/ui/Description/Description.jsx +0 -7
- package/dist/client/shared/ui/Description/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Description/index.js.map +0 -1
- package/dist/client/shared/ui/Divider/Divider.d.ts.map +0 -1
- package/dist/client/shared/ui/Divider/Divider.js.map +0 -1
- package/dist/client/shared/ui/Divider/Divider.jsx +0 -7
- package/dist/client/shared/ui/Divider/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Divider/index.js.map +0 -1
- package/dist/client/shared/ui/Label/Label.d.ts.map +0 -1
- package/dist/client/shared/ui/Label/Label.js.map +0 -1
- package/dist/client/shared/ui/Label/Label.jsx +0 -9
- package/dist/client/shared/ui/Label/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Label/index.js.map +0 -1
- package/dist/client/shared/ui/Loading/Loading.d.ts.map +0 -1
- package/dist/client/shared/ui/Loading/Loading.js.map +0 -1
- package/dist/client/shared/ui/Loading/Loading.jsx +0 -11
- package/dist/client/shared/ui/Loading/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Loading/index.js.map +0 -1
- package/dist/client/shared/ui/Popup/Popup.d.ts.map +0 -1
- package/dist/client/shared/ui/Popup/Popup.js.map +0 -1
- package/dist/client/shared/ui/Popup/Popup.jsx +0 -13
- package/dist/client/shared/ui/Popup/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Popup/index.js.map +0 -1
- package/dist/client/shared/ui/ProgressBar/ProgressBar.d.ts.map +0 -1
- package/dist/client/shared/ui/ProgressBar/ProgressBar.js.map +0 -1
- package/dist/client/shared/ui/ProgressBar/ProgressBar.jsx +0 -11
- package/dist/client/shared/ui/ProgressBar/index.d.ts.map +0 -1
- package/dist/client/shared/ui/ProgressBar/index.js.map +0 -1
- package/dist/client/shared/ui/Select/Select.d.ts.map +0 -1
- package/dist/client/shared/ui/Select/Select.js.map +0 -1
- package/dist/client/shared/ui/Select/Select.jsx +0 -41
- package/dist/client/shared/ui/Select/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Select/index.js.map +0 -1
- package/dist/client/shared/ui/StatusCounter/StatusCounter.d.ts.map +0 -1
- package/dist/client/shared/ui/StatusCounter/StatusCounter.js.map +0 -1
- package/dist/client/shared/ui/StatusCounter/StatusCounter.jsx +0 -26
- package/dist/client/shared/ui/StatusCounter/index.d.ts.map +0 -1
- package/dist/client/shared/ui/StatusCounter/index.js.map +0 -1
- package/dist/client/shared/ui/StatusIndicator/StatusIndicator.d.ts.map +0 -1
- package/dist/client/shared/ui/StatusIndicator/StatusIndicator.js.map +0 -1
- package/dist/client/shared/ui/StatusIndicator/StatusIndicator.jsx +0 -10
- package/dist/client/shared/ui/StatusIndicator/index.d.ts.map +0 -1
- package/dist/client/shared/ui/StatusIndicator/index.js.map +0 -1
- package/dist/client/shared/ui/Tooltip/Tooltip.d.ts.map +0 -1
- package/dist/client/shared/ui/Tooltip/Tooltip.js.map +0 -1
- package/dist/client/shared/ui/Tooltip/Tooltip.jsx +0 -16
- package/dist/client/shared/ui/Tooltip/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Tooltip/index.js.map +0 -1
- package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.js.map +0 -1
- package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.jsx +0 -24
- package/dist/client/shared/ui/form/FormCheckbox/index.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormCheckbox/index.js.map +0 -1
- package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.js.map +0 -1
- package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.jsx +0 -21
- package/dist/client/shared/ui/form/FormCheckboxPublish/index.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormCheckboxPublish/index.js.map +0 -1
- package/dist/client/shared/ui/form/FormSelect/FormSelect.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormSelect/FormSelect.js.map +0 -1
- package/dist/client/shared/ui/form/FormSelect/FormSelect.jsx +0 -44
- package/dist/client/shared/ui/form/FormSelect/index.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormSelect/index.js.map +0 -1
- package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.js.map +0 -1
- package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.jsx +0 -6
- package/dist/client/shared/ui/form/FormSelectLocale/index.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormSelectLocale/index.js.map +0 -1
- package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.js.map +0 -1
- package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.jsx +0 -25
- package/dist/client/shared/ui/form/FormSelectStrategy/index.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormSelectStrategy/index.js.map +0 -1
- package/dist/client/shared/utils/componentPath.d.ts.map +0 -1
- package/dist/client/shared/utils/componentPath.js.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/index.d.ts.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/index.js.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.d.ts.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.d.ts.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.js.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.jsx +0 -11
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.js.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.jsx +0 -55
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.d.ts.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.js.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.jsx +0 -17
- package/dist/client/widgets/bulk-translation-dashboard/ui/index.d.ts.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/index.js.map +0 -1
- package/dist/client/widgets/translate-document/index.d.ts.map +0 -1
- package/dist/client/widgets/translate-document/index.js.map +0 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.d.ts.map +0 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.export.d.ts.map +0 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.export.js.map +0 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.js.map +0 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.jsx +0 -55
- package/dist/client/widgets/translate-document/ui/TranslateDocument.server.d.ts.map +0 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.server.js.map +0 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.server.jsx +0 -16
- package/dist/client/widgets/translate-document/ui/index.d.ts.map +0 -1
- package/dist/client/widgets/translate-document/ui/index.js.map +0 -1
- package/dist/field-config.d.ts.map +0 -1
- package/dist/field-config.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/plugin.d.ts.map +0 -1
- package/dist/plugin.js.map +0 -1
- package/dist/server/features/_lib/collection-utils.d.ts.map +0 -1
- package/dist/server/features/_lib/collection-utils.js.map +0 -1
- package/dist/server/features/_lib/index.d.ts.map +0 -1
- package/dist/server/features/_lib/index.js.map +0 -1
- package/dist/server/features/cancel/handler.d.ts.map +0 -1
- package/dist/server/features/cancel/handler.js.map +0 -1
- package/dist/server/features/cancel/handler.test.d.ts +0 -2
- package/dist/server/features/cancel/handler.test.d.ts.map +0 -1
- package/dist/server/features/cancel/handler.test.js +0 -63
- package/dist/server/features/cancel/index.d.ts.map +0 -1
- package/dist/server/features/cancel/index.js.map +0 -1
- package/dist/server/features/cancel/model.d.ts.map +0 -1
- package/dist/server/features/cancel/model.js.map +0 -1
- package/dist/server/features/cancel/route.d.ts.map +0 -1
- package/dist/server/features/cancel/route.js.map +0 -1
- package/dist/server/features/cancel-by-collection/handler.d.ts.map +0 -1
- package/dist/server/features/cancel-by-collection/handler.js.map +0 -1
- package/dist/server/features/cancel-by-collection/handler.test.d.ts +0 -2
- package/dist/server/features/cancel-by-collection/handler.test.d.ts.map +0 -1
- package/dist/server/features/cancel-by-collection/handler.test.js +0 -126
- package/dist/server/features/cancel-by-collection/index.d.ts.map +0 -1
- package/dist/server/features/cancel-by-collection/index.js.map +0 -1
- package/dist/server/features/cancel-by-collection/model.d.ts.map +0 -1
- package/dist/server/features/cancel-by-collection/model.js.map +0 -1
- package/dist/server/features/cancel-by-collection/route.d.ts.map +0 -1
- package/dist/server/features/cancel-by-collection/route.js.map +0 -1
- package/dist/server/features/enqueue-translation/handler.d.ts.map +0 -1
- package/dist/server/features/enqueue-translation/handler.js.map +0 -1
- package/dist/server/features/enqueue-translation/handler.test.d.ts +0 -2
- package/dist/server/features/enqueue-translation/handler.test.d.ts.map +0 -1
- package/dist/server/features/enqueue-translation/handler.test.js +0 -115
- package/dist/server/features/enqueue-translation/index.d.ts.map +0 -1
- package/dist/server/features/enqueue-translation/index.js.map +0 -1
- package/dist/server/features/enqueue-translation/model.d.ts.map +0 -1
- package/dist/server/features/enqueue-translation/model.js.map +0 -1
- package/dist/server/features/enqueue-translation/route.d.ts.map +0 -1
- package/dist/server/features/enqueue-translation/route.js.map +0 -1
- package/dist/server/features/get-collection-status/handler.d.ts.map +0 -1
- package/dist/server/features/get-collection-status/handler.js.map +0 -1
- package/dist/server/features/get-collection-status/handler.test.d.ts +0 -2
- package/dist/server/features/get-collection-status/handler.test.d.ts.map +0 -1
- package/dist/server/features/get-collection-status/handler.test.js +0 -108
- package/dist/server/features/get-collection-status/index.d.ts.map +0 -1
- package/dist/server/features/get-collection-status/index.js.map +0 -1
- package/dist/server/features/get-collection-status/model.d.ts.map +0 -1
- package/dist/server/features/get-collection-status/model.js.map +0 -1
- package/dist/server/features/get-collection-status/route.d.ts.map +0 -1
- package/dist/server/features/get-collection-status/route.js.map +0 -1
- package/dist/server/features/get-document-status/handler.d.ts.map +0 -1
- package/dist/server/features/get-document-status/handler.js.map +0 -1
- package/dist/server/features/get-document-status/handler.test.d.ts +0 -2
- package/dist/server/features/get-document-status/handler.test.d.ts.map +0 -1
- package/dist/server/features/get-document-status/handler.test.js +0 -138
- package/dist/server/features/get-document-status/index.d.ts.map +0 -1
- package/dist/server/features/get-document-status/index.js.map +0 -1
- package/dist/server/features/get-document-status/model.d.ts.map +0 -1
- package/dist/server/features/get-document-status/model.js.map +0 -1
- package/dist/server/features/get-document-status/route.d.ts.map +0 -1
- package/dist/server/features/get-document-status/route.js.map +0 -1
- package/dist/server/features/index.d.ts.map +0 -1
- package/dist/server/features/index.js.map +0 -1
- package/dist/server/features/run-translation/handler.d.ts.map +0 -1
- package/dist/server/features/run-translation/handler.js.map +0 -1
- package/dist/server/features/run-translation/handler.test.d.ts +0 -2
- package/dist/server/features/run-translation/handler.test.d.ts.map +0 -1
- package/dist/server/features/run-translation/handler.test.js +0 -98
- package/dist/server/features/run-translation/index.d.ts.map +0 -1
- package/dist/server/features/run-translation/index.js.map +0 -1
- package/dist/server/features/run-translation/model.d.ts.map +0 -1
- package/dist/server/features/run-translation/model.js.map +0 -1
- package/dist/server/features/run-translation/route.d.ts.map +0 -1
- package/dist/server/features/run-translation/route.js.map +0 -1
- package/dist/server/features/translate-document/handler.d.ts.map +0 -1
- package/dist/server/features/translate-document/handler.js.map +0 -1
- package/dist/server/features/translate-document/handler.test.d.ts +0 -2
- package/dist/server/features/translate-document/handler.test.d.ts.map +0 -1
- package/dist/server/features/translate-document/handler.test.js +0 -171
- package/dist/server/features/translate-document/index.d.ts.map +0 -1
- package/dist/server/features/translate-document/index.js.map +0 -1
- package/dist/server/features/translate-document/model.d.ts.map +0 -1
- package/dist/server/features/translate-document/model.js.map +0 -1
- package/dist/server/features/translate-document/task.d.ts.map +0 -1
- package/dist/server/features/translate-document/task.js.map +0 -1
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/index.js.map +0 -1
- package/dist/server/modules/index.d.ts.map +0 -1
- package/dist/server/modules/index.js.map +0 -1
- package/dist/server/modules/task-runner/TaskRunner.interface.d.ts.map +0 -1
- package/dist/server/modules/task-runner/TaskRunner.interface.js.map +0 -1
- package/dist/server/modules/task-runner/TaskRunnerProvider.interface.d.ts.map +0 -1
- package/dist/server/modules/task-runner/TaskRunnerProvider.interface.js.map +0 -1
- package/dist/server/modules/task-runner/index.d.ts.map +0 -1
- package/dist/server/modules/task-runner/index.js.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsRunnerProvider.d.ts.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsRunnerProvider.js.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.d.ts.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.js.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.test.d.ts +0 -2
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.test.d.ts.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.test.js +0 -188
- package/dist/server/modules/task-runner/payload-jobs-runner/index.d.ts.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/index.js.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.d.ts.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.js.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.test.d.ts +0 -2
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.test.d.ts.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.test.js +0 -169
- package/dist/server/modules/task-runner/payload-jobs-runner/types.d.ts.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/types.js.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/SyncRunnerProvider.d.ts.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/SyncRunnerProvider.js.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.d.ts.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.js.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.test.d.ts +0 -2
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.test.d.ts.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.test.js +0 -148
- package/dist/server/modules/task-runner/sync-runner/index.d.ts.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/index.js.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/types.d.ts.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/types.js.map +0 -1
- package/dist/server/modules/task-runner/types.d.ts.map +0 -1
- package/dist/server/modules/task-runner/types.js.map +0 -1
- package/dist/server/modules/translation-pipeline/TranslationPipeline.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/TranslationPipeline.js.map +0 -1
- package/dist/server/modules/translation-pipeline/TranslationPipeline.test.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/TranslationPipeline.test.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/TranslationPipeline.test.js +0 -552
- package/dist/server/modules/translation-pipeline/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/index.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.stage.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.stage.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.test.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.test.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.test.js +0 -294
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.test.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.test.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.test.js +0 -737
- package/dist/server/modules/translation-pipeline/stages/field-collector/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/index.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/index.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/PlainTextExpander.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/PlainTextExpander.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/RichTextExpander.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/RichTextExpander.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.stage.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.stage.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.test.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.test.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.test.js +0 -396
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextExpander.interface.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextExpander.interface.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/index.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation/Translation.stage.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation/Translation.stage.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation/index.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.test.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.test.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.test.js +0 -110
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.js.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.js.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.test.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.test.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.test.js +0 -36
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.js.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.test.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.test.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.test.js +0 -77
- package/dist/server/modules/translation-pipeline/strategies/TranslationStrategy.interface.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/TranslationStrategy.interface.js.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/index.js.map +0 -1
- package/dist/server/modules/translation-pipeline/types/FieldChunk.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/types/FieldChunk.js.map +0 -1
- package/dist/server/modules/translation-pipeline/types/Pipeline.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/types/Pipeline.js.map +0 -1
- package/dist/server/modules/translation-pipeline/types/PipelineContext.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/types/PipelineContext.js.map +0 -1
- package/dist/server/modules/translation-pipeline/types/TextChunk.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/types/TextChunk.js.map +0 -1
- package/dist/server/modules/translation-pipeline/types/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/types/index.js.map +0 -1
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.d.ts.map +0 -1
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.js.map +0 -1
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.test.d.ts +0 -2
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.test.d.ts.map +0 -1
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.test.js +0 -214
- package/dist/server/modules/translation-providers/TranslationProvider.interface.d.ts.map +0 -1
- package/dist/server/modules/translation-providers/TranslationProvider.interface.js.map +0 -1
- package/dist/server/modules/translation-providers/index.d.ts.map +0 -1
- package/dist/server/modules/translation-providers/index.js.map +0 -1
- package/dist/server/shared/access/AnyAccessGuard.d.ts.map +0 -1
- package/dist/server/shared/access/AnyAccessGuard.js.map +0 -1
- package/dist/server/shared/access/handler.d.ts.map +0 -1
- package/dist/server/shared/access/handler.js.map +0 -1
- package/dist/server/shared/access/index.d.ts.map +0 -1
- package/dist/server/shared/access/index.js.map +0 -1
- package/dist/server/shared/access/types.d.ts.map +0 -1
- package/dist/server/shared/access/types.js.map +0 -1
- package/dist/server/shared/field-config/getFieldConfig.d.ts.map +0 -1
- package/dist/server/shared/field-config/getFieldConfig.js.map +0 -1
- package/dist/server/shared/field-config/getFieldConfig.test.d.ts +0 -2
- package/dist/server/shared/field-config/getFieldConfig.test.d.ts.map +0 -1
- package/dist/server/shared/field-config/getFieldConfig.test.js +0 -74
- package/dist/server/shared/field-config/index.d.ts.map +0 -1
- package/dist/server/shared/field-config/index.js.map +0 -1
- package/dist/server/shared/field-config/types.d.ts.map +0 -1
- package/dist/server/shared/field-config/types.js.map +0 -1
- package/dist/server/shared/guards/collection-guards.d.ts.map +0 -1
- package/dist/server/shared/guards/collection-guards.js.map +0 -1
- package/dist/server/shared/guards/field-guards.d.ts.map +0 -1
- package/dist/server/shared/guards/field-guards.js.map +0 -1
- package/dist/server/shared/guards/field-guards.test.d.ts +0 -2
- package/dist/server/shared/guards/field-guards.test.d.ts.map +0 -1
- package/dist/server/shared/guards/field-guards.test.js +0 -166
- package/dist/server/shared/guards/index.d.ts.map +0 -1
- package/dist/server/shared/guards/index.js.map +0 -1
- package/dist/server/shared/http/ServerResponse.d.ts.map +0 -1
- package/dist/server/shared/http/ServerResponse.js.map +0 -1
- package/dist/server/shared/http/ServerResponse.test.d.ts +0 -2
- package/dist/server/shared/http/ServerResponse.test.d.ts.map +0 -1
- package/dist/server/shared/http/ServerResponse.test.js +0 -161
- package/dist/server/shared/http/index.d.ts.map +0 -1
- package/dist/server/shared/http/index.js.map +0 -1
- package/dist/server/shared/http/withAccessCheck.d.ts.map +0 -1
- package/dist/server/shared/http/withAccessCheck.js.map +0 -1
- package/dist/server/shared/http/withAccessCheck.test.d.ts +0 -2
- package/dist/server/shared/http/withAccessCheck.test.d.ts.map +0 -1
- package/dist/server/shared/http/withAccessCheck.test.js +0 -46
- package/dist/server/shared/http/withErrorHandler.d.ts.map +0 -1
- package/dist/server/shared/http/withErrorHandler.js.map +0 -1
- package/dist/server/shared/http/withErrorHandler.test.d.ts +0 -2
- package/dist/server/shared/http/withErrorHandler.test.d.ts.map +0 -1
- package/dist/server/shared/http/withErrorHandler.test.js +0 -69
- package/dist/server/shared/index.d.ts.map +0 -1
- package/dist/server/shared/index.js.map +0 -1
- package/dist/server/shared/lexical/collectTextNodes.d.ts.map +0 -1
- package/dist/server/shared/lexical/collectTextNodes.js.map +0 -1
- package/dist/server/shared/lexical/collectTextNodes.test.d.ts +0 -2
- package/dist/server/shared/lexical/collectTextNodes.test.d.ts.map +0 -1
- package/dist/server/shared/lexical/collectTextNodes.test.js +0 -120
- package/dist/server/shared/lexical/guards.d.ts.map +0 -1
- package/dist/server/shared/lexical/guards.js.map +0 -1
- package/dist/server/shared/lexical/guards.test.d.ts +0 -2
- package/dist/server/shared/lexical/guards.test.d.ts.map +0 -1
- package/dist/server/shared/lexical/guards.test.js +0 -160
- package/dist/server/shared/lexical/index.d.ts.map +0 -1
- package/dist/server/shared/lexical/index.js.map +0 -1
- package/dist/server/shared/lexical/isEmptyRichText.d.ts.map +0 -1
- package/dist/server/shared/lexical/isEmptyRichText.js.map +0 -1
- package/dist/server/shared/lexical/isEmptyRichText.test.d.ts +0 -2
- package/dist/server/shared/lexical/isEmptyRichText.test.d.ts.map +0 -1
- package/dist/server/shared/lexical/isEmptyRichText.test.js +0 -251
- package/dist/server/shared/lexical/traverseLexicalTree.d.ts.map +0 -1
- package/dist/server/shared/lexical/traverseLexicalTree.js.map +0 -1
- package/dist/server/shared/lexical/traverseLexicalTree.test.d.ts +0 -2
- package/dist/server/shared/lexical/traverseLexicalTree.test.d.ts.map +0 -1
- package/dist/server/shared/lexical/traverseLexicalTree.test.js +0 -112
- package/dist/server/shared/lexical/types.d.ts.map +0 -1
- package/dist/server/shared/lexical/types.js.map +0 -1
- package/dist/server/shared/utils/LazyMap.d.ts.map +0 -1
- package/dist/server/shared/utils/LazyMap.js.map +0 -1
- package/dist/server/shared/utils/LazyMap.test.d.ts +0 -2
- package/dist/server/shared/utils/LazyMap.test.d.ts.map +0 -1
- package/dist/server/shared/utils/LazyMap.test.js +0 -262
- package/dist/server/shared/utils/filterLocalizedFields.d.ts.map +0 -1
- package/dist/server/shared/utils/filterLocalizedFields.js.map +0 -1
- package/dist/server/shared/utils/filterLocalizedFields.test.d.ts +0 -2
- package/dist/server/shared/utils/filterLocalizedFields.test.d.ts.map +0 -1
- package/dist/server/shared/utils/filterLocalizedFields.test.js +0 -338
- package/dist/server/shared/utils/getByPath.d.ts.map +0 -1
- package/dist/server/shared/utils/getByPath.js.map +0 -1
- package/dist/server/shared/utils/getByPath.test.d.ts +0 -2
- package/dist/server/shared/utils/getByPath.test.d.ts.map +0 -1
- package/dist/server/shared/utils/getByPath.test.js +0 -33
- package/dist/server/shared/utils/index.d.ts.map +0 -1
- package/dist/server/shared/utils/index.js.map +0 -1
- package/dist/server/shared/utils/isEmpty.d.ts.map +0 -1
- package/dist/server/shared/utils/isEmpty.js.map +0 -1
- package/dist/server/shared/utils/isEmpty.test.d.ts +0 -2
- package/dist/server/shared/utils/isEmpty.test.d.ts.map +0 -1
- package/dist/server/shared/utils/isEmpty.test.js +0 -60
- package/dist/server/shared/utils/isObject.d.ts.map +0 -1
- package/dist/server/shared/utils/isObject.js.map +0 -1
- package/dist/server/shared/utils/isObject.test.d.ts +0 -2
- package/dist/server/shared/utils/isObject.test.d.ts.map +0 -1
- package/dist/server/shared/utils/isObject.test.js +0 -57
- package/dist/server/shared/utils/normalizePath.d.ts.map +0 -1
- package/dist/server/shared/utils/normalizePath.js.map +0 -1
- package/dist/server/shared/utils/normalizePath.test.d.ts +0 -2
- package/dist/server/shared/utils/normalizePath.test.d.ts.map +0 -1
- package/dist/server/shared/utils/normalizePath.test.js +0 -33
- package/dist/server/shared/utils/pipe.d.ts.map +0 -1
- package/dist/server/shared/utils/pipe.js.map +0 -1
- package/dist/server/shared/utils/pipe.test.d.ts +0 -2
- package/dist/server/shared/utils/pipe.test.d.ts.map +0 -1
- package/dist/server/shared/utils/pipe.test.js +0 -55
- package/dist/server/shared/utils/setByPath.d.ts.map +0 -1
- package/dist/server/shared/utils/setByPath.js.map +0 -1
- package/dist/server/shared/utils/setByPath.test.d.ts +0 -2
- package/dist/server/shared/utils/setByPath.test.d.ts.map +0 -1
- package/dist/server/shared/utils/setByPath.test.js +0 -46
- package/dist/types/AccessGuard.d.ts.map +0 -1
- package/dist/types/AccessGuard.js.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/vitest-env.d.js.map +0 -1
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import classNames from 'classnames';
|
|
2
|
-
import StatusIndicator from '../StatusIndicator';
|
|
3
|
-
import styles from './styles.module.scss';
|
|
4
|
-
const statusColorMap = {
|
|
5
|
-
pending: 'gray',
|
|
6
|
-
running: 'blue',
|
|
7
|
-
completed: 'green',
|
|
8
|
-
failed: 'red',
|
|
9
|
-
};
|
|
10
|
-
const statusLabelMap = {
|
|
11
|
-
pending: 'В очереди',
|
|
12
|
-
running: 'В процессе',
|
|
13
|
-
completed: 'Завершено',
|
|
14
|
-
failed: 'Ошибки',
|
|
15
|
-
};
|
|
16
|
-
export default function StatusCounter({ status, count, label, animated = false, size = 'medium', className, }) {
|
|
17
|
-
const displayLabel = label || statusLabelMap[status];
|
|
18
|
-
const color = statusColorMap[status];
|
|
19
|
-
return (<div className={classNames(styles.container, styles[size], className)}>
|
|
20
|
-
<StatusIndicator $color={color} $animated={animated && status === 'running'} className={styles.indicator}/>
|
|
21
|
-
<div className={styles.content}>
|
|
22
|
-
<span className={styles.count}>{count}</span>
|
|
23
|
-
<span className={styles.label}>{displayLabel}</span>
|
|
24
|
-
</div>
|
|
25
|
-
</div>);
|
|
26
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/shared/ui/StatusCounter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/client/shared/ui/StatusCounter/index.ts"],"sourcesContent":["export { default as StatusCounter } from './StatusCounter'\n"],"names":["default","StatusCounter"],"mappings":"AAAA,SAASA,WAAWC,aAAa,QAAQ,kBAAiB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/client/shared/ui/StatusIndicator/StatusIndicator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAM9C,KAAK,oBAAoB,GAAG,iBAAiB,CAAC;IAC5C,MAAM,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;IACzC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC,CAAA;AAEF,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,oBAAoB,+BAS9G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/client/shared/ui/StatusIndicator/StatusIndicator.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport type { PropsWithChildren } from 'react'\n\nimport ColorIndicator from '../ColorIndicator'\n\nimport styles from './styles.module.scss'\n\ntype StatusIndicatorProps = PropsWithChildren<{\n $color: 'red' | 'green' | 'blue' | 'gray'\n $animated?: boolean\n title?: string\n className?: string\n}>\n\nexport default function StatusIndicator({ $color, $animated, title, className, children }: StatusIndicatorProps) {\n const cardClassName = classNames(styles['status-indicator'], styles[$color], className)\n\n return (\n <div className={cardClassName}>\n <ColorIndicator $color={$color} $animated={$animated} title={title} />\n {children}\n </div>\n )\n}\n"],"names":["classNames","ColorIndicator","styles","StatusIndicator","$color","$animated","title","className","children","cardClassName","div"],"mappings":";AAAA,OAAOA,gBAAgB,aAAY;AAGnC,OAAOC,oBAAoB,oBAAmB;AAE9C,OAAOC,YAAY,uBAAsB;AASzC,eAAe,SAASC,gBAAgB,EAAEC,MAAM,EAAEC,SAAS,EAAEC,KAAK,EAAEC,SAAS,EAAEC,QAAQ,EAAwB;IAC7G,MAAMC,gBAAgBT,WAAWE,MAAM,CAAC,mBAAmB,EAAEA,MAAM,CAACE,OAAO,EAAEG;IAE7E,qBACE,MAACG;QAAIH,WAAWE;;0BACd,KAACR;gBAAeG,QAAQA;gBAAQC,WAAWA;gBAAWC,OAAOA;;YAC5DE;;;AAGP"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import classNames from 'classnames';
|
|
2
|
-
import ColorIndicator from '../ColorIndicator';
|
|
3
|
-
import styles from './styles.module.scss';
|
|
4
|
-
export default function StatusIndicator({ $color, $animated, title, className, children }) {
|
|
5
|
-
const cardClassName = classNames(styles['status-indicator'], styles[$color], className);
|
|
6
|
-
return (<div className={cardClassName}>
|
|
7
|
-
<ColorIndicator $color={$color} $animated={$animated} title={title}/>
|
|
8
|
-
{children}
|
|
9
|
-
</div>);
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/shared/ui/StatusIndicator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/client/shared/ui/StatusIndicator/index.ts"],"sourcesContent":["export { default } from './StatusIndicator'\n"],"names":["default"],"mappings":"AAAA,SAASA,OAAO,QAAQ,oBAAmB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../../src/client/shared/ui/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,KAAK,YAAY,GAAG;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,EAAE,SAAS,CAAA;IAClB,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,QAAQ,EACR,OAAO,EACP,IAAY,EACZ,UAAc,EACd,aAAmB,GACpB,EAAE,YAAY,+BAcd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/client/shared/ui/Tooltip/Tooltip.tsx"],"sourcesContent":["'use client'\n\nimport type { ReactNode } from 'react'\nimport * as RadixTooltip from '@radix-ui/react-tooltip'\n\nimport styles from './styles.module.scss'\n\ntype TooltipProps = {\n children: ReactNode\n content: ReactNode\n side?: 'top' | 'bottom' | 'left' | 'right'\n sideOffset?: number\n delayDuration?: number\n}\n\nexport default function Tooltip({\n children,\n content,\n side = 'top',\n sideOffset = 6,\n delayDuration = 200,\n}: TooltipProps) {\n return (\n <RadixTooltip.Provider delayDuration={delayDuration}>\n <RadixTooltip.Root>\n <RadixTooltip.Trigger asChild>{children}</RadixTooltip.Trigger>\n <RadixTooltip.Portal>\n <RadixTooltip.Content className={styles.content} side={side} sideOffset={sideOffset}>\n {content}\n <RadixTooltip.Arrow className={styles.arrow} />\n </RadixTooltip.Content>\n </RadixTooltip.Portal>\n </RadixTooltip.Root>\n </RadixTooltip.Provider>\n )\n}\n"],"names":["RadixTooltip","styles","Tooltip","children","content","side","sideOffset","delayDuration","Provider","Root","Trigger","asChild","Portal","Content","className","Arrow","arrow"],"mappings":"AAAA;;AAGA,YAAYA,kBAAkB,0BAAyB;AAEvD,OAAOC,YAAY,uBAAsB;AAUzC,eAAe,SAASC,QAAQ,EAC9BC,QAAQ,EACRC,OAAO,EACPC,OAAO,KAAK,EACZC,aAAa,CAAC,EACdC,gBAAgB,GAAG,EACN;IACb,qBACE,KAACP,aAAaQ,QAAQ;QAACD,eAAeA;kBACpC,cAAA,MAACP,aAAaS,IAAI;;8BAChB,KAACT,aAAaU,OAAO;oBAACC,OAAO;8BAAER;;8BAC/B,KAACH,aAAaY,MAAM;8BAClB,cAAA,MAACZ,aAAaa,OAAO;wBAACC,WAAWb,OAAOG,OAAO;wBAAEC,MAAMA;wBAAMC,YAAYA;;4BACtEF;0CACD,KAACJ,aAAae,KAAK;gCAACD,WAAWb,OAAOe,KAAK;;;;;;;;AAMvD"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import * as RadixTooltip from '@radix-ui/react-tooltip';
|
|
3
|
-
import styles from './styles.module.scss';
|
|
4
|
-
export default function Tooltip({ children, content, side = 'top', sideOffset = 6, delayDuration = 200, }) {
|
|
5
|
-
return (<RadixTooltip.Provider delayDuration={delayDuration}>
|
|
6
|
-
<RadixTooltip.Root>
|
|
7
|
-
<RadixTooltip.Trigger asChild>{children}</RadixTooltip.Trigger>
|
|
8
|
-
<RadixTooltip.Portal>
|
|
9
|
-
<RadixTooltip.Content className={styles.content} side={side} sideOffset={sideOffset}>
|
|
10
|
-
{content}
|
|
11
|
-
<RadixTooltip.Arrow className={styles.arrow}/>
|
|
12
|
-
</RadixTooltip.Content>
|
|
13
|
-
</RadixTooltip.Portal>
|
|
14
|
-
</RadixTooltip.Root>
|
|
15
|
-
</RadixTooltip.Provider>);
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/shared/ui/Tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/client/shared/ui/Tooltip/index.ts"],"sourcesContent":["export { default } from './Tooltip'\n"],"names":["default"],"mappings":"AAAA,SAASA,OAAO,QAAQ,YAAW"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../src/client/shared/ui/form/FormCheckbox/FormCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AASzC,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG,YAAY,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,+BAmChG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/client/shared/ui/form/FormCheckbox/FormCheckbox.tsx"],"sourcesContent":["import type { ReactElement } from 'react'\nimport { useId } from 'react'\nimport { useController } from 'react-hook-form'\n\nimport { Checkbox } from '../../Checkbox'\nimport Description from '../../Description'\n\nimport styles from './styles.module.scss'\n\ntype FormCheckboxProps = {\n name: string\n label: string | ReactElement\n description?: string\n disabled?: boolean\n className?: string\n}\n\nexport function FormCheckbox({ name, label, description, disabled, className }: FormCheckboxProps) {\n const formControl = useController({ name })\n const errorId = useId()\n const descriptionId = useId()\n const inputId = useId()\n\n return (\n <div className={`${styles.container} ${className ?? ''}`}>\n <label className={styles.label} htmlFor={inputId}>\n <Checkbox\n id={inputId}\n hasError={formControl.fieldState.invalid}\n name={formControl.field.name}\n ref={formControl.field.ref}\n checked={formControl.field.value ?? false}\n onChange={formControl.field.onChange}\n onBlur={formControl.field.onBlur}\n disabled={\n formControl.field.disabled ||\n formControl.formState.disabled ||\n formControl.formState.isSubmitting ||\n disabled\n }\n aria-describedby={`${errorId} ${descriptionId}`}\n />\n <span className={styles.label__text}>{label}</span>\n </label>\n {formControl.fieldState.error && (\n <Description variant=\"error\" id={errorId}>\n {formControl.fieldState.error.message}\n </Description>\n )}\n {description && <Description id={descriptionId}>{description}</Description>}\n </div>\n )\n}\n"],"names":["useId","useController","Checkbox","Description","styles","FormCheckbox","name","label","description","disabled","className","formControl","errorId","descriptionId","inputId","div","container","htmlFor","id","hasError","fieldState","invalid","field","ref","checked","value","onChange","onBlur","formState","isSubmitting","aria-describedby","span","label__text","error","variant","message"],"mappings":";AACA,SAASA,KAAK,QAAQ,QAAO;AAC7B,SAASC,aAAa,QAAQ,kBAAiB;AAE/C,SAASC,QAAQ,QAAQ,iBAAgB;AACzC,OAAOC,iBAAiB,oBAAmB;AAE3C,OAAOC,YAAY,uBAAsB;AAUzC,OAAO,SAASC,aAAa,EAAEC,IAAI,EAAEC,KAAK,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,SAAS,EAAqB;IAC/F,MAAMC,cAAcV,cAAc;QAAEK;IAAK;IACzC,MAAMM,UAAUZ;IAChB,MAAMa,gBAAgBb;IACtB,MAAMc,UAAUd;IAEhB,qBACE,MAACe;QAAIL,WAAW,GAAGN,OAAOY,SAAS,CAAC,CAAC,EAAEN,aAAa,IAAI;;0BACtD,MAACH;gBAAMG,WAAWN,OAAOG,KAAK;gBAAEU,SAASH;;kCACvC,KAACZ;wBACCgB,IAAIJ;wBACJK,UAAUR,YAAYS,UAAU,CAACC,OAAO;wBACxCf,MAAMK,YAAYW,KAAK,CAAChB,IAAI;wBAC5BiB,KAAKZ,YAAYW,KAAK,CAACC,GAAG;wBAC1BC,SAASb,YAAYW,KAAK,CAACG,KAAK,IAAI;wBACpCC,UAAUf,YAAYW,KAAK,CAACI,QAAQ;wBACpCC,QAAQhB,YAAYW,KAAK,CAACK,MAAM;wBAChClB,UACEE,YAAYW,KAAK,CAACb,QAAQ,IAC1BE,YAAYiB,SAAS,CAACnB,QAAQ,IAC9BE,YAAYiB,SAAS,CAACC,YAAY,IAClCpB;wBAEFqB,oBAAkB,GAAGlB,QAAQ,CAAC,EAAEC,eAAe;;kCAEjD,KAACkB;wBAAKrB,WAAWN,OAAO4B,WAAW;kCAAGzB;;;;YAEvCI,YAAYS,UAAU,CAACa,KAAK,kBAC3B,KAAC9B;gBAAY+B,SAAQ;gBAAQhB,IAAIN;0BAC9BD,YAAYS,UAAU,CAACa,KAAK,CAACE,OAAO;;YAGxC3B,6BAAe,KAACL;gBAAYe,IAAIL;0BAAgBL;;;;AAGvD"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { useId } from 'react';
|
|
2
|
-
import { useController } from 'react-hook-form';
|
|
3
|
-
import { Checkbox } from '../../Checkbox';
|
|
4
|
-
import Description from '../../Description';
|
|
5
|
-
import styles from './styles.module.scss';
|
|
6
|
-
export function FormCheckbox({ name, label, description, disabled, className }) {
|
|
7
|
-
const formControl = useController({ name });
|
|
8
|
-
const errorId = useId();
|
|
9
|
-
const descriptionId = useId();
|
|
10
|
-
const inputId = useId();
|
|
11
|
-
return (<div className={`${styles.container} ${className ?? ''}`}>
|
|
12
|
-
<label className={styles.label} htmlFor={inputId}>
|
|
13
|
-
<Checkbox id={inputId} hasError={formControl.fieldState.invalid} name={formControl.field.name} ref={formControl.field.ref} checked={formControl.field.value ?? false} onChange={formControl.field.onChange} onBlur={formControl.field.onBlur} disabled={formControl.field.disabled ||
|
|
14
|
-
formControl.formState.disabled ||
|
|
15
|
-
formControl.formState.isSubmitting ||
|
|
16
|
-
disabled} aria-describedby={`${errorId} ${descriptionId}`}/>
|
|
17
|
-
<span className={styles.label__text}>{label}</span>
|
|
18
|
-
</label>
|
|
19
|
-
{formControl.fieldState.error && (<Description variant="error" id={errorId}>
|
|
20
|
-
{formControl.fieldState.error.message}
|
|
21
|
-
</Description>)}
|
|
22
|
-
{description && <Description id={descriptionId}>{description}</Description>}
|
|
23
|
-
</div>);
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/client/shared/ui/form/FormCheckbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/client/shared/ui/form/FormCheckbox/index.ts"],"sourcesContent":["export { FormCheckbox } from './FormCheckbox'\n"],"names":["FormCheckbox"],"mappings":"AAAA,SAASA,YAAY,QAAQ,iBAAgB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormCheckboxPublish.d.ts","sourceRoot":"","sources":["../../../../../../src/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.tsx"],"names":[],"mappings":"AA6BA,KAAK,wBAAwB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,wBAAwB,+BAE1F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.tsx"],"sourcesContent":["import type { ReactElement } from 'react'\n\nimport { FormCheckbox } from '../FormCheckbox'\nimport Tooltip from '../../Tooltip'\nimport { QuestionCircleIcon } from '../../../lib/assets/icons/QuestionCircleIcon'\n\nimport styles from './styles.module.scss'\n\nconst PUBLISH_LABEL = 'Publish after translation'\n\nconst PUBLISH_TOOLTIP = (\n <>\n When enabled, translated documents will be published immediately.\n <br />\n When disabled, translated documents will be saved as drafts.\n </>\n)\n\nconst PublishLabel: ReactElement = (\n <span className={styles.label}>\n {PUBLISH_LABEL}\n <Tooltip content={PUBLISH_TOOLTIP} side=\"bottom\">\n <span className={styles.label__icon}>\n <QuestionCircleIcon />\n </span>\n </Tooltip>\n </span>\n)\n\ntype FormCheckboxPublishProps = {\n name: string\n disabled?: boolean\n className?: string\n}\n\nexport function FormCheckboxPublish({ name, disabled, className }: FormCheckboxPublishProps) {\n return <FormCheckbox name={name} label={PublishLabel} disabled={disabled} className={className} />\n}\n"],"names":["FormCheckbox","Tooltip","QuestionCircleIcon","styles","PUBLISH_LABEL","PUBLISH_TOOLTIP","br","PublishLabel","span","className","label","content","side","label__icon","FormCheckboxPublish","name","disabled"],"mappings":";AAEA,SAASA,YAAY,QAAQ,kBAAiB;AAC9C,OAAOC,aAAa,gBAAe;AACnC,SAASC,kBAAkB,QAAQ,+CAA8C;AAEjF,OAAOC,YAAY,uBAAsB;AAEzC,MAAMC,gBAAgB;AAEtB,MAAMC,gCACJ;;QAAE;sBAEA,KAACC;QAAK;;;AAKV,MAAMC,6BACJ,MAACC;IAAKC,WAAWN,OAAOO,KAAK;;QAC1BN;sBACD,KAACH;YAAQU,SAASN;YAAiBO,MAAK;sBACtC,cAAA,KAACJ;gBAAKC,WAAWN,OAAOU,WAAW;0BACjC,cAAA,KAACX;;;;;AAYT,OAAO,SAASY,oBAAoB,EAAEC,IAAI,EAAEC,QAAQ,EAAEP,SAAS,EAA4B;IACzF,qBAAO,KAACT;QAAae,MAAMA;QAAML,OAAOH;QAAcS,UAAUA;QAAUP,WAAWA;;AACvF"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FormCheckbox } from '../FormCheckbox';
|
|
2
|
-
import Tooltip from '../../Tooltip';
|
|
3
|
-
import { QuestionCircleIcon } from '../../../lib/assets/icons/QuestionCircleIcon';
|
|
4
|
-
import styles from './styles.module.scss';
|
|
5
|
-
const PUBLISH_LABEL = 'Publish after translation';
|
|
6
|
-
const PUBLISH_TOOLTIP = (<>
|
|
7
|
-
When enabled, translated documents will be published immediately.
|
|
8
|
-
<br />
|
|
9
|
-
When disabled, translated documents will be saved as drafts.
|
|
10
|
-
</>);
|
|
11
|
-
const PublishLabel = (<span className={styles.label}>
|
|
12
|
-
{PUBLISH_LABEL}
|
|
13
|
-
<Tooltip content={PUBLISH_TOOLTIP} side="bottom">
|
|
14
|
-
<span className={styles.label__icon}>
|
|
15
|
-
<QuestionCircleIcon />
|
|
16
|
-
</span>
|
|
17
|
-
</Tooltip>
|
|
18
|
-
</span>);
|
|
19
|
-
export function FormCheckboxPublish({ name, disabled, className }) {
|
|
20
|
-
return <FormCheckbox name={name} label={PublishLabel} disabled={disabled} className={className}/>;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/client/shared/ui/form/FormCheckboxPublish/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/client/shared/ui/form/FormCheckboxPublish/index.ts"],"sourcesContent":["export { FormCheckboxPublish } from './FormCheckboxPublish'\n"],"names":["FormCheckboxPublish"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,wBAAuB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/client/shared/ui/form/FormSelect/FormSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAQzC,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAChD,KAAK,CAAC,EAAE,MAAM,GAAG,YAAY,CAAA;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,KAAK,EACL,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,SAAS,GACV,EAAE,eAAe,+BAwEjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/client/shared/ui/form/FormSelect/FormSelect.tsx"],"sourcesContent":["import type { ReactElement } from 'react'\nimport { useId } from 'react'\nimport { useController } from 'react-hook-form'\n\nimport Description from '../../Description'\nimport Label from '../../Label'\nimport Select from '../../Select'\n\ntype FormSelectProps = {\n name: string\n required?: boolean\n options: Array<{ value: string; label: string }>\n label?: string | ReactElement\n description?: string\n placeholder?: string\n disabled?: boolean\n size?: 'sm' | 'md' | 'lg'\n 'aria-label'?: string\n 'aria-labelledby'?: string\n className?: string\n}\n\nexport default function FormSelect({\n name,\n required,\n options,\n label,\n description,\n disabled,\n size,\n placeholder,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n className,\n}: FormSelectProps) {\n const formControl = useController({ name, rules: { required } })\n const errorId = useId()\n const descriptionId = useId()\n\n const getAccessibilityProps = () => {\n if (label) {\n return {}\n }\n\n if (ariaLabelledby) {\n return { 'aria-labelledby': ariaLabelledby }\n }\n\n if (ariaLabel) {\n return { 'aria-label': ariaLabel }\n }\n\n return { 'aria-label': 'Select option' }\n }\n\n const selectElement = (\n <Select\n $size={size}\n hasError={formControl.fieldState.invalid}\n required={required}\n name={formControl.field.name}\n ref={formControl.field.ref}\n value={formControl.field.value}\n onChange={formControl.field.onChange}\n onBlur={formControl.field.onBlur}\n disabled={\n formControl.field.disabled || formControl.formState.disabled || formControl.formState.isSubmitting || disabled\n }\n aria-describedby={`${errorId} ${descriptionId}`}\n {...getAccessibilityProps()}\n >\n {placeholder && <Select.SelectEmptyOption>{placeholder}</Select.SelectEmptyOption>}\n {options.map((option) => (\n <Select.SelectOption key={option.value} value={option.value}>\n {option.label}\n </Select.SelectOption>\n ))}\n </Select>\n )\n\n const errorAndDescription = (\n <>\n {formControl.fieldState.error && (\n <Description variant=\"error\" id={errorId}>\n {formControl.fieldState.error.message}\n </Description>\n )}\n {description && <Description id={descriptionId}>{description}</Description>}\n </>\n )\n\n if (!label) {\n return (\n <div className={className}>\n {selectElement}\n {errorAndDescription}\n </div>\n )\n }\n\n return (\n <Label className={className} label={label}>\n {selectElement}\n {errorAndDescription}\n </Label>\n )\n}\n"],"names":["useId","useController","Description","Label","Select","FormSelect","name","required","options","label","description","disabled","size","placeholder","ariaLabel","ariaLabelledby","className","formControl","rules","errorId","descriptionId","getAccessibilityProps","selectElement","$size","hasError","fieldState","invalid","field","ref","value","onChange","onBlur","formState","isSubmitting","aria-describedby","SelectEmptyOption","map","option","SelectOption","errorAndDescription","error","variant","id","message","div"],"mappings":";AACA,SAASA,KAAK,QAAQ,QAAO;AAC7B,SAASC,aAAa,QAAQ,kBAAiB;AAE/C,OAAOC,iBAAiB,oBAAmB;AAC3C,OAAOC,WAAW,cAAa;AAC/B,OAAOC,YAAY,eAAc;AAgBjC,eAAe,SAASC,WAAW,EACjCC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,KAAK,EACLC,WAAW,EACXC,QAAQ,EACRC,IAAI,EACJC,WAAW,EACX,cAAcC,SAAS,EACvB,mBAAmBC,cAAc,EACjCC,SAAS,EACO;IAChB,MAAMC,cAAchB,cAAc;QAAEK;QAAMY,OAAO;YAAEX;QAAS;IAAE;IAC9D,MAAMY,UAAUnB;IAChB,MAAMoB,gBAAgBpB;IAEtB,MAAMqB,wBAAwB;QAC5B,IAAIZ,OAAO;YACT,OAAO,CAAC;QACV;QAEA,IAAIM,gBAAgB;YAClB,OAAO;gBAAE,mBAAmBA;YAAe;QAC7C;QAEA,IAAID,WAAW;YACb,OAAO;gBAAE,cAAcA;YAAU;QACnC;QAEA,OAAO;YAAE,cAAc;QAAgB;IACzC;IAEA,MAAMQ,8BACJ,MAAClB;QACCmB,OAAOX;QACPY,UAAUP,YAAYQ,UAAU,CAACC,OAAO;QACxCnB,UAAUA;QACVD,MAAMW,YAAYU,KAAK,CAACrB,IAAI;QAC5BsB,KAAKX,YAAYU,KAAK,CAACC,GAAG;QAC1BC,OAAOZ,YAAYU,KAAK,CAACE,KAAK;QAC9BC,UAAUb,YAAYU,KAAK,CAACG,QAAQ;QACpCC,QAAQd,YAAYU,KAAK,CAACI,MAAM;QAChCpB,UACEM,YAAYU,KAAK,CAAChB,QAAQ,IAAIM,YAAYe,SAAS,CAACrB,QAAQ,IAAIM,YAAYe,SAAS,CAACC,YAAY,IAAItB;QAExGuB,oBAAkB,GAAGf,QAAQ,CAAC,EAAEC,eAAe;QAC9C,GAAGC,uBAAuB;;YAE1BR,6BAAe,KAACT,OAAO+B,iBAAiB;0BAAEtB;;YAC1CL,QAAQ4B,GAAG,CAAC,CAACC,uBACZ,KAACjC,OAAOkC,YAAY;oBAAoBT,OAAOQ,OAAOR,KAAK;8BACxDQ,OAAO5B,KAAK;mBADW4B,OAAOR,KAAK;;;IAO5C,MAAMU,oCACJ;;YACGtB,YAAYQ,UAAU,CAACe,KAAK,kBAC3B,KAACtC;gBAAYuC,SAAQ;gBAAQC,IAAIvB;0BAC9BF,YAAYQ,UAAU,CAACe,KAAK,CAACG,OAAO;;YAGxCjC,6BAAe,KAACR;gBAAYwC,IAAItB;0BAAgBV;;;;IAIrD,IAAI,CAACD,OAAO;QACV,qBACE,MAACmC;YAAI5B,WAAWA;;gBACbM;gBACAiB;;;IAGP;IAEA,qBACE,MAACpC;QAAMa,WAAWA;QAAWP,OAAOA;;YACjCa;YACAiB;;;AAGP"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { useId } from 'react';
|
|
2
|
-
import { useController } from 'react-hook-form';
|
|
3
|
-
import Description from '../../Description';
|
|
4
|
-
import Label from '../../Label';
|
|
5
|
-
import Select from '../../Select';
|
|
6
|
-
export default function FormSelect({ name, required, options, label, description, disabled, size, placeholder, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, className, }) {
|
|
7
|
-
const formControl = useController({ name, rules: { required } });
|
|
8
|
-
const errorId = useId();
|
|
9
|
-
const descriptionId = useId();
|
|
10
|
-
const getAccessibilityProps = () => {
|
|
11
|
-
if (label) {
|
|
12
|
-
return {};
|
|
13
|
-
}
|
|
14
|
-
if (ariaLabelledby) {
|
|
15
|
-
return { 'aria-labelledby': ariaLabelledby };
|
|
16
|
-
}
|
|
17
|
-
if (ariaLabel) {
|
|
18
|
-
return { 'aria-label': ariaLabel };
|
|
19
|
-
}
|
|
20
|
-
return { 'aria-label': 'Select option' };
|
|
21
|
-
};
|
|
22
|
-
const selectElement = (<Select $size={size} hasError={formControl.fieldState.invalid} required={required} name={formControl.field.name} ref={formControl.field.ref} value={formControl.field.value} onChange={formControl.field.onChange} onBlur={formControl.field.onBlur} disabled={formControl.field.disabled || formControl.formState.disabled || formControl.formState.isSubmitting || disabled} aria-describedby={`${errorId} ${descriptionId}`} {...getAccessibilityProps()}>
|
|
23
|
-
{placeholder && <Select.SelectEmptyOption>{placeholder}</Select.SelectEmptyOption>}
|
|
24
|
-
{options.map((option) => (<Select.SelectOption key={option.value} value={option.value}>
|
|
25
|
-
{option.label}
|
|
26
|
-
</Select.SelectOption>))}
|
|
27
|
-
</Select>);
|
|
28
|
-
const errorAndDescription = (<>
|
|
29
|
-
{formControl.fieldState.error && (<Description variant="error" id={errorId}>
|
|
30
|
-
{formControl.fieldState.error.message}
|
|
31
|
-
</Description>)}
|
|
32
|
-
{description && <Description id={descriptionId}>{description}</Description>}
|
|
33
|
-
</>);
|
|
34
|
-
if (!label) {
|
|
35
|
-
return (<div className={className}>
|
|
36
|
-
{selectElement}
|
|
37
|
-
{errorAndDescription}
|
|
38
|
-
</div>);
|
|
39
|
-
}
|
|
40
|
-
return (<Label className={className} label={label}>
|
|
41
|
-
{selectElement}
|
|
42
|
-
{errorAndDescription}
|
|
43
|
-
</Label>);
|
|
44
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/client/shared/ui/form/FormSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/client/shared/ui/form/FormSelect/index.ts"],"sourcesContent":["export { default } from './FormSelect'\n"],"names":["default"],"mappings":"AAAA,SAASA,OAAO,QAAQ,eAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelectLocale.d.ts","sourceRoot":"","sources":["../../../../../../src/client/shared/ui/form/FormSelectLocale/FormSelectLocale.tsx"],"names":[],"mappings":"AAGA,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,SAAS,GACV,EAAE,eAAe,+BAgBjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/client/shared/ui/form/FormSelectLocale/FormSelectLocale.tsx"],"sourcesContent":["import { useLocaleOptions } from '../../../lib/payload/hooks/useLocaleOptions'\nimport FormSelect from '../FormSelect'\n\ntype FormSelectProps = {\n name: string\n required?: boolean\n label?: string\n description?: string\n disabled?: boolean\n size?: 'sm' | 'md' | 'lg'\n className?: string\n}\n\nexport default function FormSelectLocale({\n name,\n required,\n label,\n description,\n disabled,\n size,\n className,\n}: FormSelectProps) {\n const localeOptions = useLocaleOptions()\n\n return (\n <FormSelect\n placeholder=\"-\"\n size={size}\n className={className}\n description={description}\n label={label}\n required={required}\n name={name}\n options={localeOptions}\n disabled={disabled}\n />\n )\n}\n"],"names":["useLocaleOptions","FormSelect","FormSelectLocale","name","required","label","description","disabled","size","className","localeOptions","placeholder","options"],"mappings":";AAAA,SAASA,gBAAgB,QAAQ,8CAA6C;AAC9E,OAAOC,gBAAgB,gBAAe;AAYtC,eAAe,SAASC,iBAAiB,EACvCC,IAAI,EACJC,QAAQ,EACRC,KAAK,EACLC,WAAW,EACXC,QAAQ,EACRC,IAAI,EACJC,SAAS,EACO;IAChB,MAAMC,gBAAgBV;IAEtB,qBACE,KAACC;QACCU,aAAY;QACZH,MAAMA;QACNC,WAAWA;QACXH,aAAaA;QACbD,OAAOA;QACPD,UAAUA;QACVD,MAAMA;QACNS,SAASF;QACTH,UAAUA;;AAGhB"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { useLocaleOptions } from '../../../lib/payload/hooks/useLocaleOptions';
|
|
2
|
-
import FormSelect from '../FormSelect';
|
|
3
|
-
export default function FormSelectLocale({ name, required, label, description, disabled, size, className, }) {
|
|
4
|
-
const localeOptions = useLocaleOptions();
|
|
5
|
-
return (<FormSelect placeholder="-" size={size} className={className} description={description} label={label} required={required} name={name} options={localeOptions} disabled={disabled}/>);
|
|
6
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/client/shared/ui/form/FormSelectLocale/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/client/shared/ui/form/FormSelectLocale/index.ts"],"sourcesContent":["export { default } from './FormSelectLocale'\n"],"names":["default"],"mappings":"AAAA,SAASA,OAAO,QAAQ,qBAAoB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelectStrategy.d.ts","sourceRoot":"","sources":["../../../../../../src/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,gBAAgB;;;;;;EAGZ,CAAA;AAuBV,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,SAAS,GACV,EAAE,uBAAuB,+BAazB;AAED,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.tsx"],"sourcesContent":["import type { ReactElement } from 'react'\n\nimport FormSelect from '../FormSelect'\nimport Tooltip from '../../Tooltip'\nimport { QuestionCircleIcon } from '../../../lib/assets/icons/QuestionCircleIcon'\n\nimport styles from './styles.module.scss'\n\nconst STRATEGY_OPTIONS = [\n { value: 'overwrite', label: 'Overwrite' },\n { value: 'skip_existing', label: 'Skip existing' },\n] as const\n\nconst STRATEGY_LABEL = 'Update mode'\n\nconst STRATEGY_TOOLTIP = (\n <>\n <strong>Overwrite</strong> — translate all fields, replacing existing values\n <br />\n <strong>Skip existing</strong> — only translate empty fields, keep existing values\n </>\n)\n\nconst StrategyLabel: ReactElement = (\n <span className={styles.label}>\n {STRATEGY_LABEL}\n <Tooltip content={STRATEGY_TOOLTIP} side=\"bottom\">\n <span className={styles.label__icon}>\n <QuestionCircleIcon />\n </span>\n </Tooltip>\n </span>\n)\n\ntype FormSelectStrategyProps = {\n name: string\n required?: boolean\n description?: string\n disabled?: boolean\n size?: 'sm' | 'md' | 'lg'\n className?: string\n}\n\nexport function FormSelectStrategy({\n name,\n required,\n description,\n disabled,\n size,\n className,\n}: FormSelectStrategyProps) {\n return (\n <FormSelect\n size={size}\n className={className}\n description={description}\n label={StrategyLabel}\n required={required}\n name={name}\n options={[...STRATEGY_OPTIONS]}\n disabled={disabled}\n />\n )\n}\n\nexport type TranslationStrategy = (typeof STRATEGY_OPTIONS)[number]['value']\n"],"names":["FormSelect","Tooltip","QuestionCircleIcon","styles","STRATEGY_OPTIONS","value","label","STRATEGY_LABEL","STRATEGY_TOOLTIP","strong","br","StrategyLabel","span","className","content","side","label__icon","FormSelectStrategy","name","required","description","disabled","size","options"],"mappings":";AAEA,OAAOA,gBAAgB,gBAAe;AACtC,OAAOC,aAAa,gBAAe;AACnC,SAASC,kBAAkB,QAAQ,+CAA8C;AAEjF,OAAOC,YAAY,uBAAsB;AAEzC,MAAMC,mBAAmB;IACvB;QAAEC,OAAO;QAAaC,OAAO;IAAY;IACzC;QAAED,OAAO;QAAiBC,OAAO;IAAgB;CAClD;AAED,MAAMC,iBAAiB;AAEvB,MAAMC,iCACJ;;sBACE,KAACC;sBAAO;;QAAkB;sBAC1B,KAACC;sBACD,KAACD;sBAAO;;QAAsB;;;AAIlC,MAAME,8BACJ,MAACC;IAAKC,WAAWV,OAAOG,KAAK;;QAC1BC;sBACD,KAACN;YAAQa,SAASN;YAAkBO,MAAK;sBACvC,cAAA,KAACH;gBAAKC,WAAWV,OAAOa,WAAW;0BACjC,cAAA,KAACd;;;;;AAeT,OAAO,SAASe,mBAAmB,EACjCC,IAAI,EACJC,QAAQ,EACRC,WAAW,EACXC,QAAQ,EACRC,IAAI,EACJT,SAAS,EACe;IACxB,qBACE,KAACb;QACCsB,MAAMA;QACNT,WAAWA;QACXO,aAAaA;QACbd,OAAOK;QACPQ,UAAUA;QACVD,MAAMA;QACNK,SAAS;eAAInB;SAAiB;QAC9BiB,UAAUA;;AAGhB"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import FormSelect from '../FormSelect';
|
|
2
|
-
import Tooltip from '../../Tooltip';
|
|
3
|
-
import { QuestionCircleIcon } from '../../../lib/assets/icons/QuestionCircleIcon';
|
|
4
|
-
import styles from './styles.module.scss';
|
|
5
|
-
const STRATEGY_OPTIONS = [
|
|
6
|
-
{ value: 'overwrite', label: 'Overwrite' },
|
|
7
|
-
{ value: 'skip_existing', label: 'Skip existing' },
|
|
8
|
-
];
|
|
9
|
-
const STRATEGY_LABEL = 'Update mode';
|
|
10
|
-
const STRATEGY_TOOLTIP = (<>
|
|
11
|
-
<strong>Overwrite</strong> — translate all fields, replacing existing values
|
|
12
|
-
<br />
|
|
13
|
-
<strong>Skip existing</strong> — only translate empty fields, keep existing values
|
|
14
|
-
</>);
|
|
15
|
-
const StrategyLabel = (<span className={styles.label}>
|
|
16
|
-
{STRATEGY_LABEL}
|
|
17
|
-
<Tooltip content={STRATEGY_TOOLTIP} side="bottom">
|
|
18
|
-
<span className={styles.label__icon}>
|
|
19
|
-
<QuestionCircleIcon />
|
|
20
|
-
</span>
|
|
21
|
-
</Tooltip>
|
|
22
|
-
</span>);
|
|
23
|
-
export function FormSelectStrategy({ name, required, description, disabled, size, className, }) {
|
|
24
|
-
return (<FormSelect size={size} className={className} description={description} label={StrategyLabel} required={required} name={name} options={[...STRATEGY_OPTIONS]} disabled={disabled}/>);
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/client/shared/ui/form/FormSelectStrategy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,YAAY,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/client/shared/ui/form/FormSelectStrategy/index.ts"],"sourcesContent":["export { FormSelectStrategy } from './FormSelectStrategy'\nexport type { TranslationStrategy } from './FormSelectStrategy'\n"],"names":["FormSelectStrategy"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,uBAAsB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"componentPath.d.ts","sourceRoot":"","sources":["../../../../src/client/shared/utils/componentPath.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAEhE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/client/shared/utils/componentPath.ts"],"sourcesContent":["const PACKAGE_NAME = '@focus-reactive/payload-plugin-translator'\n\n/**\n * Creates a full path to a client component for Payload's import map.\n * @param relativePath - Path relative to the client folder (e.g., 'widgets/translate-document/ui/TranslateDocument.server.tsx')\n */\nexport function clientComponentPath(relativePath: string): string {\n return `${PACKAGE_NAME}/client/${relativePath}`\n}\n"],"names":["PACKAGE_NAME","clientComponentPath","relativePath"],"mappings":"AAAA,MAAMA,eAAe;AAErB;;;CAGC,GACD,OAAO,SAASC,oBAAoBC,YAAoB;IACtD,OAAO,GAAGF,aAAa,QAAQ,EAAEE,cAAc;AACjD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/widgets/bulk-translation-dashboard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,sCAAsC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/client/widgets/bulk-translation-dashboard/index.ts"],"sourcesContent":["export { BulkDocumentTranslationDashboard } from './ui/BulkTranslationDashboard.export'\n"],"names":["BulkDocumentTranslationDashboard"],"mappings":"AAAA,SAASA,gCAAgC,QAAQ,uCAAsC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BulkTranslationDashboard.d.ts","sourceRoot":"","sources":["../../../../../src/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.tsx"],"names":[],"mappings":"AAcA,KAAK,6BAA6B,GAAG;IACnC,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAAE,SAAS,EAAE,EAAE,6BAA6B,+BAkE5F"}
|
package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BulkTranslationDashboard.export.d.ts","sourceRoot":"","sources":["../../../../../src/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAEhE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAA;AAG7F,qBAAa,gCAAiC,YAAW,yBAAyB;IAGpE,QAAQ,CAAC,MAAM,EAAE,WAAW;IAFxC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAA;gBAEjC,MAAM,GAAE,WAAkC;IAG/D,IAAI,SAAmG;CACxG"}
|
package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.tsx"],"sourcesContent":["import type { AccessGuard } from '../../../../types/AccessGuard'\nimport { AnyAccessGuard } from '../../../../server/shared'\nimport type { RawPayloadComponentExport } from '../../../shared/types/PayloadComponentExport'\nimport { clientComponentPath } from '../../../shared/utils/componentPath'\n\nexport class BulkDocumentTranslationDashboard implements RawPayloadComponentExport {\n serverProps?: object | Record<string, any> | undefined\n\n constructor(readonly access: AccessGuard = new AnyAccessGuard()) {\n this.serverProps = { access }\n }\n path = clientComponentPath('widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.tsx')\n}\n"],"names":["AnyAccessGuard","clientComponentPath","BulkDocumentTranslationDashboard","serverProps","access","path"],"mappings":"AACA,SAASA,cAAc,QAAQ,4BAA2B;AAE1D,SAASC,mBAAmB,QAAQ,sCAAqC;AAEzE,OAAO,MAAMC;;IACXC,YAAsD;IAEtD,YAAY,AAASC,SAAsB,IAAIJ,gBAAgB,CAAE;aAA5CI,SAAAA;QACnB,IAAI,CAACD,WAAW,GAAG;YAAEC;QAAO;IAC9B;IACAC,OAAOJ,oBAAoB,6EAA4E;AACzG"}
|
package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.jsx
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AnyAccessGuard } from '../../../../server/shared';
|
|
2
|
-
import { clientComponentPath } from '../../../shared/utils/componentPath';
|
|
3
|
-
export class BulkDocumentTranslationDashboard {
|
|
4
|
-
access;
|
|
5
|
-
serverProps;
|
|
6
|
-
constructor(access = new AnyAccessGuard()) {
|
|
7
|
-
this.access = access;
|
|
8
|
-
this.serverProps = { access };
|
|
9
|
-
}
|
|
10
|
-
path = clientComponentPath('widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.tsx');
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.tsx"],"sourcesContent":["'use client'\n\nimport { toast, useLocale, useSelection } from '@payloadcms/ui'\nimport { SelectAllStatus } from '@payloadcms/ui/providers/Selection'\nimport { useEffect, useMemo } from 'react'\n\nimport { TranslationsApi } from '../../../entities/translation'\nimport { CollectionTranslationForm, FORM_FIELDS, type FormValues } from '../../../features/collection-translation-form'\nimport { CollectionTranslationFormModel } from '../../../features/collection-translation-form/index.client'\nimport CollectionTranslationPopup from '../../../features/collection-translation-popup'\nimport { CollectionTranslationProgress } from '../../../features/collection-translation-progress'\nimport { handleFormError } from '../../../shared/lib/forms/handle-form-error'\nimport { useCollectionDashboardUrlParams } from '../../../shared/lib/payload/hooks/useCollectionDashboardUrlParams'\n\ntype BulkTranslationDashboardProps = {\n hasDrafts: boolean\n}\n\nexport default function BulkTranslationDashboard({ hasDrafts }: BulkTranslationDashboardProps) {\n const locale = useLocale()\n const { collection } = useCollectionDashboardUrlParams()\n const documentsSelection = useSelection()\n\n const queueTranslationApi = TranslationsApi.useQueueDocumentTranslation()\n const collectionTranslationApi = TranslationsApi.useCollectionTranslationStatus({ collection })\n\n useEffect(() => {\n if (collectionTranslationApi.error) {\n toast.error(collectionTranslationApi.error.message)\n }\n }, [collectionTranslationApi.error])\n\n const initialValues = useMemo(\n () => ({\n [FORM_FIELDS.SOURCE_LNG]: locale.code,\n [FORM_FIELDS.HIDDEN_COLLECTION_SLUG]: collection,\n }),\n [locale.code, collection],\n )\n\n const { form } = CollectionTranslationFormModel.useForm({\n initialValues,\n disabled: collectionTranslationApi.isLoading,\n })\n\n const selectAll = documentsSelection.selectAll === SelectAllStatus.AllAvailable\n const selectedCount = selectAll ? documentsSelection.totalDocs : documentsSelection.count\n\n const translationInProgress = !!(\n collectionTranslationApi.data?.pending.length || collectionTranslationApi.data?.running.length\n )\n\n const handleSubmit = async (formData: FormValues) => {\n try {\n await queueTranslationApi.mutateAsync({\n ...formData,\n collection_id: documentsSelection.selectedIDs,\n select_all: selectAll,\n })\n } catch (e) {\n handleFormError(e, form)\n }\n }\n\n return (\n <CollectionTranslationPopup translationInProgress={translationInProgress} selectedCount={selectedCount}>\n <h3>Bulk Translation Dashboard</h3>\n <p>\n Translate multiple documents at once using AI. Select the records you want to translate on the collection\n dashboard, then configure your translation settings here.\n </p>\n <CollectionTranslationForm\n form={form}\n onSubmit={handleSubmit}\n selectedCount={selectedCount}\n hasDrafts={hasDrafts}\n />\n <CollectionTranslationProgress\n collection={collection}\n data={collectionTranslationApi.data}\n isPending={collectionTranslationApi.isPending}\n />\n </CollectionTranslationPopup>\n )\n}\n"],"names":["toast","useLocale","useSelection","SelectAllStatus","useEffect","useMemo","TranslationsApi","CollectionTranslationForm","FORM_FIELDS","CollectionTranslationFormModel","CollectionTranslationPopup","CollectionTranslationProgress","handleFormError","useCollectionDashboardUrlParams","BulkTranslationDashboard","hasDrafts","locale","collection","documentsSelection","queueTranslationApi","useQueueDocumentTranslation","collectionTranslationApi","useCollectionTranslationStatus","error","message","initialValues","SOURCE_LNG","code","HIDDEN_COLLECTION_SLUG","form","useForm","disabled","isLoading","selectAll","AllAvailable","selectedCount","totalDocs","count","translationInProgress","data","pending","length","running","handleSubmit","formData","mutateAsync","collection_id","selectedIDs","select_all","e","h3","p","onSubmit","isPending"],"mappings":"AAAA;;AAEA,SAASA,KAAK,EAAEC,SAAS,EAAEC,YAAY,QAAQ,iBAAgB;AAC/D,SAASC,eAAe,QAAQ,qCAAoC;AACpE,SAASC,SAAS,EAAEC,OAAO,QAAQ,QAAO;AAE1C,SAASC,eAAe,QAAQ,gCAA+B;AAC/D,SAASC,yBAAyB,EAAEC,WAAW,QAAyB,gDAA+C;AACvH,SAASC,8BAA8B,QAAQ,6DAA4D;AAC3G,OAAOC,gCAAgC,iDAAgD;AACvF,SAASC,6BAA6B,QAAQ,oDAAmD;AACjG,SAASC,eAAe,QAAQ,8CAA6C;AAC7E,SAASC,+BAA+B,QAAQ,oEAAmE;AAMnH,eAAe,SAASC,yBAAyB,EAAEC,SAAS,EAAiC;IAC3F,MAAMC,SAASf;IACf,MAAM,EAAEgB,UAAU,EAAE,GAAGJ;IACvB,MAAMK,qBAAqBhB;IAE3B,MAAMiB,sBAAsBb,gBAAgBc,2BAA2B;IACvE,MAAMC,2BAA2Bf,gBAAgBgB,8BAA8B,CAAC;QAAEL;IAAW;IAE7Fb,UAAU;QACR,IAAIiB,yBAAyBE,KAAK,EAAE;YAClCvB,MAAMuB,KAAK,CAACF,yBAAyBE,KAAK,CAACC,OAAO;QACpD;IACF,GAAG;QAACH,yBAAyBE,KAAK;KAAC;IAEnC,MAAME,gBAAgBpB,QACpB,IAAO,CAAA;YACL,CAACG,YAAYkB,UAAU,CAAC,EAAEV,OAAOW,IAAI;YACrC,CAACnB,YAAYoB,sBAAsB,CAAC,EAAEX;QACxC,CAAA,GACA;QAACD,OAAOW,IAAI;QAAEV;KAAW;IAG3B,MAAM,EAAEY,IAAI,EAAE,GAAGpB,+BAA+BqB,OAAO,CAAC;QACtDL;QACAM,UAAUV,yBAAyBW,SAAS;IAC9C;IAEA,MAAMC,YAAYf,mBAAmBe,SAAS,KAAK9B,gBAAgB+B,YAAY;IAC/E,MAAMC,gBAAgBF,YAAYf,mBAAmBkB,SAAS,GAAGlB,mBAAmBmB,KAAK;IAEzF,MAAMC,wBAAwB,CAAC,CAC7BjB,CAAAA,yBAAyBkB,IAAI,EAAEC,QAAQC,UAAUpB,yBAAyBkB,IAAI,EAAEG,QAAQD,MAAK;IAG/F,MAAME,eAAe,OAAOC;QAC1B,IAAI;YACF,MAAMzB,oBAAoB0B,WAAW,CAAC;gBACpC,GAAGD,QAAQ;gBACXE,eAAe5B,mBAAmB6B,WAAW;gBAC7CC,YAAYf;YACd;QACF,EAAE,OAAOgB,GAAG;YACVrC,gBAAgBqC,GAAGpB;QACrB;IACF;IAEA,qBACE,MAACnB;QAA2B4B,uBAAuBA;QAAuBH,eAAeA;;0BACvF,KAACe;0BAAG;;0BACJ,KAACC;0BAAE;;0BAIH,KAAC5C;gBACCsB,MAAMA;gBACNuB,UAAUT;gBACVR,eAAeA;gBACfpB,WAAWA;;0BAEb,KAACJ;gBACCM,YAAYA;gBACZsB,MAAMlB,yBAAyBkB,IAAI;gBACnCc,WAAWhC,yBAAyBgC,SAAS;;;;AAIrD"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { toast, useLocale, useSelection } from '@payloadcms/ui';
|
|
3
|
-
import { SelectAllStatus } from '@payloadcms/ui/providers/Selection';
|
|
4
|
-
import { useEffect, useMemo } from 'react';
|
|
5
|
-
import { TranslationsApi } from '../../../entities/translation';
|
|
6
|
-
import { CollectionTranslationForm, FORM_FIELDS } from '../../../features/collection-translation-form';
|
|
7
|
-
import { CollectionTranslationFormModel } from '../../../features/collection-translation-form/index.client';
|
|
8
|
-
import CollectionTranslationPopup from '../../../features/collection-translation-popup';
|
|
9
|
-
import { CollectionTranslationProgress } from '../../../features/collection-translation-progress';
|
|
10
|
-
import { handleFormError } from '../../../shared/lib/forms/handle-form-error';
|
|
11
|
-
import { useCollectionDashboardUrlParams } from '../../../shared/lib/payload/hooks/useCollectionDashboardUrlParams';
|
|
12
|
-
export default function BulkTranslationDashboard({ hasDrafts }) {
|
|
13
|
-
const locale = useLocale();
|
|
14
|
-
const { collection } = useCollectionDashboardUrlParams();
|
|
15
|
-
const documentsSelection = useSelection();
|
|
16
|
-
const queueTranslationApi = TranslationsApi.useQueueDocumentTranslation();
|
|
17
|
-
const collectionTranslationApi = TranslationsApi.useCollectionTranslationStatus({ collection });
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
if (collectionTranslationApi.error) {
|
|
20
|
-
toast.error(collectionTranslationApi.error.message);
|
|
21
|
-
}
|
|
22
|
-
}, [collectionTranslationApi.error]);
|
|
23
|
-
const initialValues = useMemo(() => ({
|
|
24
|
-
[FORM_FIELDS.SOURCE_LNG]: locale.code,
|
|
25
|
-
[FORM_FIELDS.HIDDEN_COLLECTION_SLUG]: collection,
|
|
26
|
-
}), [locale.code, collection]);
|
|
27
|
-
const { form } = CollectionTranslationFormModel.useForm({
|
|
28
|
-
initialValues,
|
|
29
|
-
disabled: collectionTranslationApi.isLoading,
|
|
30
|
-
});
|
|
31
|
-
const selectAll = documentsSelection.selectAll === SelectAllStatus.AllAvailable;
|
|
32
|
-
const selectedCount = selectAll ? documentsSelection.totalDocs : documentsSelection.count;
|
|
33
|
-
const translationInProgress = !!(collectionTranslationApi.data?.pending.length || collectionTranslationApi.data?.running.length);
|
|
34
|
-
const handleSubmit = async (formData) => {
|
|
35
|
-
try {
|
|
36
|
-
await queueTranslationApi.mutateAsync({
|
|
37
|
-
...formData,
|
|
38
|
-
collection_id: documentsSelection.selectedIDs,
|
|
39
|
-
select_all: selectAll,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
catch (e) {
|
|
43
|
-
handleFormError(e, form);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
return (<CollectionTranslationPopup translationInProgress={translationInProgress} selectedCount={selectedCount}>
|
|
47
|
-
<h3>Bulk Translation Dashboard</h3>
|
|
48
|
-
<p>
|
|
49
|
-
Translate multiple documents at once using AI. Select the records you want to translate on the collection
|
|
50
|
-
dashboard, then configure your translation settings here.
|
|
51
|
-
</p>
|
|
52
|
-
<CollectionTranslationForm form={form} onSubmit={handleSubmit} selectedCount={selectedCount} hasDrafts={hasDrafts}/>
|
|
53
|
-
<CollectionTranslationProgress collection={collection} data={collectionTranslationApi.data} isPending={collectionTranslationApi.isPending}/>
|
|
54
|
-
</CollectionTranslationPopup>);
|
|
55
|
-
}
|
package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BulkTranslationDashboard.server.d.ts","sourceRoot":"","sources":["../../../../../src/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAKhE,KAAK,mCAAmC,GAAG,0BAA0B,GAAG;IACtE,MAAM,EAAE,WAAW,CAAA;CACpB,CAAA;AAED,QAAA,MAAM,8BAA8B,GAAU,OAAO,mCAAmC,gDAavF,CAAA;AAED,eAAe,8BAA8B,CAAA"}
|
package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.tsx"],"sourcesContent":["import { headers as getHeaders } from 'next/headers'\nimport type { BeforeListTableServerProps } from 'payload'\n\nimport type { AccessGuard } from '../../../../types/AccessGuard'\nimport { collectionHasDrafts } from '../../../../server/shared/guards'\n\nimport BulkTranslationDashboard from './BulkTranslationDashboard'\n\ntype BulkTranslationDashboardServerProps = BeforeListTableServerProps & {\n access: AccessGuard\n}\n\nconst BulkTranslationDashboardServer = async (props: BulkTranslationDashboardServerProps) => {\n const headers = await getHeaders()\n const hasAccess = await props.access.check({\n req: { user: props.user, headers, payload: props.payload },\n })\n\n if (!hasAccess) return null\n if (!props.collectionSlug) return null\n\n const collection = props.payload.collections[props.collectionSlug]?.config\n const hasDrafts = collection ? collectionHasDrafts(collection) : false\n\n return <BulkTranslationDashboard hasDrafts={hasDrafts} />\n}\n\nexport default BulkTranslationDashboardServer\n"],"names":["headers","getHeaders","collectionHasDrafts","BulkTranslationDashboard","BulkTranslationDashboardServer","props","hasAccess","access","check","req","user","payload","collectionSlug","collection","collections","config","hasDrafts"],"mappings":";AAAA,SAASA,WAAWC,UAAU,QAAQ,eAAc;AAIpD,SAASC,mBAAmB,QAAQ,mCAAkC;AAEtE,OAAOC,8BAA8B,6BAA4B;AAMjE,MAAMC,iCAAiC,OAAOC;IAC5C,MAAML,UAAU,MAAMC;IACtB,MAAMK,YAAY,MAAMD,MAAME,MAAM,CAACC,KAAK,CAAC;QACzCC,KAAK;YAAEC,MAAML,MAAMK,IAAI;YAAEV;YAASW,SAASN,MAAMM,OAAO;QAAC;IAC3D;IAEA,IAAI,CAACL,WAAW,OAAO;IACvB,IAAI,CAACD,MAAMO,cAAc,EAAE,OAAO;IAElC,MAAMC,aAAaR,MAAMM,OAAO,CAACG,WAAW,CAACT,MAAMO,cAAc,CAAC,EAAEG;IACpE,MAAMC,YAAYH,aAAaX,oBAAoBW,cAAc;IAEjE,qBAAO,KAACV;QAAyBa,WAAWA;;AAC9C;AAEA,eAAeZ,+BAA8B"}
|
package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.jsx
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { headers as getHeaders } from 'next/headers';
|
|
2
|
-
import { collectionHasDrafts } from '../../../../server/shared/guards';
|
|
3
|
-
import BulkTranslationDashboard from './BulkTranslationDashboard';
|
|
4
|
-
const BulkTranslationDashboardServer = async (props) => {
|
|
5
|
-
const headers = await getHeaders();
|
|
6
|
-
const hasAccess = await props.access.check({
|
|
7
|
-
req: { user: props.user, headers, payload: props.payload },
|
|
8
|
-
});
|
|
9
|
-
if (!hasAccess)
|
|
10
|
-
return null;
|
|
11
|
-
if (!props.collectionSlug)
|
|
12
|
-
return null;
|
|
13
|
-
const collection = props.payload.collections[props.collectionSlug]?.config;
|
|
14
|
-
const hasDrafts = collection ? collectionHasDrafts(collection) : false;
|
|
15
|
-
return <BulkTranslationDashboard hasDrafts={hasDrafts}/>;
|
|
16
|
-
};
|
|
17
|
-
export default BulkTranslationDashboardServer;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/widgets/bulk-translation-dashboard/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/client/widgets/bulk-translation-dashboard/ui/index.ts"],"sourcesContent":["export { default } from './BulkTranslationDashboard'\n"],"names":["default"],"mappings":"AAAA,SAASA,OAAO,QAAQ,6BAA4B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/widgets/translate-document/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/client/widgets/translate-document/index.ts"],"sourcesContent":["export { TranslateDocumentExport } from './ui/TranslateDocument.export'\n"],"names":["TranslateDocumentExport"],"mappings":"AAAA,SAASA,uBAAuB,QAAQ,gCAA+B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TranslateDocument.d.ts","sourceRoot":"","sources":["../../../../../src/client/widgets/translate-document/ui/TranslateDocument.tsx"],"names":[],"mappings":"AAeA,KAAK,sBAAsB,GAAG;IAC5B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,QAAA,MAAM,iBAAiB,GAAI,eAAe,sBAAsB,gCA2D/D,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TranslateDocument.export.d.ts","sourceRoot":"","sources":["../../../../../src/client/widgets/translate-document/ui/TranslateDocument.export.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAEhE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAA;AAG7F,qBAAa,uBAAwB,YAAW,yBAAyB;IAIrE,QAAQ,CAAC,UAAU,EAAE,gBAAgB;IACrC,QAAQ,CAAC,MAAM,EAAE,WAAW;IAJ9B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAA;gBAG3C,UAAU,EAAE,gBAAgB,EAC5B,MAAM,GAAE,WAAkC;IAIrD,IAAI,SAAoF;CACzF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/client/widgets/translate-document/ui/TranslateDocument.export.ts"],"sourcesContent":["import type { CollectionConfig } from 'payload'\n\nimport type { AccessGuard } from '../../../../types/AccessGuard'\nimport { AnyAccessGuard } from '../../../../server/shared'\nimport type { RawPayloadComponentExport } from '../../../shared/types/PayloadComponentExport'\nimport { clientComponentPath } from '../../../shared/utils/componentPath'\n\nexport class TranslateDocumentExport implements RawPayloadComponentExport {\n serverProps?: object | Record<string, any> | undefined\n\n constructor(\n readonly collection: CollectionConfig,\n readonly access: AccessGuard = new AnyAccessGuard(),\n ) {\n this.serverProps = { collection, access }\n }\n path = clientComponentPath('widgets/translate-document/ui/TranslateDocument.server.tsx')\n}\n"],"names":["AnyAccessGuard","clientComponentPath","TranslateDocumentExport","serverProps","collection","access","path"],"mappings":"AAGA,SAASA,cAAc,QAAQ,4BAA2B;AAE1D,SAASC,mBAAmB,QAAQ,sCAAqC;AAEzE,OAAO,MAAMC;;;IACXC,YAAsD;IAEtD,YACE,AAASC,UAA4B,EACrC,AAASC,SAAsB,IAAIL,gBAAgB,CACnD;aAFSI,aAAAA;aACAC,SAAAA;QAET,IAAI,CAACF,WAAW,GAAG;YAAEC;YAAYC;QAAO;IAC1C;IACAC,OAAOL,oBAAoB,8DAA6D;AAC1F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/client/widgets/translate-document/ui/TranslateDocument.tsx"],"sourcesContent":["'use client'\n\nimport { toast, useLocale } from '@payloadcms/ui'\nimport { useEffect, useMemo } from 'react'\n\nimport { CompletedTranslationStatus, TranslationsApi } from '../../../entities/translation'\nimport { OpenDocumentTranslationPopup } from '../../../features/open-document-translation-popup'\nimport { DocumentTranslationForm, FORM_FIELDS, type FormValues } from '../../../features/translate-document-form'\nimport { DocumentTranslationFormModel } from '../../../features/translate-document-form/index.client'\nimport { handleFormError } from '../../../shared/lib/forms/handle-form-error'\nimport { useCollectionDocumentUrlParams } from '../../../shared/lib/payload/hooks/useCollectionDocumentUrlParams'\nimport { DocumentTranslationProgressFailed } from '../../../features/document-translation-progress-failed'\nimport { DocumentTranslationProgressRunning } from '../../../features/document-translation-progress-running'\nimport { DocumentTranslationProgressPending } from '../../../features/document-translation-progress-pending'\n\ntype TranslateDocumentProps = {\n hasDrafts: boolean\n}\n\nconst TranslateDocument = ({ hasDrafts }: TranslateDocumentProps) => {\n const locale = useLocale()\n const params = useCollectionDocumentUrlParams()\n\n const queueTranslationApi = TranslationsApi.useQueueDocumentTranslation()\n const { data, error, isLoading } = TranslationsApi.useDocumentTranslation(params)\n\n useEffect(() => {\n if (error) {\n toast.error(error.message)\n }\n }, [error])\n\n const initialValues = useMemo(\n () => ({\n [FORM_FIELDS.SOURCE_LNG]: locale.code,\n [FORM_FIELDS.HIDDEN_COLLECTION_SLUG]: params.collection,\n [FORM_FIELDS.HIDDEN_COLLECTION_ID]: params.id,\n }),\n [locale.code, params.collection, params.id],\n )\n\n const { form } = DocumentTranslationFormModel.useForm({ initialValues })\n\n const handleSubmit = async (formData: FormValues, onSuccess?: () => void) => {\n try {\n await queueTranslationApi.mutateAsync({\n ...formData,\n collection_id: [formData[FORM_FIELDS.HIDDEN_COLLECTION_ID]],\n })\n onSuccess?.()\n } catch (e) {\n handleFormError(e, form)\n }\n }\n\n return (\n <>\n <OpenDocumentTranslationPopup isLoading={isLoading}>\n {({ close }) => (\n <>\n <h4>Document Translation</h4>\n <DocumentTranslationForm form={form} onSubmit={(data) => handleSubmit(data, close)} hasDrafts={hasDrafts} />\n </>\n )}\n </OpenDocumentTranslationPopup>\n\n {data?.status === 'completed' && (\n <CompletedTranslationStatus\n sourceLocale={data.input.source_lng}\n targetLocale={data.input.target_lng}\n completed_at={data.completed_at}\n />\n )}\n {data?.status === 'failed' && <DocumentTranslationProgressFailed data={data} />}\n {data?.status === 'running' && <DocumentTranslationProgressRunning data={data} />}\n {data?.status === 'pending' && <DocumentTranslationProgressPending data={data} />}\n </>\n )\n}\n\nexport default TranslateDocument\n"],"names":["toast","useLocale","useEffect","useMemo","CompletedTranslationStatus","TranslationsApi","OpenDocumentTranslationPopup","DocumentTranslationForm","FORM_FIELDS","DocumentTranslationFormModel","handleFormError","useCollectionDocumentUrlParams","DocumentTranslationProgressFailed","DocumentTranslationProgressRunning","DocumentTranslationProgressPending","TranslateDocument","hasDrafts","locale","params","queueTranslationApi","useQueueDocumentTranslation","data","error","isLoading","useDocumentTranslation","message","initialValues","SOURCE_LNG","code","HIDDEN_COLLECTION_SLUG","collection","HIDDEN_COLLECTION_ID","id","form","useForm","handleSubmit","formData","onSuccess","mutateAsync","collection_id","e","close","h4","onSubmit","status","sourceLocale","input","source_lng","targetLocale","target_lng","completed_at"],"mappings":"AAAA;;AAEA,SAASA,KAAK,EAAEC,SAAS,QAAQ,iBAAgB;AACjD,SAASC,SAAS,EAAEC,OAAO,QAAQ,QAAO;AAE1C,SAASC,0BAA0B,EAAEC,eAAe,QAAQ,gCAA+B;AAC3F,SAASC,4BAA4B,QAAQ,oDAAmD;AAChG,SAASC,uBAAuB,EAAEC,WAAW,QAAyB,4CAA2C;AACjH,SAASC,4BAA4B,QAAQ,yDAAwD;AACrG,SAASC,eAAe,QAAQ,8CAA6C;AAC7E,SAASC,8BAA8B,QAAQ,mEAAkE;AACjH,SAASC,iCAAiC,QAAQ,yDAAwD;AAC1G,SAASC,kCAAkC,QAAQ,0DAAyD;AAC5G,SAASC,kCAAkC,QAAQ,0DAAyD;AAM5G,MAAMC,oBAAoB,CAAC,EAAEC,SAAS,EAA0B;IAC9D,MAAMC,SAAShB;IACf,MAAMiB,SAASP;IAEf,MAAMQ,sBAAsBd,gBAAgBe,2BAA2B;IACvE,MAAM,EAAEC,IAAI,EAAEC,KAAK,EAAEC,SAAS,EAAE,GAAGlB,gBAAgBmB,sBAAsB,CAACN;IAE1EhB,UAAU;QACR,IAAIoB,OAAO;YACTtB,MAAMsB,KAAK,CAACA,MAAMG,OAAO;QAC3B;IACF,GAAG;QAACH;KAAM;IAEV,MAAMI,gBAAgBvB,QACpB,IAAO,CAAA;YACL,CAACK,YAAYmB,UAAU,CAAC,EAAEV,OAAOW,IAAI;YACrC,CAACpB,YAAYqB,sBAAsB,CAAC,EAAEX,OAAOY,UAAU;YACvD,CAACtB,YAAYuB,oBAAoB,CAAC,EAAEb,OAAOc,EAAE;QAC/C,CAAA,GACA;QAACf,OAAOW,IAAI;QAAEV,OAAOY,UAAU;QAAEZ,OAAOc,EAAE;KAAC;IAG7C,MAAM,EAAEC,IAAI,EAAE,GAAGxB,6BAA6ByB,OAAO,CAAC;QAAER;IAAc;IAEtE,MAAMS,eAAe,OAAOC,UAAsBC;QAChD,IAAI;YACF,MAAMlB,oBAAoBmB,WAAW,CAAC;gBACpC,GAAGF,QAAQ;gBACXG,eAAe;oBAACH,QAAQ,CAAC5B,YAAYuB,oBAAoB,CAAC;iBAAC;YAC7D;YACAM;QACF,EAAE,OAAOG,GAAG;YACV9B,gBAAgB8B,GAAGP;QACrB;IACF;IAEA,qBACE;;0BACE,KAAC3B;gBAA6BiB,WAAWA;0BACtC,CAAC,EAAEkB,KAAK,EAAE,iBACT;;0CACE,KAACC;0CAAG;;0CACJ,KAACnC;gCAAwB0B,MAAMA;gCAAMU,UAAU,CAACtB,OAASc,aAAad,MAAMoB;gCAAQzB,WAAWA;;;;;YAKpGK,MAAMuB,WAAW,6BAChB,KAACxC;gBACCyC,cAAcxB,KAAKyB,KAAK,CAACC,UAAU;gBACnCC,cAAc3B,KAAKyB,KAAK,CAACG,UAAU;gBACnCC,cAAc7B,KAAK6B,YAAY;;YAGlC7B,MAAMuB,WAAW,0BAAY,KAAChC;gBAAkCS,MAAMA;;YACtEA,MAAMuB,WAAW,2BAAa,KAAC/B;gBAAmCQ,MAAMA;;YACxEA,MAAMuB,WAAW,2BAAa,KAAC9B;gBAAmCO,MAAMA;;;;AAG/E;AAEA,eAAeN,kBAAiB"}
|