@focus-reactive/payload-plugin-translator 0.1.0
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/LICENSE +21 -0
- package/README.md +410 -0
- package/dist/client/app/cache/CacheProvider.d.ts +7 -0
- package/dist/client/app/cache/CacheProvider.d.ts.map +1 -0
- package/dist/client/app/cache/CacheProvider.export.d.ts +9 -0
- package/dist/client/app/cache/CacheProvider.export.d.ts.map +1 -0
- package/dist/client/app/cache/CacheProvider.export.js +12 -0
- package/dist/client/app/cache/CacheProvider.export.js.map +1 -0
- package/dist/client/app/cache/CacheProvider.js +18 -0
- package/dist/client/app/cache/CacheProvider.js.map +1 -0
- package/dist/client/app/cache/CacheProvider.jsx +11 -0
- package/dist/client/app/config/TranslateKitConfigContext.d.ts +9 -0
- package/dist/client/app/config/TranslateKitConfigContext.d.ts.map +1 -0
- package/dist/client/app/config/TranslateKitConfigContext.js +23 -0
- package/dist/client/app/config/TranslateKitConfigContext.js.map +1 -0
- package/dist/client/app/config/TranslateKitConfigContext.jsx +13 -0
- package/dist/client/app/config/index.d.ts +3 -0
- package/dist/client/app/config/index.d.ts.map +1 -0
- package/dist/client/app/config/index.js +3 -0
- package/dist/client/app/config/index.js.map +1 -0
- package/dist/client/entities/translation/api/mutations/useCancelCollectionTranslations.d.ts +6 -0
- package/dist/client/entities/translation/api/mutations/useCancelCollectionTranslations.d.ts.map +1 -0
- package/dist/client/entities/translation/api/mutations/useCancelCollectionTranslations.js +27 -0
- package/dist/client/entities/translation/api/mutations/useCancelCollectionTranslations.js.map +1 -0
- package/dist/client/entities/translation/api/mutations/useCancelDocumentTranslation.d.ts +6 -0
- package/dist/client/entities/translation/api/mutations/useCancelDocumentTranslation.d.ts.map +1 -0
- package/dist/client/entities/translation/api/mutations/useCancelDocumentTranslation.js +34 -0
- package/dist/client/entities/translation/api/mutations/useCancelDocumentTranslation.js.map +1 -0
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.d.ts +13 -0
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.d.ts.map +1 -0
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.js +33 -0
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.js.map +1 -0
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslations.d.ts +9 -0
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslations.d.ts.map +1 -0
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslations.js +20 -0
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslations.js.map +1 -0
- package/dist/client/entities/translation/api/mutations/useRunDocumentTranslation.d.ts +6 -0
- package/dist/client/entities/translation/api/mutations/useRunDocumentTranslation.d.ts.map +1 -0
- package/dist/client/entities/translation/api/mutations/useRunDocumentTranslation.js +27 -0
- package/dist/client/entities/translation/api/mutations/useRunDocumentTranslation.js.map +1 -0
- package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.d.ts +179 -0
- package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.d.ts.map +1 -0
- package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.js +67 -0
- package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.js.map +1 -0
- package/dist/client/entities/translation/api/queries/useDocumentTranslation.d.ts +180 -0
- package/dist/client/entities/translation/api/queries/useDocumentTranslation.d.ts.map +1 -0
- package/dist/client/entities/translation/api/queries/useDocumentTranslation.js +55 -0
- package/dist/client/entities/translation/api/queries/useDocumentTranslation.js.map +1 -0
- package/dist/client/entities/translation/index.d.ts +21 -0
- package/dist/client/entities/translation/index.d.ts.map +1 -0
- package/dist/client/entities/translation/index.js +21 -0
- package/dist/client/entities/translation/index.js.map +1 -0
- package/dist/client/entities/translation/model/enums.d.ts +7 -0
- package/dist/client/entities/translation/model/enums.d.ts.map +1 -0
- package/dist/client/entities/translation/model/enums.js +9 -0
- package/dist/client/entities/translation/model/enums.js.map +1 -0
- package/dist/client/entities/translation/model/types.d.ts +48 -0
- package/dist/client/entities/translation/model/types.d.ts.map +1 -0
- package/dist/client/entities/translation/model/types.js +3 -0
- package/dist/client/entities/translation/model/types.js.map +1 -0
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.d.ts +8 -0
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.d.ts.map +1 -0
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.js +45 -0
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.js.map +1 -0
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.jsx +25 -0
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.d.ts +2 -0
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.d.ts.map +1 -0
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.js +3 -0
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.js.map +1 -0
- package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.d.ts +10 -0
- package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.d.ts.map +1 -0
- package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.js +54 -0
- package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.js.map +1 -0
- package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.jsx +24 -0
- package/dist/client/entities/translation/ui/FailedTranslationStatus/index.d.ts +2 -0
- package/dist/client/entities/translation/ui/FailedTranslationStatus/index.d.ts.map +1 -0
- package/dist/client/entities/translation/ui/FailedTranslationStatus/index.js +3 -0
- package/dist/client/entities/translation/ui/FailedTranslationStatus/index.js.map +1 -0
- package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.d.ts +12 -0
- package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.d.ts.map +1 -0
- package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.js +83 -0
- package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.js.map +1 -0
- package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.jsx +38 -0
- package/dist/client/entities/translation/ui/PendingTranslationStatus/index.d.ts +2 -0
- package/dist/client/entities/translation/ui/PendingTranslationStatus/index.d.ts.map +1 -0
- package/dist/client/entities/translation/ui/PendingTranslationStatus/index.js +3 -0
- package/dist/client/entities/translation/ui/PendingTranslationStatus/index.js.map +1 -0
- package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.d.ts +11 -0
- package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.d.ts.map +1 -0
- package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.js +66 -0
- package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.js.map +1 -0
- package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.jsx +32 -0
- package/dist/client/entities/translation/ui/RunningTranslationStatus/index.d.ts +2 -0
- package/dist/client/entities/translation/ui/RunningTranslationStatus/index.d.ts.map +1 -0
- package/dist/client/entities/translation/ui/RunningTranslationStatus/index.js +3 -0
- package/dist/client/entities/translation/ui/RunningTranslationStatus/index.js.map +1 -0
- package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.d.ts +8 -0
- package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.d.ts.map +1 -0
- package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.js +28 -0
- package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.js.map +1 -0
- package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.jsx +16 -0
- package/dist/client/entities/translation/ui/TranslationDirection/index.d.ts +2 -0
- package/dist/client/entities/translation/ui/TranslationDirection/index.d.ts.map +1 -0
- package/dist/client/entities/translation/ui/TranslationDirection/index.js +3 -0
- package/dist/client/entities/translation/ui/TranslationDirection/index.js.map +1 -0
- package/dist/client/features/collection-translation-form/index.client.d.ts +2 -0
- package/dist/client/features/collection-translation-form/index.client.d.ts.map +1 -0
- package/dist/client/features/collection-translation-form/index.client.js +3 -0
- package/dist/client/features/collection-translation-form/index.client.js.map +1 -0
- package/dist/client/features/collection-translation-form/index.d.ts +4 -0
- package/dist/client/features/collection-translation-form/index.d.ts.map +1 -0
- package/dist/client/features/collection-translation-form/index.js +4 -0
- package/dist/client/features/collection-translation-form/index.js.map +1 -0
- package/dist/client/features/collection-translation-form/model/constants.d.ts +16 -0
- package/dist/client/features/collection-translation-form/model/constants.d.ts.map +1 -0
- package/dist/client/features/collection-translation-form/model/constants.js +16 -0
- package/dist/client/features/collection-translation-form/model/constants.js.map +1 -0
- package/dist/client/features/collection-translation-form/model/form-model.d.ts +12 -0
- package/dist/client/features/collection-translation-form/model/form-model.d.ts.map +1 -0
- package/dist/client/features/collection-translation-form/model/form-model.js +32 -0
- package/dist/client/features/collection-translation-form/model/form-model.js.map +1 -0
- package/dist/client/features/collection-translation-form/model/index.d.ts +9 -0
- package/dist/client/features/collection-translation-form/model/index.d.ts.map +1 -0
- package/dist/client/features/collection-translation-form/model/index.js +6 -0
- package/dist/client/features/collection-translation-form/model/index.js.map +1 -0
- package/dist/client/features/collection-translation-form/model/schema.d.ts +23 -0
- package/dist/client/features/collection-translation-form/model/schema.d.ts.map +1 -0
- package/dist/client/features/collection-translation-form/model/schema.js +14 -0
- package/dist/client/features/collection-translation-form/model/schema.js.map +1 -0
- package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.d.ts +11 -0
- package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.d.ts.map +1 -0
- package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.js +64 -0
- package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.js.map +1 -0
- package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.jsx +25 -0
- package/dist/client/features/collection-translation-form/ui/index.d.ts +2 -0
- package/dist/client/features/collection-translation-form/ui/index.d.ts.map +1 -0
- package/dist/client/features/collection-translation-form/ui/index.js +3 -0
- package/dist/client/features/collection-translation-form/ui/index.js.map +1 -0
- package/dist/client/features/collection-translation-popup/index.d.ts +2 -0
- package/dist/client/features/collection-translation-popup/index.d.ts.map +1 -0
- package/dist/client/features/collection-translation-popup/index.js +3 -0
- package/dist/client/features/collection-translation-popup/index.js.map +1 -0
- package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.d.ts +8 -0
- package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.d.ts.map +1 -0
- package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.js +48 -0
- package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.js.map +1 -0
- package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.jsx +23 -0
- package/dist/client/features/collection-translation-progress/index.d.ts +2 -0
- package/dist/client/features/collection-translation-progress/index.d.ts.map +1 -0
- package/dist/client/features/collection-translation-progress/index.js +3 -0
- package/dist/client/features/collection-translation-progress/index.js.map +1 -0
- package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.d.ts +9 -0
- package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.d.ts.map +1 -0
- package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.js +108 -0
- package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.js.map +1 -0
- package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.jsx +47 -0
- package/dist/client/features/document-translation-progress-failed/index.d.ts +2 -0
- package/dist/client/features/document-translation-progress-failed/index.d.ts.map +1 -0
- package/dist/client/features/document-translation-progress-failed/index.js +3 -0
- package/dist/client/features/document-translation-progress-failed/index.js.map +1 -0
- package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.d.ts +7 -0
- package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.d.ts.map +1 -0
- package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.js +28 -0
- package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.js.map +1 -0
- package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.jsx +19 -0
- package/dist/client/features/document-translation-progress-pending/index.d.ts +2 -0
- package/dist/client/features/document-translation-progress-pending/index.d.ts.map +1 -0
- package/dist/client/features/document-translation-progress-pending/index.js +3 -0
- package/dist/client/features/document-translation-progress-pending/index.js.map +1 -0
- package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.d.ts +7 -0
- package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.d.ts.map +1 -0
- package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.js +44 -0
- package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.js.map +1 -0
- package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.jsx +34 -0
- package/dist/client/features/document-translation-progress-running/index.d.ts +2 -0
- package/dist/client/features/document-translation-progress-running/index.d.ts.map +1 -0
- package/dist/client/features/document-translation-progress-running/index.js +3 -0
- package/dist/client/features/document-translation-progress-running/index.js.map +1 -0
- package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.d.ts +7 -0
- package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.d.ts.map +1 -0
- package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.js +28 -0
- package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.js.map +1 -0
- package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.jsx +19 -0
- package/dist/client/features/open-document-translation-popup/index.d.ts +2 -0
- package/dist/client/features/open-document-translation-popup/index.d.ts.map +1 -0
- package/dist/client/features/open-document-translation-popup/index.js +3 -0
- package/dist/client/features/open-document-translation-popup/index.js.map +1 -0
- package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.d.ts +10 -0
- package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.d.ts.map +1 -0
- package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.js +35 -0
- package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.js.map +1 -0
- package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.jsx +15 -0
- package/dist/client/features/translate-document-form/index.client.d.ts +2 -0
- package/dist/client/features/translate-document-form/index.client.d.ts.map +1 -0
- package/dist/client/features/translate-document-form/index.client.js +3 -0
- package/dist/client/features/translate-document-form/index.client.js.map +1 -0
- package/dist/client/features/translate-document-form/index.d.ts +4 -0
- package/dist/client/features/translate-document-form/index.d.ts.map +1 -0
- package/dist/client/features/translate-document-form/index.js +4 -0
- package/dist/client/features/translate-document-form/index.js.map +1 -0
- package/dist/client/features/translate-document-form/model/constants.d.ts +18 -0
- package/dist/client/features/translate-document-form/model/constants.d.ts.map +1 -0
- package/dist/client/features/translate-document-form/model/constants.js +18 -0
- package/dist/client/features/translate-document-form/model/constants.js.map +1 -0
- package/dist/client/features/translate-document-form/model/form-model.d.ts +12 -0
- package/dist/client/features/translate-document-form/model/form-model.d.ts.map +1 -0
- package/dist/client/features/translate-document-form/model/form-model.js +32 -0
- package/dist/client/features/translate-document-form/model/form-model.js.map +1 -0
- package/dist/client/features/translate-document-form/model/index.d.ts +9 -0
- package/dist/client/features/translate-document-form/model/index.d.ts.map +1 -0
- package/dist/client/features/translate-document-form/model/index.js +6 -0
- package/dist/client/features/translate-document-form/model/index.js.map +1 -0
- package/dist/client/features/translate-document-form/model/schema.d.ts +26 -0
- package/dist/client/features/translate-document-form/model/schema.d.ts.map +1 -0
- package/dist/client/features/translate-document-form/model/schema.js +15 -0
- package/dist/client/features/translate-document-form/model/schema.js.map +1 -0
- package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.d.ts +10 -0
- package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.d.ts.map +1 -0
- package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.js +57 -0
- package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.js.map +1 -0
- package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.jsx +24 -0
- package/dist/client/features/translate-document-form/ui/index.d.ts +2 -0
- package/dist/client/features/translate-document-form/ui/index.d.ts.map +1 -0
- package/dist/client/features/translate-document-form/ui/index.js +3 -0
- package/dist/client/features/translate-document-form/ui/index.js.map +1 -0
- package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.d.ts +2 -0
- package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.d.ts.map +1 -0
- package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.js +18 -0
- package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.js.map +1 -0
- package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.jsx +4 -0
- package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.d.ts +2 -0
- package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.d.ts.map +1 -0
- package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.js +16 -0
- package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.js.map +1 -0
- package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.jsx +3 -0
- package/dist/client/shared/lib/assets/icons/ReloadIcon.d.ts +2 -0
- package/dist/client/shared/lib/assets/icons/ReloadIcon.d.ts.map +1 -0
- package/dist/client/shared/lib/assets/icons/ReloadIcon.js +14 -0
- package/dist/client/shared/lib/assets/icons/ReloadIcon.js.map +1 -0
- package/dist/client/shared/lib/assets/icons/ReloadIcon.jsx +3 -0
- package/dist/client/shared/lib/errors/handleApiError.d.ts +8 -0
- package/dist/client/shared/lib/errors/handleApiError.d.ts.map +1 -0
- package/dist/client/shared/lib/errors/handleApiError.js +24 -0
- package/dist/client/shared/lib/errors/handleApiError.js.map +1 -0
- package/dist/client/shared/lib/forms/handle-form-error.d.ts +3 -0
- package/dist/client/shared/lib/forms/handle-form-error.d.ts.map +1 -0
- package/dist/client/shared/lib/forms/handle-form-error.js +26 -0
- package/dist/client/shared/lib/forms/handle-form-error.js.map +1 -0
- package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.d.ts +7 -0
- package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.d.ts.map +1 -0
- package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.js +12 -0
- package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.js.map +1 -0
- package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.d.ts +9 -0
- package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.d.ts.map +1 -0
- package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.js +14 -0
- package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.js.map +1 -0
- package/dist/client/shared/lib/payload/hooks/useLocaleOptions.d.ts +5 -0
- package/dist/client/shared/lib/payload/hooks/useLocaleOptions.d.ts.map +1 -0
- package/dist/client/shared/lib/payload/hooks/useLocaleOptions.js +13 -0
- package/dist/client/shared/lib/payload/hooks/useLocaleOptions.js.map +1 -0
- package/dist/client/shared/lib/utils/errors/handleApiError.d.ts +8 -0
- package/dist/client/shared/lib/utils/errors/handleApiError.d.ts.map +1 -0
- package/dist/client/shared/lib/utils/errors/handleApiError.js +24 -0
- package/dist/client/shared/lib/utils/errors/handleApiError.js.map +1 -0
- package/dist/client/shared/lib/utils/react/useToggle.d.ts +7 -0
- package/dist/client/shared/lib/utils/react/useToggle.d.ts.map +1 -0
- package/dist/client/shared/lib/utils/react/useToggle.js +24 -0
- package/dist/client/shared/lib/utils/react/useToggle.js.map +1 -0
- package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.d.ts +32 -0
- package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.d.ts.map +1 -0
- package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.js +66 -0
- package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.js.map +1 -0
- package/dist/client/shared/providers/CacheClientProvider/index.d.ts +2 -0
- package/dist/client/shared/providers/CacheClientProvider/index.d.ts.map +1 -0
- package/dist/client/shared/providers/CacheClientProvider/index.js +3 -0
- package/dist/client/shared/providers/CacheClientProvider/index.js.map +1 -0
- package/dist/client/shared/types/AccessGuard.d.ts +12 -0
- package/dist/client/shared/types/AccessGuard.d.ts.map +1 -0
- package/dist/client/shared/types/AccessGuard.js +3 -0
- package/dist/client/shared/types/AccessGuard.js.map +1 -0
- package/dist/client/shared/types/PayloadComponentExport.d.ts +3 -0
- package/dist/client/shared/types/PayloadComponentExport.d.ts.map +1 -0
- package/dist/client/shared/types/PayloadComponentExport.js +3 -0
- package/dist/client/shared/types/PayloadComponentExport.js.map +1 -0
- package/dist/client/shared/ui/Alert/Alert.d.ts +10 -0
- package/dist/client/shared/ui/Alert/Alert.d.ts.map +1 -0
- package/dist/client/shared/ui/Alert/Alert.js +40 -0
- package/dist/client/shared/ui/Alert/Alert.js.map +1 -0
- package/dist/client/shared/ui/Alert/Alert.jsx +33 -0
- package/dist/client/shared/ui/Alert/index.d.ts +2 -0
- package/dist/client/shared/ui/Alert/index.d.ts.map +1 -0
- package/dist/client/shared/ui/Alert/index.js +3 -0
- package/dist/client/shared/ui/Alert/index.js.map +1 -0
- package/dist/client/shared/ui/Button/Button.d.ts +12 -0
- package/dist/client/shared/ui/Button/Button.d.ts.map +1 -0
- package/dist/client/shared/ui/Button/Button.js +47 -0
- package/dist/client/shared/ui/Button/Button.js.map +1 -0
- package/dist/client/shared/ui/Button/Button.jsx +35 -0
- package/dist/client/shared/ui/Button/index.d.ts +2 -0
- package/dist/client/shared/ui/Button/index.d.ts.map +1 -0
- package/dist/client/shared/ui/Button/index.js +3 -0
- package/dist/client/shared/ui/Button/index.js.map +1 -0
- package/dist/client/shared/ui/Checkbox/Checkbox.d.ts +7 -0
- package/dist/client/shared/ui/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/client/shared/ui/Checkbox/Checkbox.js +14 -0
- package/dist/client/shared/ui/Checkbox/Checkbox.js.map +1 -0
- package/dist/client/shared/ui/Checkbox/Checkbox.jsx +6 -0
- package/dist/client/shared/ui/Checkbox/index.d.ts +2 -0
- package/dist/client/shared/ui/Checkbox/index.d.ts.map +1 -0
- package/dist/client/shared/ui/Checkbox/index.js +3 -0
- package/dist/client/shared/ui/Checkbox/index.js.map +1 -0
- package/dist/client/shared/ui/ColorIndicator/ColorIndicator.d.ts +9 -0
- package/dist/client/shared/ui/ColorIndicator/ColorIndicator.d.ts.map +1 -0
- package/dist/client/shared/ui/ColorIndicator/ColorIndicator.js +13 -0
- package/dist/client/shared/ui/ColorIndicator/ColorIndicator.js.map +1 -0
- package/dist/client/shared/ui/ColorIndicator/ColorIndicator.jsx +7 -0
- package/dist/client/shared/ui/ColorIndicator/index.d.ts +2 -0
- package/dist/client/shared/ui/ColorIndicator/index.d.ts.map +1 -0
- package/dist/client/shared/ui/ColorIndicator/index.js +3 -0
- package/dist/client/shared/ui/ColorIndicator/index.js.map +1 -0
- package/dist/client/shared/ui/Description/Description.d.ts +8 -0
- package/dist/client/shared/ui/Description/Description.d.ts.map +1 -0
- package/dist/client/shared/ui/Description/Description.js +15 -0
- package/dist/client/shared/ui/Description/Description.js.map +1 -0
- package/dist/client/shared/ui/Description/Description.jsx +7 -0
- package/dist/client/shared/ui/Description/index.d.ts +2 -0
- package/dist/client/shared/ui/Description/index.d.ts.map +1 -0
- package/dist/client/shared/ui/Description/index.js +3 -0
- package/dist/client/shared/ui/Description/index.js.map +1 -0
- package/dist/client/shared/ui/Divider/Divider.d.ts +11 -0
- package/dist/client/shared/ui/Divider/Divider.d.ts.map +1 -0
- package/dist/client/shared/ui/Divider/Divider.js +17 -0
- package/dist/client/shared/ui/Divider/Divider.js.map +1 -0
- package/dist/client/shared/ui/Divider/Divider.jsx +7 -0
- package/dist/client/shared/ui/Divider/index.d.ts +2 -0
- package/dist/client/shared/ui/Divider/index.d.ts.map +1 -0
- package/dist/client/shared/ui/Divider/index.js +3 -0
- package/dist/client/shared/ui/Divider/index.js.map +1 -0
- package/dist/client/shared/ui/Label/Label.d.ts +7 -0
- package/dist/client/shared/ui/Label/Label.d.ts.map +1 -0
- package/dist/client/shared/ui/Label/Label.js +20 -0
- package/dist/client/shared/ui/Label/Label.js.map +1 -0
- package/dist/client/shared/ui/Label/Label.jsx +9 -0
- package/dist/client/shared/ui/Label/index.d.ts +2 -0
- package/dist/client/shared/ui/Label/index.d.ts.map +1 -0
- package/dist/client/shared/ui/Label/index.js +3 -0
- package/dist/client/shared/ui/Label/index.js.map +1 -0
- package/dist/client/shared/ui/Loading/Loading.d.ts +8 -0
- package/dist/client/shared/ui/Loading/Loading.d.ts.map +1 -0
- package/dist/client/shared/ui/Loading/Loading.js +26 -0
- package/dist/client/shared/ui/Loading/Loading.js.map +1 -0
- package/dist/client/shared/ui/Loading/Loading.jsx +11 -0
- package/dist/client/shared/ui/Loading/index.d.ts +2 -0
- package/dist/client/shared/ui/Loading/index.d.ts.map +1 -0
- package/dist/client/shared/ui/Loading/index.js +3 -0
- package/dist/client/shared/ui/Loading/index.js.map +1 -0
- package/dist/client/shared/ui/Popup/Popup.d.ts +11 -0
- package/dist/client/shared/ui/Popup/Popup.d.ts.map +1 -0
- package/dist/client/shared/ui/Popup/Popup.js +27 -0
- package/dist/client/shared/ui/Popup/Popup.js.map +1 -0
- package/dist/client/shared/ui/Popup/Popup.jsx +13 -0
- package/dist/client/shared/ui/Popup/index.d.ts +2 -0
- package/dist/client/shared/ui/Popup/index.d.ts.map +1 -0
- package/dist/client/shared/ui/Popup/index.js +3 -0
- package/dist/client/shared/ui/Popup/index.js.map +1 -0
- package/dist/client/shared/ui/ProgressBar/ProgressBar.d.ts +10 -0
- package/dist/client/shared/ui/ProgressBar/ProgressBar.d.ts.map +1 -0
- package/dist/client/shared/ui/ProgressBar/ProgressBar.js +29 -0
- package/dist/client/shared/ui/ProgressBar/ProgressBar.js.map +1 -0
- package/dist/client/shared/ui/ProgressBar/ProgressBar.jsx +11 -0
- package/dist/client/shared/ui/ProgressBar/index.d.ts +2 -0
- package/dist/client/shared/ui/ProgressBar/index.d.ts.map +1 -0
- package/dist/client/shared/ui/ProgressBar/index.js +3 -0
- package/dist/client/shared/ui/ProgressBar/index.js.map +1 -0
- package/dist/client/shared/ui/Select/Select.d.ts +20 -0
- package/dist/client/shared/ui/Select/Select.d.ts.map +1 -0
- package/dist/client/shared/ui/Select/Select.js +54 -0
- package/dist/client/shared/ui/Select/Select.js.map +1 -0
- package/dist/client/shared/ui/Select/Select.jsx +41 -0
- package/dist/client/shared/ui/Select/index.d.ts +2 -0
- package/dist/client/shared/ui/Select/index.d.ts.map +1 -0
- package/dist/client/shared/ui/Select/index.js +3 -0
- package/dist/client/shared/ui/Select/index.js.map +1 -0
- package/dist/client/shared/ui/StatusCounter/StatusCounter.d.ts +11 -0
- package/dist/client/shared/ui/StatusCounter/StatusCounter.d.ts.map +1 -0
- package/dist/client/shared/ui/StatusCounter/StatusCounter.js +45 -0
- package/dist/client/shared/ui/StatusCounter/StatusCounter.js.map +1 -0
- package/dist/client/shared/ui/StatusCounter/StatusCounter.jsx +26 -0
- package/dist/client/shared/ui/StatusCounter/index.d.ts +2 -0
- package/dist/client/shared/ui/StatusCounter/index.d.ts.map +1 -0
- package/dist/client/shared/ui/StatusCounter/index.js +3 -0
- package/dist/client/shared/ui/StatusCounter/index.js.map +1 -0
- package/dist/client/shared/ui/StatusIndicator/StatusIndicator.d.ts +10 -0
- package/dist/client/shared/ui/StatusIndicator/StatusIndicator.d.ts.map +1 -0
- package/dist/client/shared/ui/StatusIndicator/StatusIndicator.js +20 -0
- package/dist/client/shared/ui/StatusIndicator/StatusIndicator.js.map +1 -0
- package/dist/client/shared/ui/StatusIndicator/StatusIndicator.jsx +10 -0
- package/dist/client/shared/ui/StatusIndicator/index.d.ts +2 -0
- package/dist/client/shared/ui/StatusIndicator/index.d.ts.map +1 -0
- package/dist/client/shared/ui/StatusIndicator/index.js +3 -0
- package/dist/client/shared/ui/StatusIndicator/index.js.map +1 -0
- package/dist/client/shared/ui/Tooltip/Tooltip.d.ts +11 -0
- package/dist/client/shared/ui/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/client/shared/ui/Tooltip/Tooltip.js +32 -0
- package/dist/client/shared/ui/Tooltip/Tooltip.js.map +1 -0
- package/dist/client/shared/ui/Tooltip/Tooltip.jsx +16 -0
- package/dist/client/shared/ui/Tooltip/index.d.ts +2 -0
- package/dist/client/shared/ui/Tooltip/index.d.ts.map +1 -0
- package/dist/client/shared/ui/Tooltip/index.js +3 -0
- package/dist/client/shared/ui/Tooltip/index.js.map +1 -0
- package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.d.ts +11 -0
- package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.d.ts.map +1 -0
- package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.js +51 -0
- package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.js.map +1 -0
- package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.jsx +24 -0
- package/dist/client/shared/ui/form/FormCheckbox/index.d.ts +2 -0
- package/dist/client/shared/ui/form/FormCheckbox/index.d.ts.map +1 -0
- package/dist/client/shared/ui/form/FormCheckbox/index.js +3 -0
- package/dist/client/shared/ui/form/FormCheckbox/index.js.map +1 -0
- package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.d.ts +8 -0
- package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.d.ts.map +1 -0
- package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.js +37 -0
- package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.js.map +1 -0
- package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.jsx +21 -0
- package/dist/client/shared/ui/form/FormCheckboxPublish/index.d.ts +2 -0
- package/dist/client/shared/ui/form/FormCheckboxPublish/index.d.ts.map +1 -0
- package/dist/client/shared/ui/form/FormCheckboxPublish/index.js +3 -0
- package/dist/client/shared/ui/form/FormCheckboxPublish/index.js.map +1 -0
- package/dist/client/shared/ui/form/FormSelect/FormSelect.d.ts +20 -0
- package/dist/client/shared/ui/form/FormSelect/FormSelect.d.ts.map +1 -0
- package/dist/client/shared/ui/form/FormSelect/FormSelect.js +88 -0
- package/dist/client/shared/ui/form/FormSelect/FormSelect.js.map +1 -0
- package/dist/client/shared/ui/form/FormSelect/FormSelect.jsx +44 -0
- package/dist/client/shared/ui/form/FormSelect/index.d.ts +2 -0
- package/dist/client/shared/ui/form/FormSelect/index.d.ts.map +1 -0
- package/dist/client/shared/ui/form/FormSelect/index.js +3 -0
- package/dist/client/shared/ui/form/FormSelect/index.js.map +1 -0
- package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.d.ts +12 -0
- package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.d.ts.map +1 -0
- package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.js +19 -0
- package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.js.map +1 -0
- package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.jsx +6 -0
- package/dist/client/shared/ui/form/FormSelectLocale/index.d.ts +2 -0
- package/dist/client/shared/ui/form/FormSelectLocale/index.d.ts.map +1 -0
- package/dist/client/shared/ui/form/FormSelectLocale/index.js +3 -0
- package/dist/client/shared/ui/form/FormSelectLocale/index.js.map +1 -0
- package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.d.ts +19 -0
- package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.d.ts.map +1 -0
- package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.js +59 -0
- package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.js.map +1 -0
- package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.jsx +25 -0
- package/dist/client/shared/ui/form/FormSelectStrategy/index.d.ts +3 -0
- package/dist/client/shared/ui/form/FormSelectStrategy/index.d.ts.map +1 -0
- package/dist/client/shared/ui/form/FormSelectStrategy/index.js +3 -0
- package/dist/client/shared/ui/form/FormSelectStrategy/index.js.map +1 -0
- package/dist/client/shared/utils/componentPath.d.ts +6 -0
- package/dist/client/shared/utils/componentPath.d.ts.map +1 -0
- package/dist/client/shared/utils/componentPath.js +9 -0
- package/dist/client/shared/utils/componentPath.js.map +1 -0
- package/dist/client/widgets/bulk-translation-dashboard/index.d.ts +2 -0
- package/dist/client/widgets/bulk-translation-dashboard/index.d.ts.map +1 -0
- package/dist/client/widgets/bulk-translation-dashboard/index.js +3 -0
- package/dist/client/widgets/bulk-translation-dashboard/index.js.map +1 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.d.ts +6 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.d.ts.map +1 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.d.ts +9 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.d.ts.map +1 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.js +15 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.js.map +1 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.jsx +11 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.js +78 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.js.map +1 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.jsx +55 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.d.ts +8 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.d.ts.map +1 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.js +24 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.js.map +1 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.jsx +17 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/index.d.ts +2 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/index.d.ts.map +1 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/index.js +3 -0
- package/dist/client/widgets/bulk-translation-dashboard/ui/index.js.map +1 -0
- package/dist/client/widgets/translate-document/index.d.ts +2 -0
- package/dist/client/widgets/translate-document/index.d.ts.map +1 -0
- package/dist/client/widgets/translate-document/index.js +3 -0
- package/dist/client/widgets/translate-document/index.js.map +1 -0
- package/dist/client/widgets/translate-document/ui/TranslateDocument.d.ts +6 -0
- package/dist/client/widgets/translate-document/ui/TranslateDocument.d.ts.map +1 -0
- package/dist/client/widgets/translate-document/ui/TranslateDocument.export.d.ts +11 -0
- package/dist/client/widgets/translate-document/ui/TranslateDocument.export.d.ts.map +1 -0
- package/dist/client/widgets/translate-document/ui/TranslateDocument.export.js +18 -0
- package/dist/client/widgets/translate-document/ui/TranslateDocument.export.js.map +1 -0
- package/dist/client/widgets/translate-document/ui/TranslateDocument.js +87 -0
- package/dist/client/widgets/translate-document/ui/TranslateDocument.js.map +1 -0
- package/dist/client/widgets/translate-document/ui/TranslateDocument.jsx +55 -0
- package/dist/client/widgets/translate-document/ui/TranslateDocument.server.d.ts +9 -0
- package/dist/client/widgets/translate-document/ui/TranslateDocument.server.d.ts.map +1 -0
- package/dist/client/widgets/translate-document/ui/TranslateDocument.server.js +23 -0
- package/dist/client/widgets/translate-document/ui/TranslateDocument.server.js.map +1 -0
- package/dist/client/widgets/translate-document/ui/TranslateDocument.server.jsx +16 -0
- package/dist/client/widgets/translate-document/ui/index.d.ts +2 -0
- package/dist/client/widgets/translate-document/ui/index.d.ts.map +1 -0
- package/dist/client/widgets/translate-document/ui/index.js +3 -0
- package/dist/client/widgets/translate-document/ui/index.js.map +1 -0
- package/dist/field-config.d.ts +48 -0
- package/dist/field-config.d.ts.map +1 -0
- package/dist/field-config.js +49 -0
- package/dist/field-config.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/dist/plugin.d.ts +63 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +110 -0
- package/dist/plugin.js.map +1 -0
- package/dist/server/features/_lib/collection-utils.d.ts +10 -0
- package/dist/server/features/_lib/collection-utils.d.ts.map +1 -0
- package/dist/server/features/_lib/collection-utils.js +20 -0
- package/dist/server/features/_lib/collection-utils.js.map +1 -0
- package/dist/server/features/_lib/index.d.ts +2 -0
- package/dist/server/features/_lib/index.d.ts.map +1 -0
- package/dist/server/features/_lib/index.js +3 -0
- package/dist/server/features/_lib/index.js.map +1 -0
- package/dist/server/features/cancel/handler.d.ts +11 -0
- package/dist/server/features/cancel/handler.d.ts.map +1 -0
- package/dist/server/features/cancel/handler.js +20 -0
- package/dist/server/features/cancel/handler.js.map +1 -0
- package/dist/server/features/cancel/handler.test.d.ts +2 -0
- package/dist/server/features/cancel/handler.test.d.ts.map +1 -0
- package/dist/server/features/cancel/handler.test.js +63 -0
- package/dist/server/features/cancel/index.d.ts +2 -0
- package/dist/server/features/cancel/index.d.ts.map +1 -0
- package/dist/server/features/cancel/index.js +3 -0
- package/dist/server/features/cancel/index.js.map +1 -0
- package/dist/server/features/cancel/model.d.ts +12 -0
- package/dist/server/features/cancel/model.d.ts.map +1 -0
- package/dist/server/features/cancel/model.js +8 -0
- package/dist/server/features/cancel/model.js.map +1 -0
- package/dist/server/features/cancel/route.d.ts +8 -0
- package/dist/server/features/cancel/route.d.ts.map +1 -0
- package/dist/server/features/cancel/route.js +14 -0
- package/dist/server/features/cancel/route.js.map +1 -0
- package/dist/server/features/cancel-by-collection/handler.d.ts +13 -0
- package/dist/server/features/cancel-by-collection/handler.d.ts.map +1 -0
- package/dist/server/features/cancel-by-collection/handler.js +28 -0
- package/dist/server/features/cancel-by-collection/handler.js.map +1 -0
- package/dist/server/features/cancel-by-collection/handler.test.d.ts +2 -0
- package/dist/server/features/cancel-by-collection/handler.test.d.ts.map +1 -0
- package/dist/server/features/cancel-by-collection/handler.test.js +126 -0
- package/dist/server/features/cancel-by-collection/index.d.ts +2 -0
- package/dist/server/features/cancel-by-collection/index.d.ts.map +1 -0
- package/dist/server/features/cancel-by-collection/index.js +3 -0
- package/dist/server/features/cancel-by-collection/index.js.map +1 -0
- package/dist/server/features/cancel-by-collection/model.d.ts +19 -0
- package/dist/server/features/cancel-by-collection/model.d.ts.map +1 -0
- package/dist/server/features/cancel-by-collection/model.js +8 -0
- package/dist/server/features/cancel-by-collection/model.js.map +1 -0
- package/dist/server/features/cancel-by-collection/route.d.ts +9 -0
- package/dist/server/features/cancel-by-collection/route.d.ts.map +1 -0
- package/dist/server/features/cancel-by-collection/route.js +14 -0
- package/dist/server/features/cancel-by-collection/route.js.map +1 -0
- package/dist/server/features/enqueue-translation/handler.d.ts +13 -0
- package/dist/server/features/enqueue-translation/handler.d.ts.map +1 -0
- package/dist/server/features/enqueue-translation/handler.js +37 -0
- package/dist/server/features/enqueue-translation/handler.js.map +1 -0
- package/dist/server/features/enqueue-translation/handler.test.d.ts +2 -0
- package/dist/server/features/enqueue-translation/handler.test.d.ts.map +1 -0
- package/dist/server/features/enqueue-translation/handler.test.js +115 -0
- package/dist/server/features/enqueue-translation/index.d.ts +2 -0
- package/dist/server/features/enqueue-translation/index.d.ts.map +1 -0
- package/dist/server/features/enqueue-translation/index.js +3 -0
- package/dist/server/features/enqueue-translation/index.js.map +1 -0
- package/dist/server/features/enqueue-translation/model.d.ts +37 -0
- package/dist/server/features/enqueue-translation/model.d.ts.map +1 -0
- package/dist/server/features/enqueue-translation/model.js +17 -0
- package/dist/server/features/enqueue-translation/model.js.map +1 -0
- package/dist/server/features/enqueue-translation/route.d.ts +9 -0
- package/dist/server/features/enqueue-translation/route.d.ts.map +1 -0
- package/dist/server/features/enqueue-translation/route.js +14 -0
- package/dist/server/features/enqueue-translation/route.js.map +1 -0
- package/dist/server/features/get-collection-status/handler.d.ts +13 -0
- package/dist/server/features/get-collection-status/handler.d.ts.map +1 -0
- package/dist/server/features/get-collection-status/handler.js +29 -0
- package/dist/server/features/get-collection-status/handler.js.map +1 -0
- package/dist/server/features/get-collection-status/handler.test.d.ts +2 -0
- package/dist/server/features/get-collection-status/handler.test.d.ts.map +1 -0
- package/dist/server/features/get-collection-status/handler.test.js +108 -0
- package/dist/server/features/get-collection-status/index.d.ts +2 -0
- package/dist/server/features/get-collection-status/index.d.ts.map +1 -0
- package/dist/server/features/get-collection-status/index.js +3 -0
- package/dist/server/features/get-collection-status/index.js.map +1 -0
- package/dist/server/features/get-collection-status/model.d.ts +34 -0
- package/dist/server/features/get-collection-status/model.d.ts.map +1 -0
- package/dist/server/features/get-collection-status/model.js +8 -0
- package/dist/server/features/get-collection-status/model.js.map +1 -0
- package/dist/server/features/get-collection-status/route.d.ts +9 -0
- package/dist/server/features/get-collection-status/route.d.ts.map +1 -0
- package/dist/server/features/get-collection-status/route.js +14 -0
- package/dist/server/features/get-collection-status/route.js.map +1 -0
- package/dist/server/features/get-document-status/handler.d.ts +13 -0
- package/dist/server/features/get-document-status/handler.d.ts.map +1 -0
- package/dist/server/features/get-document-status/handler.js +27 -0
- package/dist/server/features/get-document-status/handler.js.map +1 -0
- package/dist/server/features/get-document-status/handler.test.d.ts +2 -0
- package/dist/server/features/get-document-status/handler.test.d.ts.map +1 -0
- package/dist/server/features/get-document-status/handler.test.js +138 -0
- package/dist/server/features/get-document-status/index.d.ts +3 -0
- package/dist/server/features/get-document-status/index.d.ts.map +1 -0
- package/dist/server/features/get-document-status/index.js +4 -0
- package/dist/server/features/get-document-status/index.js.map +1 -0
- package/dist/server/features/get-document-status/model.d.ts +59 -0
- package/dist/server/features/get-document-status/model.d.ts.map +1 -0
- package/dist/server/features/get-document-status/model.js +33 -0
- package/dist/server/features/get-document-status/model.js.map +1 -0
- package/dist/server/features/get-document-status/route.d.ts +9 -0
- package/dist/server/features/get-document-status/route.d.ts.map +1 -0
- package/dist/server/features/get-document-status/route.js +14 -0
- package/dist/server/features/get-document-status/route.js.map +1 -0
- package/dist/server/features/index.d.ts +7 -0
- package/dist/server/features/index.d.ts.map +1 -0
- package/dist/server/features/index.js +8 -0
- package/dist/server/features/index.js.map +1 -0
- package/dist/server/features/run-translation/handler.d.ts +11 -0
- package/dist/server/features/run-translation/handler.d.ts.map +1 -0
- package/dist/server/features/run-translation/handler.js +28 -0
- package/dist/server/features/run-translation/handler.js.map +1 -0
- package/dist/server/features/run-translation/handler.test.d.ts +2 -0
- package/dist/server/features/run-translation/handler.test.d.ts.map +1 -0
- package/dist/server/features/run-translation/handler.test.js +98 -0
- package/dist/server/features/run-translation/index.d.ts +2 -0
- package/dist/server/features/run-translation/index.d.ts.map +1 -0
- package/dist/server/features/run-translation/index.js +3 -0
- package/dist/server/features/run-translation/index.js.map +1 -0
- package/dist/server/features/run-translation/model.d.ts +12 -0
- package/dist/server/features/run-translation/model.d.ts.map +1 -0
- package/dist/server/features/run-translation/model.js +8 -0
- package/dist/server/features/run-translation/model.js.map +1 -0
- package/dist/server/features/run-translation/route.d.ts +8 -0
- package/dist/server/features/run-translation/route.d.ts.map +1 -0
- package/dist/server/features/run-translation/route.js +14 -0
- package/dist/server/features/run-translation/route.js.map +1 -0
- package/dist/server/features/translate-document/handler.d.ts +19 -0
- package/dist/server/features/translate-document/handler.d.ts.map +1 -0
- package/dist/server/features/translate-document/handler.js +69 -0
- package/dist/server/features/translate-document/handler.js.map +1 -0
- package/dist/server/features/translate-document/handler.test.d.ts +2 -0
- package/dist/server/features/translate-document/handler.test.d.ts.map +1 -0
- package/dist/server/features/translate-document/handler.test.js +171 -0
- package/dist/server/features/translate-document/index.d.ts +4 -0
- package/dist/server/features/translate-document/index.d.ts.map +1 -0
- package/dist/server/features/translate-document/index.js +4 -0
- package/dist/server/features/translate-document/index.js.map +1 -0
- package/dist/server/features/translate-document/model.d.ts +53 -0
- package/dist/server/features/translate-document/model.d.ts.map +1 -0
- package/dist/server/features/translate-document/model.js +30 -0
- package/dist/server/features/translate-document/model.js.map +1 -0
- package/dist/server/features/translate-document/task.d.ts +41 -0
- package/dist/server/features/translate-document/task.d.ts.map +1 -0
- package/dist/server/features/translate-document/task.js +44 -0
- package/dist/server/features/translate-document/task.js.map +1 -0
- package/dist/server/index.d.ts +4 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +5 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/modules/index.d.ts +3 -0
- package/dist/server/modules/index.d.ts.map +1 -0
- package/dist/server/modules/index.js +4 -0
- package/dist/server/modules/index.js.map +1 -0
- package/dist/server/modules/task-runner/TaskRunner.interface.d.ts +31 -0
- package/dist/server/modules/task-runner/TaskRunner.interface.d.ts.map +1 -0
- package/dist/server/modules/task-runner/TaskRunner.interface.js +10 -0
- package/dist/server/modules/task-runner/TaskRunner.interface.js.map +1 -0
- package/dist/server/modules/task-runner/TaskRunnerProvider.interface.d.ts +46 -0
- package/dist/server/modules/task-runner/TaskRunnerProvider.interface.d.ts.map +1 -0
- package/dist/server/modules/task-runner/TaskRunnerProvider.interface.js +11 -0
- package/dist/server/modules/task-runner/TaskRunnerProvider.interface.js.map +1 -0
- package/dist/server/modules/task-runner/index.d.ts +7 -0
- package/dist/server/modules/task-runner/index.d.ts.map +1 -0
- package/dist/server/modules/task-runner/index.js +4 -0
- package/dist/server/modules/task-runner/index.js.map +1 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsRunnerProvider.d.ts +20 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsRunnerProvider.d.ts.map +1 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsRunnerProvider.js +128 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsRunnerProvider.js.map +1 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.d.ts +31 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.d.ts.map +1 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.js +165 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.js.map +1 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.test.d.ts +2 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.test.d.ts.map +1 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.test.js +188 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/index.d.ts +3 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/index.d.ts.map +1 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/index.js +3 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/index.js.map +1 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.d.ts +7 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.d.ts.map +1 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.js +40 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.js.map +1 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.test.d.ts +2 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.test.d.ts.map +1 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.test.js +169 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/types.d.ts +85 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/types.d.ts.map +1 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/types.js +5 -0
- package/dist/server/modules/task-runner/payload-jobs-runner/types.js.map +1 -0
- package/dist/server/modules/task-runner/sync-runner/SyncRunnerProvider.d.ts +25 -0
- package/dist/server/modules/task-runner/sync-runner/SyncRunnerProvider.d.ts.map +1 -0
- package/dist/server/modules/task-runner/sync-runner/SyncRunnerProvider.js +42 -0
- package/dist/server/modules/task-runner/sync-runner/SyncRunnerProvider.js.map +1 -0
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.d.ts +23 -0
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.d.ts.map +1 -0
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.js +72 -0
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.js.map +1 -0
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.test.d.ts +2 -0
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.test.d.ts.map +1 -0
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.test.js +148 -0
- package/dist/server/modules/task-runner/sync-runner/index.d.ts +2 -0
- package/dist/server/modules/task-runner/sync-runner/index.d.ts.map +1 -0
- package/dist/server/modules/task-runner/sync-runner/index.js +3 -0
- package/dist/server/modules/task-runner/sync-runner/index.js.map +1 -0
- package/dist/server/modules/task-runner/sync-runner/types.d.ts +18 -0
- package/dist/server/modules/task-runner/sync-runner/types.d.ts.map +1 -0
- package/dist/server/modules/task-runner/sync-runner/types.js +5 -0
- package/dist/server/modules/task-runner/sync-runner/types.js.map +1 -0
- package/dist/server/modules/task-runner/types.d.ts +41 -0
- package/dist/server/modules/task-runner/types.d.ts.map +1 -0
- package/dist/server/modules/task-runner/types.js +5 -0
- package/dist/server/modules/task-runner/types.js.map +1 -0
- package/dist/server/modules/translation-pipeline/TranslationPipeline.d.ts +35 -0
- package/dist/server/modules/translation-pipeline/TranslationPipeline.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/TranslationPipeline.js +55 -0
- package/dist/server/modules/translation-pipeline/TranslationPipeline.js.map +1 -0
- package/dist/server/modules/translation-pipeline/TranslationPipeline.test.d.ts +2 -0
- package/dist/server/modules/translation-pipeline/TranslationPipeline.test.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/TranslationPipeline.test.js +552 -0
- package/dist/server/modules/translation-pipeline/index.d.ts +4 -0
- package/dist/server/modules/translation-pipeline/index.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/index.js +4 -0
- package/dist/server/modules/translation-pipeline/index.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.d.ts +26 -0
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.js +97 -0
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.stage.d.ts +9 -0
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.stage.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.stage.js +15 -0
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.stage.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.test.d.ts +2 -0
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.test.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.test.js +294 -0
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.d.ts +3 -0
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.js +4 -0
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.d.ts +35 -0
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.js +128 -0
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.d.ts +13 -0
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.js +23 -0
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.test.d.ts +2 -0
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.test.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.test.js +737 -0
- package/dist/server/modules/translation-pipeline/stages/field-collector/index.d.ts +3 -0
- package/dist/server/modules/translation-pipeline/stages/field-collector/index.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/field-collector/index.js +4 -0
- package/dist/server/modules/translation-pipeline/stages/field-collector/index.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/index.d.ts +7 -0
- package/dist/server/modules/translation-pipeline/stages/index.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/index.js +7 -0
- package/dist/server/modules/translation-pipeline/stages/index.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/PlainTextExpander.d.ts +10 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/PlainTextExpander.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/PlainTextExpander.js +28 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/PlainTextExpander.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/RichTextExpander.d.ts +10 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/RichTextExpander.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/RichTextExpander.js +32 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/RichTextExpander.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.d.ts +24 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.js +34 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.stage.d.ts +11 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.stage.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.stage.js +29 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.stage.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.test.d.ts +2 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.test.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.test.js +396 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextExpander.interface.d.ts +27 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextExpander.interface.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextExpander.interface.js +6 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextExpander.interface.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/index.d.ts +7 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/index.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/index.js +6 -0
- package/dist/server/modules/translation-pipeline/stages/text-expander/index.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/translation/Translation.stage.d.ts +11 -0
- package/dist/server/modules/translation-pipeline/stages/translation/Translation.stage.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/translation/Translation.stage.js +23 -0
- package/dist/server/modules/translation-pipeline/stages/translation/Translation.stage.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/translation/index.d.ts +2 -0
- package/dist/server/modules/translation-pipeline/stages/translation/index.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/translation/index.js +3 -0
- package/dist/server/modules/translation-pipeline/stages/translation/index.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.d.ts +18 -0
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.js +27 -0
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.d.ts +8 -0
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.js +15 -0
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.js.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.test.d.ts +2 -0
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.test.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.test.js +110 -0
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.d.ts +3 -0
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.js +4 -0
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.js.map +1 -0
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.d.ts +9 -0
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.js +11 -0
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.js.map +1 -0
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.test.d.ts +2 -0
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.test.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.test.js +36 -0
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.d.ts +10 -0
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.js +19 -0
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.js.map +1 -0
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.test.d.ts +2 -0
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.test.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.test.js +77 -0
- package/dist/server/modules/translation-pipeline/strategies/TranslationStrategy.interface.d.ts +22 -0
- package/dist/server/modules/translation-pipeline/strategies/TranslationStrategy.interface.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/strategies/TranslationStrategy.interface.js +10 -0
- package/dist/server/modules/translation-pipeline/strategies/TranslationStrategy.interface.js.map +1 -0
- package/dist/server/modules/translation-pipeline/strategies/index.d.ts +14 -0
- package/dist/server/modules/translation-pipeline/strategies/index.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/strategies/index.js +16 -0
- package/dist/server/modules/translation-pipeline/strategies/index.js.map +1 -0
- package/dist/server/modules/translation-pipeline/types/FieldChunk.d.ts +18 -0
- package/dist/server/modules/translation-pipeline/types/FieldChunk.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/types/FieldChunk.js +8 -0
- package/dist/server/modules/translation-pipeline/types/FieldChunk.js.map +1 -0
- package/dist/server/modules/translation-pipeline/types/Pipeline.d.ts +21 -0
- package/dist/server/modules/translation-pipeline/types/Pipeline.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/types/Pipeline.js +6 -0
- package/dist/server/modules/translation-pipeline/types/Pipeline.js.map +1 -0
- package/dist/server/modules/translation-pipeline/types/PipelineContext.d.ts +28 -0
- package/dist/server/modules/translation-pipeline/types/PipelineContext.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/types/PipelineContext.js +6 -0
- package/dist/server/modules/translation-pipeline/types/PipelineContext.js.map +1 -0
- package/dist/server/modules/translation-pipeline/types/TextChunk.d.ts +43 -0
- package/dist/server/modules/translation-pipeline/types/TextChunk.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/types/TextChunk.js +12 -0
- package/dist/server/modules/translation-pipeline/types/TextChunk.js.map +1 -0
- package/dist/server/modules/translation-pipeline/types/index.d.ts +6 -0
- package/dist/server/modules/translation-pipeline/types/index.d.ts.map +1 -0
- package/dist/server/modules/translation-pipeline/types/index.js +3 -0
- package/dist/server/modules/translation-pipeline/types/index.js.map +1 -0
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.d.ts +128 -0
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.d.ts.map +1 -0
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.js +138 -0
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.js.map +1 -0
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.test.d.ts +2 -0
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.test.d.ts.map +1 -0
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.test.js +214 -0
- package/dist/server/modules/translation-providers/TranslationProvider.interface.d.ts +56 -0
- package/dist/server/modules/translation-providers/TranslationProvider.interface.d.ts.map +1 -0
- package/dist/server/modules/translation-providers/TranslationProvider.interface.js +26 -0
- package/dist/server/modules/translation-providers/TranslationProvider.interface.js.map +1 -0
- package/dist/server/modules/translation-providers/index.d.ts +3 -0
- package/dist/server/modules/translation-providers/index.d.ts.map +1 -0
- package/dist/server/modules/translation-providers/index.js +3 -0
- package/dist/server/modules/translation-providers/index.js.map +1 -0
- package/dist/server/shared/access/AnyAccessGuard.d.ts +8 -0
- package/dist/server/shared/access/AnyAccessGuard.d.ts.map +1 -0
- package/dist/server/shared/access/AnyAccessGuard.js +9 -0
- package/dist/server/shared/access/AnyAccessGuard.js.map +1 -0
- package/dist/server/shared/access/handler.d.ts +8 -0
- package/dist/server/shared/access/handler.d.ts.map +1 -0
- package/dist/server/shared/access/handler.js +5 -0
- package/dist/server/shared/access/handler.js.map +1 -0
- package/dist/server/shared/access/index.d.ts +4 -0
- package/dist/server/shared/access/index.d.ts.map +1 -0
- package/dist/server/shared/access/index.js +3 -0
- package/dist/server/shared/access/index.js.map +1 -0
- package/dist/server/shared/access/types.d.ts +2 -0
- package/dist/server/shared/access/types.d.ts.map +1 -0
- package/dist/server/shared/access/types.js +3 -0
- package/dist/server/shared/access/types.js.map +1 -0
- package/dist/server/shared/field-config/getFieldConfig.d.ts +21 -0
- package/dist/server/shared/field-config/getFieldConfig.d.ts.map +1 -0
- package/dist/server/shared/field-config/getFieldConfig.js +29 -0
- package/dist/server/shared/field-config/getFieldConfig.js.map +1 -0
- package/dist/server/shared/field-config/getFieldConfig.test.d.ts +2 -0
- package/dist/server/shared/field-config/getFieldConfig.test.d.ts.map +1 -0
- package/dist/server/shared/field-config/getFieldConfig.test.js +74 -0
- package/dist/server/shared/field-config/index.d.ts +4 -0
- package/dist/server/shared/field-config/index.d.ts.map +1 -0
- package/dist/server/shared/field-config/index.js +4 -0
- package/dist/server/shared/field-config/index.js.map +1 -0
- package/dist/server/shared/field-config/types.d.ts +39 -0
- package/dist/server/shared/field-config/types.d.ts.map +1 -0
- package/dist/server/shared/field-config/types.js +22 -0
- package/dist/server/shared/field-config/types.js.map +1 -0
- package/dist/server/shared/guards/collection-guards.d.ts +7 -0
- package/dist/server/shared/guards/collection-guards.d.ts.map +1 -0
- package/dist/server/shared/guards/collection-guards.js +16 -0
- package/dist/server/shared/guards/collection-guards.js.map +1 -0
- package/dist/server/shared/guards/field-guards.d.ts +37 -0
- package/dist/server/shared/guards/field-guards.d.ts.map +1 -0
- package/dist/server/shared/guards/field-guards.js +34 -0
- package/dist/server/shared/guards/field-guards.js.map +1 -0
- package/dist/server/shared/guards/field-guards.test.d.ts +2 -0
- package/dist/server/shared/guards/field-guards.test.d.ts.map +1 -0
- package/dist/server/shared/guards/field-guards.test.js +166 -0
- package/dist/server/shared/guards/index.d.ts +4 -0
- package/dist/server/shared/guards/index.d.ts.map +1 -0
- package/dist/server/shared/guards/index.js +4 -0
- package/dist/server/shared/guards/index.js.map +1 -0
- package/dist/server/shared/http/ServerResponse.d.ts +24 -0
- package/dist/server/shared/http/ServerResponse.d.ts.map +1 -0
- package/dist/server/shared/http/ServerResponse.js +165 -0
- package/dist/server/shared/http/ServerResponse.js.map +1 -0
- package/dist/server/shared/http/ServerResponse.test.d.ts +2 -0
- package/dist/server/shared/http/ServerResponse.test.d.ts.map +1 -0
- package/dist/server/shared/http/ServerResponse.test.js +161 -0
- package/dist/server/shared/http/index.d.ts +4 -0
- package/dist/server/shared/http/index.d.ts.map +1 -0
- package/dist/server/shared/http/index.js +5 -0
- package/dist/server/shared/http/index.js.map +1 -0
- package/dist/server/shared/http/withAccessCheck.d.ts +8 -0
- package/dist/server/shared/http/withAccessCheck.d.ts.map +1 -0
- package/dist/server/shared/http/withAccessCheck.js +16 -0
- package/dist/server/shared/http/withAccessCheck.js.map +1 -0
- package/dist/server/shared/http/withAccessCheck.test.d.ts +2 -0
- package/dist/server/shared/http/withAccessCheck.test.d.ts.map +1 -0
- package/dist/server/shared/http/withAccessCheck.test.js +46 -0
- package/dist/server/shared/http/withErrorHandler.d.ts +6 -0
- package/dist/server/shared/http/withErrorHandler.d.ts.map +1 -0
- package/dist/server/shared/http/withErrorHandler.js +23 -0
- package/dist/server/shared/http/withErrorHandler.js.map +1 -0
- package/dist/server/shared/http/withErrorHandler.test.d.ts +2 -0
- package/dist/server/shared/http/withErrorHandler.test.d.ts.map +1 -0
- package/dist/server/shared/http/withErrorHandler.test.js +69 -0
- package/dist/server/shared/index.d.ts +11 -0
- package/dist/server/shared/index.d.ts.map +1 -0
- package/dist/server/shared/index.js +13 -0
- package/dist/server/shared/index.js.map +1 -0
- package/dist/server/shared/lexical/collectTextNodes.d.ts +10 -0
- package/dist/server/shared/lexical/collectTextNodes.d.ts.map +1 -0
- package/dist/server/shared/lexical/collectTextNodes.js +31 -0
- package/dist/server/shared/lexical/collectTextNodes.js.map +1 -0
- package/dist/server/shared/lexical/collectTextNodes.test.d.ts +2 -0
- package/dist/server/shared/lexical/collectTextNodes.test.d.ts.map +1 -0
- package/dist/server/shared/lexical/collectTextNodes.test.js +120 -0
- package/dist/server/shared/lexical/guards.d.ts +20 -0
- package/dist/server/shared/lexical/guards.d.ts.map +1 -0
- package/dist/server/shared/lexical/guards.js +18 -0
- package/dist/server/shared/lexical/guards.js.map +1 -0
- package/dist/server/shared/lexical/guards.test.d.ts +2 -0
- package/dist/server/shared/lexical/guards.test.d.ts.map +1 -0
- package/dist/server/shared/lexical/guards.test.js +160 -0
- package/dist/server/shared/lexical/index.d.ts +7 -0
- package/dist/server/shared/lexical/index.d.ts.map +1 -0
- package/dist/server/shared/lexical/index.js +6 -0
- package/dist/server/shared/lexical/index.js.map +1 -0
- package/dist/server/shared/lexical/isEmptyRichText.d.ts +14 -0
- package/dist/server/shared/lexical/isEmptyRichText.d.ts.map +1 -0
- package/dist/server/shared/lexical/isEmptyRichText.js +31 -0
- package/dist/server/shared/lexical/isEmptyRichText.js.map +1 -0
- package/dist/server/shared/lexical/isEmptyRichText.test.d.ts +2 -0
- package/dist/server/shared/lexical/isEmptyRichText.test.d.ts.map +1 -0
- package/dist/server/shared/lexical/isEmptyRichText.test.js +251 -0
- package/dist/server/shared/lexical/traverseLexicalTree.d.ts +11 -0
- package/dist/server/shared/lexical/traverseLexicalTree.d.ts.map +1 -0
- package/dist/server/shared/lexical/traverseLexicalTree.js +19 -0
- package/dist/server/shared/lexical/traverseLexicalTree.js.map +1 -0
- package/dist/server/shared/lexical/traverseLexicalTree.test.d.ts +2 -0
- package/dist/server/shared/lexical/traverseLexicalTree.test.d.ts.map +1 -0
- package/dist/server/shared/lexical/traverseLexicalTree.test.js +112 -0
- package/dist/server/shared/lexical/types.d.ts +20 -0
- package/dist/server/shared/lexical/types.d.ts.map +1 -0
- package/dist/server/shared/lexical/types.js +8 -0
- package/dist/server/shared/lexical/types.js.map +1 -0
- package/dist/server/shared/utils/LazyMap.d.ts +71 -0
- package/dist/server/shared/utils/LazyMap.d.ts.map +1 -0
- package/dist/server/shared/utils/LazyMap.js +95 -0
- package/dist/server/shared/utils/LazyMap.js.map +1 -0
- package/dist/server/shared/utils/LazyMap.test.d.ts +2 -0
- package/dist/server/shared/utils/LazyMap.test.d.ts.map +1 -0
- package/dist/server/shared/utils/LazyMap.test.js +262 -0
- package/dist/server/shared/utils/filterLocalizedFields.d.ts +11 -0
- package/dist/server/shared/utils/filterLocalizedFields.d.ts.map +1 -0
- package/dist/server/shared/utils/filterLocalizedFields.js +72 -0
- package/dist/server/shared/utils/filterLocalizedFields.js.map +1 -0
- package/dist/server/shared/utils/filterLocalizedFields.test.d.ts +2 -0
- package/dist/server/shared/utils/filterLocalizedFields.test.d.ts.map +1 -0
- package/dist/server/shared/utils/filterLocalizedFields.test.js +338 -0
- package/dist/server/shared/utils/getByPath.d.ts +9 -0
- package/dist/server/shared/utils/getByPath.d.ts.map +1 -0
- package/dist/server/shared/utils/getByPath.js +18 -0
- package/dist/server/shared/utils/getByPath.js.map +1 -0
- package/dist/server/shared/utils/getByPath.test.d.ts +2 -0
- package/dist/server/shared/utils/getByPath.test.d.ts.map +1 -0
- package/dist/server/shared/utils/getByPath.test.js +33 -0
- package/dist/server/shared/utils/index.d.ts +10 -0
- package/dist/server/shared/utils/index.d.ts.map +1 -0
- package/dist/server/shared/utils/index.js +10 -0
- package/dist/server/shared/utils/index.js.map +1 -0
- package/dist/server/shared/utils/isEmpty.d.ts +9 -0
- package/dist/server/shared/utils/isEmpty.d.ts.map +1 -0
- package/dist/server/shared/utils/isEmpty.js +15 -0
- package/dist/server/shared/utils/isEmpty.js.map +1 -0
- package/dist/server/shared/utils/isEmpty.test.d.ts +2 -0
- package/dist/server/shared/utils/isEmpty.test.d.ts.map +1 -0
- package/dist/server/shared/utils/isEmpty.test.js +60 -0
- package/dist/server/shared/utils/isObject.d.ts +5 -0
- package/dist/server/shared/utils/isObject.d.ts.map +1 -0
- package/dist/server/shared/utils/isObject.js +7 -0
- package/dist/server/shared/utils/isObject.js.map +1 -0
- package/dist/server/shared/utils/isObject.test.d.ts +2 -0
- package/dist/server/shared/utils/isObject.test.d.ts.map +1 -0
- package/dist/server/shared/utils/isObject.test.js +57 -0
- package/dist/server/shared/utils/normalizePath.d.ts +16 -0
- package/dist/server/shared/utils/normalizePath.d.ts.map +1 -0
- package/dist/server/shared/utils/normalizePath.js +22 -0
- package/dist/server/shared/utils/normalizePath.js.map +1 -0
- package/dist/server/shared/utils/normalizePath.test.d.ts +2 -0
- package/dist/server/shared/utils/normalizePath.test.d.ts.map +1 -0
- package/dist/server/shared/utils/normalizePath.test.js +33 -0
- package/dist/server/shared/utils/pipe.d.ts +5 -0
- package/dist/server/shared/utils/pipe.d.ts.map +1 -0
- package/dist/server/shared/utils/pipe.js +5 -0
- package/dist/server/shared/utils/pipe.js.map +1 -0
- package/dist/server/shared/utils/pipe.test.d.ts +2 -0
- package/dist/server/shared/utils/pipe.test.d.ts.map +1 -0
- package/dist/server/shared/utils/pipe.test.js +55 -0
- package/dist/server/shared/utils/setByPath.d.ts +11 -0
- package/dist/server/shared/utils/setByPath.d.ts.map +1 -0
- package/dist/server/shared/utils/setByPath.js +26 -0
- package/dist/server/shared/utils/setByPath.js.map +1 -0
- package/dist/server/shared/utils/setByPath.test.d.ts +2 -0
- package/dist/server/shared/utils/setByPath.test.d.ts.map +1 -0
- package/dist/server/shared/utils/setByPath.test.js +46 -0
- package/dist/types/AccessGuard.d.ts +12 -0
- package/dist/types/AccessGuard.d.ts.map +1 -0
- package/dist/types/AccessGuard.js +3 -0
- package/dist/types/AccessGuard.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/dist/vitest-env.d.js +3 -0
- package/dist/vitest-env.d.js.map +1 -0
- package/package.json +91 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { toast, useLocale, useSelection } from '@payloadcms/ui';
|
|
4
|
+
import { SelectAllStatus } from '@payloadcms/ui/providers/Selection';
|
|
5
|
+
import { useEffect, useMemo } from 'react';
|
|
6
|
+
import { TranslationsApi } from '../../../entities/translation';
|
|
7
|
+
import { CollectionTranslationForm, FORM_FIELDS } from '../../../features/collection-translation-form';
|
|
8
|
+
import { CollectionTranslationFormModel } from '../../../features/collection-translation-form/index.client';
|
|
9
|
+
import CollectionTranslationPopup from '../../../features/collection-translation-popup';
|
|
10
|
+
import { CollectionTranslationProgress } from '../../../features/collection-translation-progress';
|
|
11
|
+
import { handleFormError } from '../../../shared/lib/forms/handle-form-error';
|
|
12
|
+
import { useCollectionDashboardUrlParams } from '../../../shared/lib/payload/hooks/useCollectionDashboardUrlParams';
|
|
13
|
+
export default function BulkTranslationDashboard({ hasDrafts }) {
|
|
14
|
+
const locale = useLocale();
|
|
15
|
+
const { collection } = useCollectionDashboardUrlParams();
|
|
16
|
+
const documentsSelection = useSelection();
|
|
17
|
+
const queueTranslationApi = TranslationsApi.useQueueDocumentTranslation();
|
|
18
|
+
const collectionTranslationApi = TranslationsApi.useCollectionTranslationStatus({
|
|
19
|
+
collection
|
|
20
|
+
});
|
|
21
|
+
useEffect(()=>{
|
|
22
|
+
if (collectionTranslationApi.error) {
|
|
23
|
+
toast.error(collectionTranslationApi.error.message);
|
|
24
|
+
}
|
|
25
|
+
}, [
|
|
26
|
+
collectionTranslationApi.error
|
|
27
|
+
]);
|
|
28
|
+
const initialValues = useMemo(()=>({
|
|
29
|
+
[FORM_FIELDS.SOURCE_LNG]: locale.code,
|
|
30
|
+
[FORM_FIELDS.HIDDEN_COLLECTION_SLUG]: collection
|
|
31
|
+
}), [
|
|
32
|
+
locale.code,
|
|
33
|
+
collection
|
|
34
|
+
]);
|
|
35
|
+
const { form } = CollectionTranslationFormModel.useForm({
|
|
36
|
+
initialValues,
|
|
37
|
+
disabled: collectionTranslationApi.isLoading
|
|
38
|
+
});
|
|
39
|
+
const selectAll = documentsSelection.selectAll === SelectAllStatus.AllAvailable;
|
|
40
|
+
const selectedCount = selectAll ? documentsSelection.totalDocs : documentsSelection.count;
|
|
41
|
+
const translationInProgress = !!(collectionTranslationApi.data?.pending.length || collectionTranslationApi.data?.running.length);
|
|
42
|
+
const handleSubmit = async (formData)=>{
|
|
43
|
+
try {
|
|
44
|
+
await queueTranslationApi.mutateAsync({
|
|
45
|
+
...formData,
|
|
46
|
+
collection_id: documentsSelection.selectedIDs,
|
|
47
|
+
select_all: selectAll
|
|
48
|
+
});
|
|
49
|
+
} catch (e) {
|
|
50
|
+
handleFormError(e, form);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
return /*#__PURE__*/ _jsxs(CollectionTranslationPopup, {
|
|
54
|
+
translationInProgress: translationInProgress,
|
|
55
|
+
selectedCount: selectedCount,
|
|
56
|
+
children: [
|
|
57
|
+
/*#__PURE__*/ _jsx("h3", {
|
|
58
|
+
children: "Bulk Translation Dashboard"
|
|
59
|
+
}),
|
|
60
|
+
/*#__PURE__*/ _jsx("p", {
|
|
61
|
+
children: "Translate multiple documents at once using AI. Select the records you want to translate on the collection dashboard, then configure your translation settings here."
|
|
62
|
+
}),
|
|
63
|
+
/*#__PURE__*/ _jsx(CollectionTranslationForm, {
|
|
64
|
+
form: form,
|
|
65
|
+
onSubmit: handleSubmit,
|
|
66
|
+
selectedCount: selectedCount,
|
|
67
|
+
hasDrafts: hasDrafts
|
|
68
|
+
}),
|
|
69
|
+
/*#__PURE__*/ _jsx(CollectionTranslationProgress, {
|
|
70
|
+
collection: collection,
|
|
71
|
+
data: collectionTranslationApi.data,
|
|
72
|
+
isPending: collectionTranslationApi.isPending
|
|
73
|
+
})
|
|
74
|
+
]
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
//# sourceMappingURL=BulkTranslationDashboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BeforeListTableServerProps } from 'payload';
|
|
2
|
+
import type { AccessGuard } from '../../../../types/AccessGuard';
|
|
3
|
+
type BulkTranslationDashboardServerProps = BeforeListTableServerProps & {
|
|
4
|
+
access: AccessGuard;
|
|
5
|
+
};
|
|
6
|
+
declare const BulkTranslationDashboardServer: (props: BulkTranslationDashboardServerProps) => Promise<import("react").JSX.Element | null>;
|
|
7
|
+
export default BulkTranslationDashboardServer;
|
|
8
|
+
//# sourceMappingURL=BulkTranslationDashboard.server.d.ts.map
|
package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { headers as getHeaders } from 'next/headers';
|
|
3
|
+
import { collectionHasDrafts } from '../../../../server/shared/guards';
|
|
4
|
+
import BulkTranslationDashboard from './BulkTranslationDashboard';
|
|
5
|
+
const BulkTranslationDashboardServer = async (props)=>{
|
|
6
|
+
const headers = await getHeaders();
|
|
7
|
+
const hasAccess = await props.access.check({
|
|
8
|
+
req: {
|
|
9
|
+
user: props.user,
|
|
10
|
+
headers,
|
|
11
|
+
payload: props.payload
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
if (!hasAccess) return null;
|
|
15
|
+
if (!props.collectionSlug) return null;
|
|
16
|
+
const collection = props.payload.collections[props.collectionSlug]?.config;
|
|
17
|
+
const hasDrafts = collection ? collectionHasDrafts(collection) : false;
|
|
18
|
+
return /*#__PURE__*/ _jsx(BulkTranslationDashboard, {
|
|
19
|
+
hasDrafts: hasDrafts
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export default BulkTranslationDashboardServer;
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=BulkTranslationDashboard.server.js.map
|
package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CollectionConfig } from 'payload';
|
|
2
|
+
import type { AccessGuard } from '../../../../types/AccessGuard';
|
|
3
|
+
import type { RawPayloadComponentExport } from '../../../shared/types/PayloadComponentExport';
|
|
4
|
+
export declare class TranslateDocumentExport implements RawPayloadComponentExport {
|
|
5
|
+
readonly collection: CollectionConfig;
|
|
6
|
+
readonly access: AccessGuard;
|
|
7
|
+
serverProps?: object | Record<string, any> | undefined;
|
|
8
|
+
constructor(collection: CollectionConfig, access?: AccessGuard);
|
|
9
|
+
path: string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=TranslateDocument.export.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AnyAccessGuard } from '../../../../server/shared';
|
|
2
|
+
import { clientComponentPath } from '../../../shared/utils/componentPath';
|
|
3
|
+
export class TranslateDocumentExport {
|
|
4
|
+
collection;
|
|
5
|
+
access;
|
|
6
|
+
serverProps;
|
|
7
|
+
constructor(collection, access = new AnyAccessGuard()){
|
|
8
|
+
this.collection = collection;
|
|
9
|
+
this.access = access;
|
|
10
|
+
this.serverProps = {
|
|
11
|
+
collection,
|
|
12
|
+
access
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
path = clientComponentPath('widgets/translate-document/ui/TranslateDocument.server.tsx');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=TranslateDocument.export.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { toast, useLocale } from '@payloadcms/ui';
|
|
4
|
+
import { useEffect, useMemo } from 'react';
|
|
5
|
+
import { CompletedTranslationStatus, TranslationsApi } from '../../../entities/translation';
|
|
6
|
+
import { OpenDocumentTranslationPopup } from '../../../features/open-document-translation-popup';
|
|
7
|
+
import { DocumentTranslationForm, FORM_FIELDS } from '../../../features/translate-document-form';
|
|
8
|
+
import { DocumentTranslationFormModel } from '../../../features/translate-document-form/index.client';
|
|
9
|
+
import { handleFormError } from '../../../shared/lib/forms/handle-form-error';
|
|
10
|
+
import { useCollectionDocumentUrlParams } from '../../../shared/lib/payload/hooks/useCollectionDocumentUrlParams';
|
|
11
|
+
import { DocumentTranslationProgressFailed } from '../../../features/document-translation-progress-failed';
|
|
12
|
+
import { DocumentTranslationProgressRunning } from '../../../features/document-translation-progress-running';
|
|
13
|
+
import { DocumentTranslationProgressPending } from '../../../features/document-translation-progress-pending';
|
|
14
|
+
const TranslateDocument = ({ hasDrafts })=>{
|
|
15
|
+
const locale = useLocale();
|
|
16
|
+
const params = useCollectionDocumentUrlParams();
|
|
17
|
+
const queueTranslationApi = TranslationsApi.useQueueDocumentTranslation();
|
|
18
|
+
const { data, error, isLoading } = TranslationsApi.useDocumentTranslation(params);
|
|
19
|
+
useEffect(()=>{
|
|
20
|
+
if (error) {
|
|
21
|
+
toast.error(error.message);
|
|
22
|
+
}
|
|
23
|
+
}, [
|
|
24
|
+
error
|
|
25
|
+
]);
|
|
26
|
+
const initialValues = useMemo(()=>({
|
|
27
|
+
[FORM_FIELDS.SOURCE_LNG]: locale.code,
|
|
28
|
+
[FORM_FIELDS.HIDDEN_COLLECTION_SLUG]: params.collection,
|
|
29
|
+
[FORM_FIELDS.HIDDEN_COLLECTION_ID]: params.id
|
|
30
|
+
}), [
|
|
31
|
+
locale.code,
|
|
32
|
+
params.collection,
|
|
33
|
+
params.id
|
|
34
|
+
]);
|
|
35
|
+
const { form } = DocumentTranslationFormModel.useForm({
|
|
36
|
+
initialValues
|
|
37
|
+
});
|
|
38
|
+
const handleSubmit = async (formData, onSuccess)=>{
|
|
39
|
+
try {
|
|
40
|
+
await queueTranslationApi.mutateAsync({
|
|
41
|
+
...formData,
|
|
42
|
+
collection_id: [
|
|
43
|
+
formData[FORM_FIELDS.HIDDEN_COLLECTION_ID]
|
|
44
|
+
]
|
|
45
|
+
});
|
|
46
|
+
onSuccess?.();
|
|
47
|
+
} catch (e) {
|
|
48
|
+
handleFormError(e, form);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
return /*#__PURE__*/ _jsxs(_Fragment, {
|
|
52
|
+
children: [
|
|
53
|
+
/*#__PURE__*/ _jsx(OpenDocumentTranslationPopup, {
|
|
54
|
+
isLoading: isLoading,
|
|
55
|
+
children: ({ close })=>/*#__PURE__*/ _jsxs(_Fragment, {
|
|
56
|
+
children: [
|
|
57
|
+
/*#__PURE__*/ _jsx("h4", {
|
|
58
|
+
children: "Document Translation"
|
|
59
|
+
}),
|
|
60
|
+
/*#__PURE__*/ _jsx(DocumentTranslationForm, {
|
|
61
|
+
form: form,
|
|
62
|
+
onSubmit: (data)=>handleSubmit(data, close),
|
|
63
|
+
hasDrafts: hasDrafts
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
})
|
|
67
|
+
}),
|
|
68
|
+
data?.status === 'completed' && /*#__PURE__*/ _jsx(CompletedTranslationStatus, {
|
|
69
|
+
sourceLocale: data.input.source_lng,
|
|
70
|
+
targetLocale: data.input.target_lng,
|
|
71
|
+
completed_at: data.completed_at
|
|
72
|
+
}),
|
|
73
|
+
data?.status === 'failed' && /*#__PURE__*/ _jsx(DocumentTranslationProgressFailed, {
|
|
74
|
+
data: data
|
|
75
|
+
}),
|
|
76
|
+
data?.status === 'running' && /*#__PURE__*/ _jsx(DocumentTranslationProgressRunning, {
|
|
77
|
+
data: data
|
|
78
|
+
}),
|
|
79
|
+
data?.status === 'pending' && /*#__PURE__*/ _jsx(DocumentTranslationProgressPending, {
|
|
80
|
+
data: data
|
|
81
|
+
})
|
|
82
|
+
]
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
export default TranslateDocument;
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=TranslateDocument.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { toast, useLocale } from '@payloadcms/ui';
|
|
3
|
+
import { useEffect, useMemo } from 'react';
|
|
4
|
+
import { CompletedTranslationStatus, TranslationsApi } from '../../../entities/translation';
|
|
5
|
+
import { OpenDocumentTranslationPopup } from '../../../features/open-document-translation-popup';
|
|
6
|
+
import { DocumentTranslationForm, FORM_FIELDS } from '../../../features/translate-document-form';
|
|
7
|
+
import { DocumentTranslationFormModel } from '../../../features/translate-document-form/index.client';
|
|
8
|
+
import { handleFormError } from '../../../shared/lib/forms/handle-form-error';
|
|
9
|
+
import { useCollectionDocumentUrlParams } from '../../../shared/lib/payload/hooks/useCollectionDocumentUrlParams';
|
|
10
|
+
import { DocumentTranslationProgressFailed } from '../../../features/document-translation-progress-failed';
|
|
11
|
+
import { DocumentTranslationProgressRunning } from '../../../features/document-translation-progress-running';
|
|
12
|
+
import { DocumentTranslationProgressPending } from '../../../features/document-translation-progress-pending';
|
|
13
|
+
const TranslateDocument = ({ hasDrafts }) => {
|
|
14
|
+
const locale = useLocale();
|
|
15
|
+
const params = useCollectionDocumentUrlParams();
|
|
16
|
+
const queueTranslationApi = TranslationsApi.useQueueDocumentTranslation();
|
|
17
|
+
const { data, error, isLoading } = TranslationsApi.useDocumentTranslation(params);
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
if (error) {
|
|
20
|
+
toast.error(error.message);
|
|
21
|
+
}
|
|
22
|
+
}, [error]);
|
|
23
|
+
const initialValues = useMemo(() => ({
|
|
24
|
+
[FORM_FIELDS.SOURCE_LNG]: locale.code,
|
|
25
|
+
[FORM_FIELDS.HIDDEN_COLLECTION_SLUG]: params.collection,
|
|
26
|
+
[FORM_FIELDS.HIDDEN_COLLECTION_ID]: params.id,
|
|
27
|
+
}), [locale.code, params.collection, params.id]);
|
|
28
|
+
const { form } = DocumentTranslationFormModel.useForm({ initialValues });
|
|
29
|
+
const handleSubmit = async (formData, onSuccess) => {
|
|
30
|
+
try {
|
|
31
|
+
await queueTranslationApi.mutateAsync({
|
|
32
|
+
...formData,
|
|
33
|
+
collection_id: [formData[FORM_FIELDS.HIDDEN_COLLECTION_ID]],
|
|
34
|
+
});
|
|
35
|
+
onSuccess?.();
|
|
36
|
+
}
|
|
37
|
+
catch (e) {
|
|
38
|
+
handleFormError(e, form);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
return (<>
|
|
42
|
+
<OpenDocumentTranslationPopup isLoading={isLoading}>
|
|
43
|
+
{({ close }) => (<>
|
|
44
|
+
<h4>Document Translation</h4>
|
|
45
|
+
<DocumentTranslationForm form={form} onSubmit={(data) => handleSubmit(data, close)} hasDrafts={hasDrafts}/>
|
|
46
|
+
</>)}
|
|
47
|
+
</OpenDocumentTranslationPopup>
|
|
48
|
+
|
|
49
|
+
{data?.status === 'completed' && (<CompletedTranslationStatus sourceLocale={data.input.source_lng} targetLocale={data.input.target_lng} completed_at={data.completed_at}/>)}
|
|
50
|
+
{data?.status === 'failed' && <DocumentTranslationProgressFailed data={data}/>}
|
|
51
|
+
{data?.status === 'running' && <DocumentTranslationProgressRunning data={data}/>}
|
|
52
|
+
{data?.status === 'pending' && <DocumentTranslationProgressPending data={data}/>}
|
|
53
|
+
</>);
|
|
54
|
+
};
|
|
55
|
+
export default TranslateDocument;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BeforeDocumentControlsServerProps, CollectionConfig } from 'payload';
|
|
2
|
+
import type { AccessGuard } from '../../../../types/AccessGuard';
|
|
3
|
+
type TranslateDocumentServerProps = BeforeDocumentControlsServerProps & {
|
|
4
|
+
collection: CollectionConfig;
|
|
5
|
+
access: AccessGuard;
|
|
6
|
+
};
|
|
7
|
+
declare function TranslateDocumentServer(props: TranslateDocumentServerProps): Promise<import("react").JSX.Element | null>;
|
|
8
|
+
export default TranslateDocumentServer;
|
|
9
|
+
//# sourceMappingURL=TranslateDocument.server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TranslateDocument.server.d.ts","sourceRoot":"","sources":["../../../../../src/client/widgets/translate-document/ui/TranslateDocument.server.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iCAAiC,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAElF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAKhE,KAAK,4BAA4B,GAAG,iCAAiC,GAAG;IACtE,UAAU,EAAE,gBAAgB,CAAA;IAC5B,MAAM,EAAE,WAAW,CAAA;CACpB,CAAA;AAED,iBAAe,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,+CAYzE;AAED,eAAe,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { headers as getHeaders } from 'next/headers';
|
|
3
|
+
import { collectionHasDrafts } from '../../../../server/shared/guards';
|
|
4
|
+
import TranslateDocument from './TranslateDocument';
|
|
5
|
+
async function TranslateDocumentServer(props) {
|
|
6
|
+
const headers = await getHeaders();
|
|
7
|
+
const hasAccess = await props.access.check({
|
|
8
|
+
req: {
|
|
9
|
+
user: props.user,
|
|
10
|
+
headers,
|
|
11
|
+
payload: props.payload
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
if (!hasAccess) return null;
|
|
15
|
+
if (!props.id) return null;
|
|
16
|
+
const hasDrafts = collectionHasDrafts(props.collection);
|
|
17
|
+
return /*#__PURE__*/ _jsx(TranslateDocument, {
|
|
18
|
+
hasDrafts: hasDrafts
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export default TranslateDocumentServer;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=TranslateDocument.server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/client/widgets/translate-document/ui/TranslateDocument.server.tsx"],"sourcesContent":["import { headers as getHeaders } from 'next/headers'\nimport type { BeforeDocumentControlsServerProps, CollectionConfig } from 'payload'\n\nimport type { AccessGuard } from '../../../../types/AccessGuard'\nimport { collectionHasDrafts } from '../../../../server/shared/guards'\n\nimport TranslateDocument from './TranslateDocument'\n\ntype TranslateDocumentServerProps = BeforeDocumentControlsServerProps & {\n collection: CollectionConfig\n access: AccessGuard\n}\n\nasync function TranslateDocumentServer(props: TranslateDocumentServerProps) {\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.id) return null\n\n const hasDrafts = collectionHasDrafts(props.collection)\n\n return <TranslateDocument hasDrafts={hasDrafts} />\n}\n\nexport default TranslateDocumentServer\n"],"names":["headers","getHeaders","collectionHasDrafts","TranslateDocument","TranslateDocumentServer","props","hasAccess","access","check","req","user","payload","id","hasDrafts","collection"],"mappings":";AAAA,SAASA,WAAWC,UAAU,QAAQ,eAAc;AAIpD,SAASC,mBAAmB,QAAQ,mCAAkC;AAEtE,OAAOC,uBAAuB,sBAAqB;AAOnD,eAAeC,wBAAwBC,KAAmC;IACxE,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,EAAE,EAAE,OAAO;IAEtB,MAAMC,YAAYX,oBAAoBG,MAAMS,UAAU;IAEtD,qBAAO,KAACX;QAAkBU,WAAWA;;AACvC;AAEA,eAAeT,wBAAuB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { headers as getHeaders } from 'next/headers';
|
|
2
|
+
import { collectionHasDrafts } from '../../../../server/shared/guards';
|
|
3
|
+
import TranslateDocument from './TranslateDocument';
|
|
4
|
+
async function TranslateDocumentServer(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.id)
|
|
12
|
+
return null;
|
|
13
|
+
const hasDrafts = collectionHasDrafts(props.collection);
|
|
14
|
+
return <TranslateDocument hasDrafts={hasDrafts}/>;
|
|
15
|
+
}
|
|
16
|
+
export default TranslateDocumentServer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/widgets/translate-document/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/client/widgets/translate-document/ui/index.ts"],"sourcesContent":["export { default } from './TranslateDocument'\n"],"names":["default"],"mappings":"AAAA,SAASA,OAAO,QAAQ,sBAAqB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { Field } from 'payload';
|
|
2
|
+
import type { FieldTranslationConfig } from './server/shared/field-config';
|
|
3
|
+
export type { FieldTranslationConfig };
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use `FieldTranslationConfig` instead
|
|
6
|
+
*/
|
|
7
|
+
export type { FieldTranslationConfig as TranslateKitFieldConfig };
|
|
8
|
+
/**
|
|
9
|
+
* Apply translation configuration to a Payload field.
|
|
10
|
+
*
|
|
11
|
+
* Use this helper to configure how fields should be handled during translation.
|
|
12
|
+
*
|
|
13
|
+
* @param field - The Payload field to configure
|
|
14
|
+
* @param config - Translation configuration options
|
|
15
|
+
* @returns The field with translation configuration applied
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { withFieldTranslation } from '@focus-reactive/payload-plugin-translator'
|
|
20
|
+
*
|
|
21
|
+
* // Exclude a field from translation
|
|
22
|
+
* withFieldTranslation(
|
|
23
|
+
* { name: 'sku', type: 'text', localized: true },
|
|
24
|
+
* { exclude: true }
|
|
25
|
+
* )
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* // In a collection definition
|
|
31
|
+
* const Products: CollectionConfig = {
|
|
32
|
+
* slug: 'products',
|
|
33
|
+
* fields: [
|
|
34
|
+
* { name: 'title', type: 'text', localized: true },
|
|
35
|
+
* withFieldTranslation(
|
|
36
|
+
* { name: 'sku', type: 'text', localized: true },
|
|
37
|
+
* { exclude: true }
|
|
38
|
+
* ),
|
|
39
|
+
* ],
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare function withFieldTranslation<T extends Field>(field: T, config: FieldTranslationConfig): T;
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated Use `withFieldTranslation` instead
|
|
46
|
+
*/
|
|
47
|
+
export declare const translateKitField: typeof withFieldTranslation;
|
|
48
|
+
//# sourceMappingURL=field-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-config.d.ts","sourceRoot":"","sources":["../src/field-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEpC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAG1E,YAAY,EAAE,sBAAsB,EAAE,CAAA;AAEtC;;GAEG;AACH,YAAY,EAAE,sBAAsB,IAAI,uBAAuB,EAAE,CAAA;AAEjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,sBAAsB,GAAG,CAAC,CAQjG;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,6BAAuB,CAAA"}
|