@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 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/features/collection-translation-popup/index.ts"],"sourcesContent":["export { default } from './ui/CollectionTranslationPopup'\n"],"names":["default"],"mappings":"AAAA,SAASA,OAAO,QAAQ,kCAAiC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
type CollectionTranslationPopupProps = PropsWithChildren<{
|
|
3
|
+
translationInProgress: boolean;
|
|
4
|
+
selectedCount: number;
|
|
5
|
+
}>;
|
|
6
|
+
declare function CollectionTranslationPopup({ children, translationInProgress, selectedCount, }: CollectionTranslationPopupProps): import("react").JSX.Element;
|
|
7
|
+
export default CollectionTranslationPopup;
|
|
8
|
+
//# sourceMappingURL=CollectionTranslationPopup.d.ts.map
|
package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionTranslationPopup.d.ts","sourceRoot":"","sources":["../../../../../src/client/features/collection-translation-popup/ui/CollectionTranslationPopup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAU9C,KAAK,+BAA+B,GAAG,iBAAiB,CAAC;IACvD,qBAAqB,EAAE,OAAO,CAAA;IAC9B,aAAa,EAAE,MAAM,CAAA;CACtB,CAAC,CAAA;AAEF,iBAAS,0BAA0B,CAAC,EAClC,QAAQ,EACR,qBAAqB,EACrB,aAAa,GACd,EAAE,+BAA+B,+BAgCjC;AAED,eAAe,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { LanguageTranslateIcon } from '../../../shared/lib/assets/icons/LanguageTranslateIcon';
|
|
4
|
+
import { useToggle } from '../../../shared/lib/utils/react/useToggle';
|
|
5
|
+
import Button from '../../../shared/ui/Button';
|
|
6
|
+
import ColorIndicator from '../../../shared/ui/ColorIndicator';
|
|
7
|
+
import Popup from '../../../shared/ui/Popup';
|
|
8
|
+
import styles from './styles.module.scss';
|
|
9
|
+
function CollectionTranslationPopup({ children, translationInProgress, selectedCount }) {
|
|
10
|
+
const [isPopupOpen, popupOpen] = useToggle();
|
|
11
|
+
return /*#__PURE__*/ _jsx(Popup, {
|
|
12
|
+
$align: "start",
|
|
13
|
+
onOpenChange: popupOpen.setValue,
|
|
14
|
+
$trigger: /*#__PURE__*/ _jsxs(Button, {
|
|
15
|
+
$size: "md",
|
|
16
|
+
$variant: "filled",
|
|
17
|
+
className: styles['popup-trigger-button'],
|
|
18
|
+
"aria-label": "Open translation options",
|
|
19
|
+
onClick: popupOpen.setTrue,
|
|
20
|
+
children: [
|
|
21
|
+
translationInProgress && /*#__PURE__*/ _jsx(ColorIndicator, {
|
|
22
|
+
title: "Translations In Progress",
|
|
23
|
+
$animated: true,
|
|
24
|
+
$color: "blue"
|
|
25
|
+
}),
|
|
26
|
+
/*#__PURE__*/ _jsx(LanguageTranslateIcon, {}),
|
|
27
|
+
selectedCount > 0 && !translationInProgress && /*#__PURE__*/ _jsxs(_Fragment, {
|
|
28
|
+
children: [
|
|
29
|
+
/*#__PURE__*/ _jsx("span", {
|
|
30
|
+
className: styles.arrow,
|
|
31
|
+
"aria-hidden": "true",
|
|
32
|
+
children: "→"
|
|
33
|
+
}),
|
|
34
|
+
selectedCount
|
|
35
|
+
]
|
|
36
|
+
})
|
|
37
|
+
]
|
|
38
|
+
}),
|
|
39
|
+
open: isPopupOpen,
|
|
40
|
+
children: /*#__PURE__*/ _jsx("div", {
|
|
41
|
+
className: styles['popup-content'],
|
|
42
|
+
children: children
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
export default CollectionTranslationPopup;
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=CollectionTranslationPopup.js.map
|
package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/client/features/collection-translation-popup/ui/CollectionTranslationPopup.tsx"],"sourcesContent":["'use client'\n\nimport type { PropsWithChildren } from 'react'\n\nimport { LanguageTranslateIcon } from '../../../shared/lib/assets/icons/LanguageTranslateIcon'\nimport { useToggle } from '../../../shared/lib/utils/react/useToggle'\nimport Button from '../../../shared/ui/Button'\nimport ColorIndicator from '../../../shared/ui/ColorIndicator'\nimport Popup from '../../../shared/ui/Popup'\n\nimport styles from './styles.module.scss'\n\ntype CollectionTranslationPopupProps = PropsWithChildren<{\n translationInProgress: boolean\n selectedCount: number\n}>\n\nfunction CollectionTranslationPopup({\n children,\n translationInProgress,\n selectedCount,\n}: CollectionTranslationPopupProps) {\n const [isPopupOpen, popupOpen] = useToggle()\n\n return (\n <Popup\n $align=\"start\"\n onOpenChange={popupOpen.setValue}\n $trigger={\n <Button\n $size=\"md\"\n $variant=\"filled\"\n className={styles['popup-trigger-button']}\n aria-label=\"Open translation options\"\n onClick={popupOpen.setTrue}\n >\n {translationInProgress && <ColorIndicator title=\"Translations In Progress\" $animated $color=\"blue\" />}\n <LanguageTranslateIcon />\n {selectedCount > 0 && !translationInProgress && (\n <>\n <span className={styles.arrow} aria-hidden=\"true\">\n →\n </span>\n {selectedCount}\n </>\n )}\n </Button>\n }\n open={isPopupOpen}\n >\n <div className={styles['popup-content']}>{children}</div>\n </Popup>\n )\n}\n\nexport default CollectionTranslationPopup\n"],"names":["LanguageTranslateIcon","useToggle","Button","ColorIndicator","Popup","styles","CollectionTranslationPopup","children","translationInProgress","selectedCount","isPopupOpen","popupOpen","$align","onOpenChange","setValue","$trigger","$size","$variant","className","aria-label","onClick","setTrue","title","$animated","$color","span","arrow","aria-hidden","open","div"],"mappings":"AAAA;;AAIA,SAASA,qBAAqB,QAAQ,yDAAwD;AAC9F,SAASC,SAAS,QAAQ,4CAA2C;AACrE,OAAOC,YAAY,4BAA2B;AAC9C,OAAOC,oBAAoB,oCAAmC;AAC9D,OAAOC,WAAW,2BAA0B;AAE5C,OAAOC,YAAY,uBAAsB;AAOzC,SAASC,2BAA2B,EAClCC,QAAQ,EACRC,qBAAqB,EACrBC,aAAa,EACmB;IAChC,MAAM,CAACC,aAAaC,UAAU,GAAGV;IAEjC,qBACE,KAACG;QACCQ,QAAO;QACPC,cAAcF,UAAUG,QAAQ;QAChCC,wBACE,MAACb;YACCc,OAAM;YACNC,UAAS;YACTC,WAAWb,MAAM,CAAC,uBAAuB;YACzCc,cAAW;YACXC,SAAST,UAAUU,OAAO;;gBAEzBb,uCAAyB,KAACL;oBAAemB,OAAM;oBAA2BC,SAAS;oBAACC,QAAO;;8BAC5F,KAACxB;gBACAS,gBAAgB,KAAK,CAACD,uCACrB;;sCACE,KAACiB;4BAAKP,WAAWb,OAAOqB,KAAK;4BAAEC,eAAY;sCAAO;;wBAGjDlB;;;;;QAKTmB,MAAMlB;kBAEN,cAAA,KAACmB;YAAIX,WAAWb,MAAM,CAAC,gBAAgB;sBAAGE;;;AAGhD;AAEA,eAAeD,2BAA0B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { LanguageTranslateIcon } from '../../../shared/lib/assets/icons/LanguageTranslateIcon';
|
|
3
|
+
import { useToggle } from '../../../shared/lib/utils/react/useToggle';
|
|
4
|
+
import Button from '../../../shared/ui/Button';
|
|
5
|
+
import ColorIndicator from '../../../shared/ui/ColorIndicator';
|
|
6
|
+
import Popup from '../../../shared/ui/Popup';
|
|
7
|
+
import styles from './styles.module.scss';
|
|
8
|
+
function CollectionTranslationPopup({ children, translationInProgress, selectedCount, }) {
|
|
9
|
+
const [isPopupOpen, popupOpen] = useToggle();
|
|
10
|
+
return (<Popup $align="start" onOpenChange={popupOpen.setValue} $trigger={<Button $size="md" $variant="filled" className={styles['popup-trigger-button']} aria-label="Open translation options" onClick={popupOpen.setTrue}>
|
|
11
|
+
{translationInProgress && <ColorIndicator title="Translations In Progress" $animated $color="blue"/>}
|
|
12
|
+
<LanguageTranslateIcon />
|
|
13
|
+
{selectedCount > 0 && !translationInProgress && (<>
|
|
14
|
+
<span className={styles.arrow} aria-hidden="true">
|
|
15
|
+
→
|
|
16
|
+
</span>
|
|
17
|
+
{selectedCount}
|
|
18
|
+
</>)}
|
|
19
|
+
</Button>} open={isPopupOpen}>
|
|
20
|
+
<div className={styles['popup-content']}>{children}</div>
|
|
21
|
+
</Popup>);
|
|
22
|
+
}
|
|
23
|
+
export default CollectionTranslationPopup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/features/collection-translation-progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/features/collection-translation-progress/index.ts"],"sourcesContent":["export { CollectionTranslationProgress } from './ui/CollectionTranslationProgress'\n"],"names":["CollectionTranslationProgress"],"mappings":"AAAA,SAASA,6BAA6B,QAAQ,qCAAoC"}
|
package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GroupedCollectionTranslationStatus } from '../../../entities/translation';
|
|
2
|
+
type CollectionTranslationProgressProps = {
|
|
3
|
+
collection: string;
|
|
4
|
+
data: GroupedCollectionTranslationStatus | undefined;
|
|
5
|
+
isPending: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare function CollectionTranslationProgress({ collection, data, isPending }: CollectionTranslationProgressProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=CollectionTranslationProgress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionTranslationProgress.d.ts","sourceRoot":"","sources":["../../../../../src/client/features/collection-translation-progress/ui/CollectionTranslationProgress.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,+BAA+B,CAAA;AASvF,KAAK,kCAAkC,GAAG;IACxC,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,kCAAkC,GAAG,SAAS,CAAA;IACpD,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,wBAAgB,6BAA6B,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,kCAAkC,+BAiEhH"}
|
package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.js
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { ShimmerEffect } from '@payloadcms/ui';
|
|
4
|
+
import { TrashIcon } from '@payloadcms/ui/icons/Trash';
|
|
5
|
+
import { TranslationsApi } from '../../../entities/translation';
|
|
6
|
+
import { LanguageTranslateIcon } from '../../../shared/lib/assets/icons/LanguageTranslateIcon';
|
|
7
|
+
import Button from '../../../shared/ui/Button';
|
|
8
|
+
import StatusIndicator from '../../../shared/ui/StatusIndicator';
|
|
9
|
+
import Tooltip from '../../../shared/ui/Tooltip';
|
|
10
|
+
import styles from './styles.module.scss';
|
|
11
|
+
export function CollectionTranslationProgress({ collection, data, isPending }) {
|
|
12
|
+
const cancelPendingTranslations = TranslationsApi.useCancelCollectionTranslations();
|
|
13
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
14
|
+
className: styles.container,
|
|
15
|
+
children: [
|
|
16
|
+
isPending && /*#__PURE__*/ _jsxs(_Fragment, {
|
|
17
|
+
children: [
|
|
18
|
+
/*#__PURE__*/ _jsx(ShimmerEffect, {
|
|
19
|
+
width: "100%",
|
|
20
|
+
height: 32
|
|
21
|
+
}),
|
|
22
|
+
/*#__PURE__*/ _jsx(ShimmerEffect, {
|
|
23
|
+
width: "100%",
|
|
24
|
+
height: 32
|
|
25
|
+
}),
|
|
26
|
+
/*#__PURE__*/ _jsx(ShimmerEffect, {
|
|
27
|
+
width: "100%",
|
|
28
|
+
height: 32
|
|
29
|
+
}),
|
|
30
|
+
/*#__PURE__*/ _jsx(ShimmerEffect, {
|
|
31
|
+
width: "100%",
|
|
32
|
+
height: 32
|
|
33
|
+
})
|
|
34
|
+
]
|
|
35
|
+
}),
|
|
36
|
+
data && /*#__PURE__*/ _jsxs(_Fragment, {
|
|
37
|
+
children: [
|
|
38
|
+
/*#__PURE__*/ _jsxs(StatusIndicator, {
|
|
39
|
+
className: styles['status-indicator'],
|
|
40
|
+
title: "Completed",
|
|
41
|
+
$color: "green",
|
|
42
|
+
children: [
|
|
43
|
+
/*#__PURE__*/ _jsx(LanguageTranslateIcon, {}),
|
|
44
|
+
/*#__PURE__*/ _jsx("b", {
|
|
45
|
+
children: data.completed.length
|
|
46
|
+
})
|
|
47
|
+
]
|
|
48
|
+
}, "completed"),
|
|
49
|
+
/*#__PURE__*/ _jsxs(StatusIndicator, {
|
|
50
|
+
className: styles['status-indicator'],
|
|
51
|
+
title: "Failed",
|
|
52
|
+
$color: "red",
|
|
53
|
+
children: [
|
|
54
|
+
/*#__PURE__*/ _jsx(LanguageTranslateIcon, {}),
|
|
55
|
+
/*#__PURE__*/ _jsx("b", {
|
|
56
|
+
children: data.failed.length
|
|
57
|
+
})
|
|
58
|
+
]
|
|
59
|
+
}, "failed"),
|
|
60
|
+
/*#__PURE__*/ _jsxs(StatusIndicator, {
|
|
61
|
+
className: styles['status-indicator'],
|
|
62
|
+
title: "In progress",
|
|
63
|
+
$animated: data.running.length > 0,
|
|
64
|
+
$color: "blue",
|
|
65
|
+
children: [
|
|
66
|
+
/*#__PURE__*/ _jsx(LanguageTranslateIcon, {}),
|
|
67
|
+
/*#__PURE__*/ _jsx("b", {
|
|
68
|
+
children: data.running.length
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
}, "running"),
|
|
72
|
+
/*#__PURE__*/ _jsxs(StatusIndicator, {
|
|
73
|
+
className: styles['status-indicator'],
|
|
74
|
+
title: "Pending",
|
|
75
|
+
$animated: data.pending.length > 0,
|
|
76
|
+
$color: "gray",
|
|
77
|
+
children: [
|
|
78
|
+
/*#__PURE__*/ _jsx(LanguageTranslateIcon, {}),
|
|
79
|
+
/*#__PURE__*/ _jsx("b", {
|
|
80
|
+
children: data.pending.length
|
|
81
|
+
}),
|
|
82
|
+
/*#__PURE__*/ _jsx(Tooltip, {
|
|
83
|
+
sideOffset: 12,
|
|
84
|
+
side: "bottom",
|
|
85
|
+
content: "Cancel translations",
|
|
86
|
+
children: /*#__PURE__*/ _jsx(Button, {
|
|
87
|
+
$variant: "light",
|
|
88
|
+
$size: "sm",
|
|
89
|
+
$isIconButton: true,
|
|
90
|
+
"aria-label": "Cancel all queued translation",
|
|
91
|
+
type: "button",
|
|
92
|
+
onClick: ()=>cancelPendingTranslations.mutateAsync({
|
|
93
|
+
collection
|
|
94
|
+
}),
|
|
95
|
+
disabled: cancelPendingTranslations.isPending || !data.pending.length,
|
|
96
|
+
$isLoading: cancelPendingTranslations.isPending,
|
|
97
|
+
children: /*#__PURE__*/ _jsx(TrashIcon, {})
|
|
98
|
+
})
|
|
99
|
+
})
|
|
100
|
+
]
|
|
101
|
+
}, "pending")
|
|
102
|
+
]
|
|
103
|
+
})
|
|
104
|
+
]
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
//# sourceMappingURL=CollectionTranslationProgress.js.map
|
package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/client/features/collection-translation-progress/ui/CollectionTranslationProgress.tsx"],"sourcesContent":["'use client'\n\nimport { ShimmerEffect } from '@payloadcms/ui'\nimport { TrashIcon } from '@payloadcms/ui/icons/Trash'\n\nimport type { GroupedCollectionTranslationStatus } from '../../../entities/translation'\nimport { TranslationsApi } from '../../../entities/translation'\nimport { LanguageTranslateIcon } from '../../../shared/lib/assets/icons/LanguageTranslateIcon'\nimport Button from '../../../shared/ui/Button'\nimport StatusIndicator from '../../../shared/ui/StatusIndicator'\nimport Tooltip from '../../../shared/ui/Tooltip'\n\nimport styles from './styles.module.scss'\n\ntype CollectionTranslationProgressProps = {\n collection: string\n data: GroupedCollectionTranslationStatus | undefined\n isPending: boolean\n}\n\nexport function CollectionTranslationProgress({ collection, data, isPending }: CollectionTranslationProgressProps) {\n const cancelPendingTranslations = TranslationsApi.useCancelCollectionTranslations()\n\n return (\n <div className={styles.container}>\n {isPending && (\n <>\n <ShimmerEffect width=\"100%\" height={32}></ShimmerEffect>\n <ShimmerEffect width=\"100%\" height={32}></ShimmerEffect>\n <ShimmerEffect width=\"100%\" height={32}></ShimmerEffect>\n <ShimmerEffect width=\"100%\" height={32}></ShimmerEffect>\n </>\n )}\n\n {data && (\n <>\n <StatusIndicator className={styles['status-indicator']} title=\"Completed\" key=\"completed\" $color=\"green\">\n <LanguageTranslateIcon />\n <b>{data.completed.length}</b>\n </StatusIndicator>\n\n <StatusIndicator className={styles['status-indicator']} title=\"Failed\" key=\"failed\" $color=\"red\">\n <LanguageTranslateIcon />\n <b>{data.failed.length}</b>\n </StatusIndicator>\n\n <StatusIndicator\n className={styles['status-indicator']}\n title=\"In progress\"\n $animated={data.running.length > 0}\n key=\"running\"\n $color=\"blue\"\n >\n <LanguageTranslateIcon />\n <b>{data.running.length}</b>\n </StatusIndicator>\n\n <StatusIndicator\n className={styles['status-indicator']}\n title=\"Pending\"\n $animated={data.pending.length > 0}\n key=\"pending\"\n $color=\"gray\"\n >\n <LanguageTranslateIcon />\n <b>{data.pending.length}</b>\n <Tooltip sideOffset={12} side=\"bottom\" content=\"Cancel translations\">\n <Button\n $variant=\"light\"\n $size=\"sm\"\n $isIconButton\n aria-label=\"Cancel all queued translation\"\n type=\"button\"\n onClick={() => cancelPendingTranslations.mutateAsync({ collection })}\n disabled={cancelPendingTranslations.isPending || !data.pending.length}\n $isLoading={cancelPendingTranslations.isPending}\n >\n <TrashIcon />\n </Button>\n </Tooltip>\n </StatusIndicator>\n </>\n )}\n </div>\n )\n}\n"],"names":["ShimmerEffect","TrashIcon","TranslationsApi","LanguageTranslateIcon","Button","StatusIndicator","Tooltip","styles","CollectionTranslationProgress","collection","data","isPending","cancelPendingTranslations","useCancelCollectionTranslations","div","className","container","width","height","title","$color","b","completed","length","failed","$animated","running","pending","sideOffset","side","content","$variant","$size","$isIconButton","aria-label","type","onClick","mutateAsync","disabled","$isLoading"],"mappings":"AAAA;;AAEA,SAASA,aAAa,QAAQ,iBAAgB;AAC9C,SAASC,SAAS,QAAQ,6BAA4B;AAGtD,SAASC,eAAe,QAAQ,gCAA+B;AAC/D,SAASC,qBAAqB,QAAQ,yDAAwD;AAC9F,OAAOC,YAAY,4BAA2B;AAC9C,OAAOC,qBAAqB,qCAAoC;AAChE,OAAOC,aAAa,6BAA4B;AAEhD,OAAOC,YAAY,uBAAsB;AAQzC,OAAO,SAASC,8BAA8B,EAAEC,UAAU,EAAEC,IAAI,EAAEC,SAAS,EAAsC;IAC/G,MAAMC,4BAA4BV,gBAAgBW,+BAA+B;IAEjF,qBACE,MAACC;QAAIC,WAAWR,OAAOS,SAAS;;YAC7BL,2BACC;;kCACE,KAACX;wBAAciB,OAAM;wBAAOC,QAAQ;;kCACpC,KAAClB;wBAAciB,OAAM;wBAAOC,QAAQ;;kCACpC,KAAClB;wBAAciB,OAAM;wBAAOC,QAAQ;;kCACpC,KAAClB;wBAAciB,OAAM;wBAAOC,QAAQ;;;;YAIvCR,sBACC;;kCACE,MAACL;wBAAgBU,WAAWR,MAAM,CAAC,mBAAmB;wBAAEY,OAAM;wBAA4BC,QAAO;;0CAC/F,KAACjB;0CACD,KAACkB;0CAAGX,KAAKY,SAAS,CAACC,MAAM;;;uBAFmD;kCAK9E,MAAClB;wBAAgBU,WAAWR,MAAM,CAAC,mBAAmB;wBAAEY,OAAM;wBAAsBC,QAAO;;0CACzF,KAACjB;0CACD,KAACkB;0CAAGX,KAAKc,MAAM,CAACD,MAAM;;;uBAFmD;kCAK3E,MAAClB;wBACCU,WAAWR,MAAM,CAAC,mBAAmB;wBACrCY,OAAM;wBACNM,WAAWf,KAAKgB,OAAO,CAACH,MAAM,GAAG;wBAEjCH,QAAO;;0CAEP,KAACjB;0CACD,KAACkB;0CAAGX,KAAKgB,OAAO,CAACH,MAAM;;;uBAJnB;kCAON,MAAClB;wBACCU,WAAWR,MAAM,CAAC,mBAAmB;wBACrCY,OAAM;wBACNM,WAAWf,KAAKiB,OAAO,CAACJ,MAAM,GAAG;wBAEjCH,QAAO;;0CAEP,KAACjB;0CACD,KAACkB;0CAAGX,KAAKiB,OAAO,CAACJ,MAAM;;0CACvB,KAACjB;gCAAQsB,YAAY;gCAAIC,MAAK;gCAASC,SAAQ;0CAC7C,cAAA,KAAC1B;oCACC2B,UAAS;oCACTC,OAAM;oCACNC,aAAa;oCACbC,cAAW;oCACXC,MAAK;oCACLC,SAAS,IAAMxB,0BAA0ByB,WAAW,CAAC;4CAAE5B;wCAAW;oCAClE6B,UAAU1B,0BAA0BD,SAAS,IAAI,CAACD,KAAKiB,OAAO,CAACJ,MAAM;oCACrEgB,YAAY3B,0BAA0BD,SAAS;8CAE/C,cAAA,KAACV;;;;uBAhBD;;;;;AAwBhB"}
|
package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.jsx
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { ShimmerEffect } from '@payloadcms/ui';
|
|
3
|
+
import { TrashIcon } from '@payloadcms/ui/icons/Trash';
|
|
4
|
+
import { TranslationsApi } from '../../../entities/translation';
|
|
5
|
+
import { LanguageTranslateIcon } from '../../../shared/lib/assets/icons/LanguageTranslateIcon';
|
|
6
|
+
import Button from '../../../shared/ui/Button';
|
|
7
|
+
import StatusIndicator from '../../../shared/ui/StatusIndicator';
|
|
8
|
+
import Tooltip from '../../../shared/ui/Tooltip';
|
|
9
|
+
import styles from './styles.module.scss';
|
|
10
|
+
export function CollectionTranslationProgress({ collection, data, isPending }) {
|
|
11
|
+
const cancelPendingTranslations = TranslationsApi.useCancelCollectionTranslations();
|
|
12
|
+
return (<div className={styles.container}>
|
|
13
|
+
{isPending && (<>
|
|
14
|
+
<ShimmerEffect width="100%" height={32}></ShimmerEffect>
|
|
15
|
+
<ShimmerEffect width="100%" height={32}></ShimmerEffect>
|
|
16
|
+
<ShimmerEffect width="100%" height={32}></ShimmerEffect>
|
|
17
|
+
<ShimmerEffect width="100%" height={32}></ShimmerEffect>
|
|
18
|
+
</>)}
|
|
19
|
+
|
|
20
|
+
{data && (<>
|
|
21
|
+
<StatusIndicator className={styles['status-indicator']} title="Completed" key="completed" $color="green">
|
|
22
|
+
<LanguageTranslateIcon />
|
|
23
|
+
<b>{data.completed.length}</b>
|
|
24
|
+
</StatusIndicator>
|
|
25
|
+
|
|
26
|
+
<StatusIndicator className={styles['status-indicator']} title="Failed" key="failed" $color="red">
|
|
27
|
+
<LanguageTranslateIcon />
|
|
28
|
+
<b>{data.failed.length}</b>
|
|
29
|
+
</StatusIndicator>
|
|
30
|
+
|
|
31
|
+
<StatusIndicator className={styles['status-indicator']} title="In progress" $animated={data.running.length > 0} key="running" $color="blue">
|
|
32
|
+
<LanguageTranslateIcon />
|
|
33
|
+
<b>{data.running.length}</b>
|
|
34
|
+
</StatusIndicator>
|
|
35
|
+
|
|
36
|
+
<StatusIndicator className={styles['status-indicator']} title="Pending" $animated={data.pending.length > 0} key="pending" $color="gray">
|
|
37
|
+
<LanguageTranslateIcon />
|
|
38
|
+
<b>{data.pending.length}</b>
|
|
39
|
+
<Tooltip sideOffset={12} side="bottom" content="Cancel translations">
|
|
40
|
+
<Button $variant="light" $size="sm" $isIconButton aria-label="Cancel all queued translation" type="button" onClick={() => cancelPendingTranslations.mutateAsync({ collection })} disabled={cancelPendingTranslations.isPending || !data.pending.length} $isLoading={cancelPendingTranslations.isPending}>
|
|
41
|
+
<TrashIcon />
|
|
42
|
+
</Button>
|
|
43
|
+
</Tooltip>
|
|
44
|
+
</StatusIndicator>
|
|
45
|
+
</>)}
|
|
46
|
+
</div>);
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/features/document-translation-progress-failed/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/features/document-translation-progress-failed/index.ts"],"sourcesContent":["export { DocumentTranslationProgressFailed } from './ui/DocumentTranslationProgressFailed'\n"],"names":["DocumentTranslationProgressFailed"],"mappings":"AAAA,SAASA,iCAAiC,QAAQ,yCAAwC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DocumentTranslationFailed } from '../../../entities/translation';
|
|
2
|
+
type DocumentTranslationProgressFailedProps = {
|
|
3
|
+
data: DocumentTranslationFailed;
|
|
4
|
+
};
|
|
5
|
+
export declare function DocumentTranslationProgressFailed({ data }: DocumentTranslationProgressFailedProps): import("react").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=DocumentTranslationProgressFailed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentTranslationProgressFailed.d.ts","sourceRoot":"","sources":["../../../../../src/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AAG9E,KAAK,sCAAsC,GAAG;IAC5C,IAAI,EAAE,yBAAyB,CAAA;CAChC,CAAA;AAED,wBAAgB,iCAAiC,CAAC,EAAE,IAAI,EAAE,EAAE,sCAAsC,+BAwBjG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { toast } from '@payloadcms/ui';
|
|
3
|
+
import { FailedTranslationStatus, TranslationsApi } from '../../../entities/translation';
|
|
4
|
+
export function DocumentTranslationProgressFailed({ data }) {
|
|
5
|
+
const runQueuedTranslationApi = TranslationsApi.useRunDocumentTranslation();
|
|
6
|
+
const handleRunDocumentTranslation = async ()=>{
|
|
7
|
+
try {
|
|
8
|
+
await runQueuedTranslationApi.mutateAsync({
|
|
9
|
+
id: data.id
|
|
10
|
+
});
|
|
11
|
+
} catch (e) {
|
|
12
|
+
if (e instanceof Error) {
|
|
13
|
+
toast.error(e.message);
|
|
14
|
+
} else {
|
|
15
|
+
toast.error('Error running document translation');
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
return /*#__PURE__*/ _jsx(FailedTranslationStatus, {
|
|
20
|
+
onRetry: handleRunDocumentTranslation,
|
|
21
|
+
isLoading: runQueuedTranslationApi.isPending,
|
|
22
|
+
sourceLocale: data.input.source_lng,
|
|
23
|
+
targetLocale: data.input.target_lng,
|
|
24
|
+
message: data.error.message
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=DocumentTranslationProgressFailed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.tsx"],"sourcesContent":["import { toast } from '@payloadcms/ui'\n\nimport type { DocumentTranslationFailed } from '../../../entities/translation'\nimport { FailedTranslationStatus, TranslationsApi } from '../../../entities/translation'\n\ntype DocumentTranslationProgressFailedProps = {\n data: DocumentTranslationFailed\n}\n\nexport function DocumentTranslationProgressFailed({ data }: DocumentTranslationProgressFailedProps) {\n const runQueuedTranslationApi = TranslationsApi.useRunDocumentTranslation()\n\n const handleRunDocumentTranslation = async () => {\n try {\n await runQueuedTranslationApi.mutateAsync({ id: data.id })\n } catch (e) {\n if (e instanceof Error) {\n toast.error(e.message)\n } else {\n toast.error('Error running document translation')\n }\n }\n }\n\n return (\n <FailedTranslationStatus\n onRetry={handleRunDocumentTranslation}\n isLoading={runQueuedTranslationApi.isPending}\n sourceLocale={data.input.source_lng}\n targetLocale={data.input.target_lng}\n message={data.error.message}\n />\n )\n}\n"],"names":["toast","FailedTranslationStatus","TranslationsApi","DocumentTranslationProgressFailed","data","runQueuedTranslationApi","useRunDocumentTranslation","handleRunDocumentTranslation","mutateAsync","id","e","Error","error","message","onRetry","isLoading","isPending","sourceLocale","input","source_lng","targetLocale","target_lng"],"mappings":";AAAA,SAASA,KAAK,QAAQ,iBAAgB;AAGtC,SAASC,uBAAuB,EAAEC,eAAe,QAAQ,gCAA+B;AAMxF,OAAO,SAASC,kCAAkC,EAAEC,IAAI,EAA0C;IAChG,MAAMC,0BAA0BH,gBAAgBI,yBAAyB;IAEzE,MAAMC,+BAA+B;QACnC,IAAI;YACF,MAAMF,wBAAwBG,WAAW,CAAC;gBAAEC,IAAIL,KAAKK,EAAE;YAAC;QAC1D,EAAE,OAAOC,GAAG;YACV,IAAIA,aAAaC,OAAO;gBACtBX,MAAMY,KAAK,CAACF,EAAEG,OAAO;YACvB,OAAO;gBACLb,MAAMY,KAAK,CAAC;YACd;QACF;IACF;IAEA,qBACE,KAACX;QACCa,SAASP;QACTQ,WAAWV,wBAAwBW,SAAS;QAC5CC,cAAcb,KAAKc,KAAK,CAACC,UAAU;QACnCC,cAAchB,KAAKc,KAAK,CAACG,UAAU;QACnCR,SAAST,KAAKQ,KAAK,CAACC,OAAO;;AAGjC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { toast } from '@payloadcms/ui';
|
|
2
|
+
import { FailedTranslationStatus, TranslationsApi } from '../../../entities/translation';
|
|
3
|
+
export function DocumentTranslationProgressFailed({ data }) {
|
|
4
|
+
const runQueuedTranslationApi = TranslationsApi.useRunDocumentTranslation();
|
|
5
|
+
const handleRunDocumentTranslation = async () => {
|
|
6
|
+
try {
|
|
7
|
+
await runQueuedTranslationApi.mutateAsync({ id: data.id });
|
|
8
|
+
}
|
|
9
|
+
catch (e) {
|
|
10
|
+
if (e instanceof Error) {
|
|
11
|
+
toast.error(e.message);
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
toast.error('Error running document translation');
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
return (<FailedTranslationStatus onRetry={handleRunDocumentTranslation} isLoading={runQueuedTranslationApi.isPending} sourceLocale={data.input.source_lng} targetLocale={data.input.target_lng} message={data.error.message}/>);
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/features/document-translation-progress-pending/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/features/document-translation-progress-pending/index.ts"],"sourcesContent":["export { DocumentTranslationProgressPending } from './ui/DocumentTranslationProgressPending'\n"],"names":["DocumentTranslationProgressPending"],"mappings":"AAAA,SAASA,kCAAkC,QAAQ,0CAAyC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DocumentTranslationPending } from '../../../entities/translation';
|
|
2
|
+
type DocumentTranslationProgressPendingProps = {
|
|
3
|
+
data: DocumentTranslationPending;
|
|
4
|
+
};
|
|
5
|
+
export declare function DocumentTranslationProgressPending({ data }: DocumentTranslationProgressPendingProps): import("react").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=DocumentTranslationProgressPending.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentTranslationProgressPending.d.ts","sourceRoot":"","sources":["../../../../../src/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAA;AAI/E,KAAK,uCAAuC,GAAG;IAC7C,IAAI,EAAE,0BAA0B,CAAA;CACjC,CAAA;AAED,wBAAgB,kCAAkC,CAAC,EAAE,IAAI,EAAE,EAAE,uCAAuC,+BAsCnG"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { toast } from '@payloadcms/ui';
|
|
3
|
+
import { TranslationsApi } from '../../../entities/translation';
|
|
4
|
+
import { PendingTranslationStatus } from '../../../entities/translation';
|
|
5
|
+
export function DocumentTranslationProgressPending({ data }) {
|
|
6
|
+
const cancelDocumentTranslationApi = TranslationsApi.useCancelDocumentTranslation();
|
|
7
|
+
const runQueuedTranslationApi = TranslationsApi.useRunDocumentTranslation();
|
|
8
|
+
const handleCancelDocumentTranslation = async ()=>{
|
|
9
|
+
try {
|
|
10
|
+
await cancelDocumentTranslationApi.mutateAsync({
|
|
11
|
+
id: data.id
|
|
12
|
+
});
|
|
13
|
+
} catch (e) {
|
|
14
|
+
if (e instanceof Error) {
|
|
15
|
+
toast.error(e.message);
|
|
16
|
+
} else {
|
|
17
|
+
toast.error('Error canceling document translation');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const handleRunDocumentTranslation = async ()=>{
|
|
22
|
+
try {
|
|
23
|
+
await runQueuedTranslationApi.mutateAsync({
|
|
24
|
+
id: data.id
|
|
25
|
+
});
|
|
26
|
+
} catch (e) {
|
|
27
|
+
if (e instanceof Error) {
|
|
28
|
+
toast.error(e.message);
|
|
29
|
+
} else {
|
|
30
|
+
toast.error('Error running document translation');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
return /*#__PURE__*/ _jsx(PendingTranslationStatus, {
|
|
35
|
+
onRun: handleRunDocumentTranslation,
|
|
36
|
+
createdAt: data.created_at,
|
|
37
|
+
sourceLocale: data.input.source_lng,
|
|
38
|
+
targetLocale: data.input.target_lng,
|
|
39
|
+
isLoading: cancelDocumentTranslationApi.isPending || runQueuedTranslationApi.isPending,
|
|
40
|
+
onCancel: handleCancelDocumentTranslation
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=DocumentTranslationProgressPending.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.tsx"],"sourcesContent":["import { toast } from '@payloadcms/ui'\n\nimport type { DocumentTranslationPending } from '../../../entities/translation'\nimport { TranslationsApi } from '../../../entities/translation'\nimport { PendingTranslationStatus } from '../../../entities/translation'\n\ntype DocumentTranslationProgressPendingProps = {\n data: DocumentTranslationPending\n}\n\nexport function DocumentTranslationProgressPending({ data }: DocumentTranslationProgressPendingProps) {\n const cancelDocumentTranslationApi = TranslationsApi.useCancelDocumentTranslation()\n const runQueuedTranslationApi = TranslationsApi.useRunDocumentTranslation()\n\n const handleCancelDocumentTranslation = async () => {\n try {\n await cancelDocumentTranslationApi.mutateAsync({ id: data.id })\n } catch (e) {\n if (e instanceof Error) {\n toast.error(e.message)\n } else {\n toast.error('Error canceling document translation')\n }\n }\n }\n\n const handleRunDocumentTranslation = async () => {\n try {\n await runQueuedTranslationApi.mutateAsync({ id: data.id })\n } catch (e) {\n if (e instanceof Error) {\n toast.error(e.message)\n } else {\n toast.error('Error running document translation')\n }\n }\n }\n\n return (\n <PendingTranslationStatus\n onRun={handleRunDocumentTranslation}\n createdAt={data.created_at}\n sourceLocale={data.input.source_lng}\n targetLocale={data.input.target_lng}\n isLoading={cancelDocumentTranslationApi.isPending || runQueuedTranslationApi.isPending}\n onCancel={handleCancelDocumentTranslation}\n />\n )\n}\n"],"names":["toast","TranslationsApi","PendingTranslationStatus","DocumentTranslationProgressPending","data","cancelDocumentTranslationApi","useCancelDocumentTranslation","runQueuedTranslationApi","useRunDocumentTranslation","handleCancelDocumentTranslation","mutateAsync","id","e","Error","error","message","handleRunDocumentTranslation","onRun","createdAt","created_at","sourceLocale","input","source_lng","targetLocale","target_lng","isLoading","isPending","onCancel"],"mappings":";AAAA,SAASA,KAAK,QAAQ,iBAAgB;AAGtC,SAASC,eAAe,QAAQ,gCAA+B;AAC/D,SAASC,wBAAwB,QAAQ,gCAA+B;AAMxE,OAAO,SAASC,mCAAmC,EAAEC,IAAI,EAA2C;IAClG,MAAMC,+BAA+BJ,gBAAgBK,4BAA4B;IACjF,MAAMC,0BAA0BN,gBAAgBO,yBAAyB;IAEzE,MAAMC,kCAAkC;QACtC,IAAI;YACF,MAAMJ,6BAA6BK,WAAW,CAAC;gBAAEC,IAAIP,KAAKO,EAAE;YAAC;QAC/D,EAAE,OAAOC,GAAG;YACV,IAAIA,aAAaC,OAAO;gBACtBb,MAAMc,KAAK,CAACF,EAAEG,OAAO;YACvB,OAAO;gBACLf,MAAMc,KAAK,CAAC;YACd;QACF;IACF;IAEA,MAAME,+BAA+B;QACnC,IAAI;YACF,MAAMT,wBAAwBG,WAAW,CAAC;gBAAEC,IAAIP,KAAKO,EAAE;YAAC;QAC1D,EAAE,OAAOC,GAAG;YACV,IAAIA,aAAaC,OAAO;gBACtBb,MAAMc,KAAK,CAACF,EAAEG,OAAO;YACvB,OAAO;gBACLf,MAAMc,KAAK,CAAC;YACd;QACF;IACF;IAEA,qBACE,KAACZ;QACCe,OAAOD;QACPE,WAAWd,KAAKe,UAAU;QAC1BC,cAAchB,KAAKiB,KAAK,CAACC,UAAU;QACnCC,cAAcnB,KAAKiB,KAAK,CAACG,UAAU;QACnCC,WAAWpB,6BAA6BqB,SAAS,IAAInB,wBAAwBmB,SAAS;QACtFC,UAAUlB;;AAGhB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { toast } from '@payloadcms/ui';
|
|
2
|
+
import { TranslationsApi } from '../../../entities/translation';
|
|
3
|
+
import { PendingTranslationStatus } from '../../../entities/translation';
|
|
4
|
+
export function DocumentTranslationProgressPending({ data }) {
|
|
5
|
+
const cancelDocumentTranslationApi = TranslationsApi.useCancelDocumentTranslation();
|
|
6
|
+
const runQueuedTranslationApi = TranslationsApi.useRunDocumentTranslation();
|
|
7
|
+
const handleCancelDocumentTranslation = async () => {
|
|
8
|
+
try {
|
|
9
|
+
await cancelDocumentTranslationApi.mutateAsync({ id: data.id });
|
|
10
|
+
}
|
|
11
|
+
catch (e) {
|
|
12
|
+
if (e instanceof Error) {
|
|
13
|
+
toast.error(e.message);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
toast.error('Error canceling document translation');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const handleRunDocumentTranslation = async () => {
|
|
21
|
+
try {
|
|
22
|
+
await runQueuedTranslationApi.mutateAsync({ id: data.id });
|
|
23
|
+
}
|
|
24
|
+
catch (e) {
|
|
25
|
+
if (e instanceof Error) {
|
|
26
|
+
toast.error(e.message);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
toast.error('Error running document translation');
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return (<PendingTranslationStatus onRun={handleRunDocumentTranslation} createdAt={data.created_at} sourceLocale={data.input.source_lng} targetLocale={data.input.target_lng} isLoading={cancelDocumentTranslationApi.isPending || runQueuedTranslationApi.isPending} onCancel={handleCancelDocumentTranslation}/>);
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/features/document-translation-progress-running/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/features/document-translation-progress-running/index.ts"],"sourcesContent":["export { DocumentTranslationProgressRunning } from './ui/DocumentTranslationProgressRunning'\n"],"names":["DocumentTranslationProgressRunning"],"mappings":"AAAA,SAASA,kCAAkC,QAAQ,0CAAyC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DocumentTranslationRunning } from '../../../entities/translation';
|
|
2
|
+
type DocumentTranslationProgressRunningProps = {
|
|
3
|
+
data: DocumentTranslationRunning;
|
|
4
|
+
};
|
|
5
|
+
export declare function DocumentTranslationProgressRunning({ data }: DocumentTranslationProgressRunningProps): import("react").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=DocumentTranslationProgressRunning.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentTranslationProgressRunning.d.ts","sourceRoot":"","sources":["../../../../../src/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAA;AAG/E,KAAK,uCAAuC,GAAG;IAC7C,IAAI,EAAE,0BAA0B,CAAA;CACjC,CAAA;AAED,wBAAgB,kCAAkC,CAAC,EAAE,IAAI,EAAE,EAAE,uCAAuC,+BAwBnG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { toast } from '@payloadcms/ui';
|
|
3
|
+
import { RunningTranslationStatus, TranslationsApi } from '../../../entities/translation';
|
|
4
|
+
export function DocumentTranslationProgressRunning({ data }) {
|
|
5
|
+
const cancelDocumentTranslationApi = TranslationsApi.useCancelDocumentTranslation();
|
|
6
|
+
const handleCancelDocumentTranslation = async ()=>{
|
|
7
|
+
try {
|
|
8
|
+
await cancelDocumentTranslationApi.mutateAsync({
|
|
9
|
+
id: data.id
|
|
10
|
+
});
|
|
11
|
+
} catch (e) {
|
|
12
|
+
if (e instanceof Error) {
|
|
13
|
+
toast.error(e.message);
|
|
14
|
+
} else {
|
|
15
|
+
toast.error('Error canceling document translation');
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
return /*#__PURE__*/ _jsx(RunningTranslationStatus, {
|
|
20
|
+
createdAt: data.created_at,
|
|
21
|
+
sourceLocale: data.input.source_lng,
|
|
22
|
+
targetLocale: data.input.target_lng,
|
|
23
|
+
isLoading: cancelDocumentTranslationApi.isPending,
|
|
24
|
+
onCancel: handleCancelDocumentTranslation
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=DocumentTranslationProgressRunning.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.tsx"],"sourcesContent":["import { toast } from '@payloadcms/ui'\n\nimport type { DocumentTranslationRunning } from '../../../entities/translation'\nimport { RunningTranslationStatus, TranslationsApi } from '../../../entities/translation'\n\ntype DocumentTranslationProgressRunningProps = {\n data: DocumentTranslationRunning\n}\n\nexport function DocumentTranslationProgressRunning({ data }: DocumentTranslationProgressRunningProps) {\n const cancelDocumentTranslationApi = TranslationsApi.useCancelDocumentTranslation()\n\n const handleCancelDocumentTranslation = async () => {\n try {\n await cancelDocumentTranslationApi.mutateAsync({ id: data.id })\n } catch (e) {\n if (e instanceof Error) {\n toast.error(e.message)\n } else {\n toast.error('Error canceling document translation')\n }\n }\n }\n\n return (\n <RunningTranslationStatus\n createdAt={data.created_at}\n sourceLocale={data.input.source_lng}\n targetLocale={data.input.target_lng}\n isLoading={cancelDocumentTranslationApi.isPending}\n onCancel={handleCancelDocumentTranslation}\n />\n )\n}\n"],"names":["toast","RunningTranslationStatus","TranslationsApi","DocumentTranslationProgressRunning","data","cancelDocumentTranslationApi","useCancelDocumentTranslation","handleCancelDocumentTranslation","mutateAsync","id","e","Error","error","message","createdAt","created_at","sourceLocale","input","source_lng","targetLocale","target_lng","isLoading","isPending","onCancel"],"mappings":";AAAA,SAASA,KAAK,QAAQ,iBAAgB;AAGtC,SAASC,wBAAwB,EAAEC,eAAe,QAAQ,gCAA+B;AAMzF,OAAO,SAASC,mCAAmC,EAAEC,IAAI,EAA2C;IAClG,MAAMC,+BAA+BH,gBAAgBI,4BAA4B;IAEjF,MAAMC,kCAAkC;QACtC,IAAI;YACF,MAAMF,6BAA6BG,WAAW,CAAC;gBAAEC,IAAIL,KAAKK,EAAE;YAAC;QAC/D,EAAE,OAAOC,GAAG;YACV,IAAIA,aAAaC,OAAO;gBACtBX,MAAMY,KAAK,CAACF,EAAEG,OAAO;YACvB,OAAO;gBACLb,MAAMY,KAAK,CAAC;YACd;QACF;IACF;IAEA,qBACE,KAACX;QACCa,WAAWV,KAAKW,UAAU;QAC1BC,cAAcZ,KAAKa,KAAK,CAACC,UAAU;QACnCC,cAAcf,KAAKa,KAAK,CAACG,UAAU;QACnCC,WAAWhB,6BAA6BiB,SAAS;QACjDC,UAAUhB;;AAGhB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { toast } from '@payloadcms/ui';
|
|
2
|
+
import { RunningTranslationStatus, TranslationsApi } from '../../../entities/translation';
|
|
3
|
+
export function DocumentTranslationProgressRunning({ data }) {
|
|
4
|
+
const cancelDocumentTranslationApi = TranslationsApi.useCancelDocumentTranslation();
|
|
5
|
+
const handleCancelDocumentTranslation = async () => {
|
|
6
|
+
try {
|
|
7
|
+
await cancelDocumentTranslationApi.mutateAsync({ id: data.id });
|
|
8
|
+
}
|
|
9
|
+
catch (e) {
|
|
10
|
+
if (e instanceof Error) {
|
|
11
|
+
toast.error(e.message);
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
toast.error('Error canceling document translation');
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
return (<RunningTranslationStatus createdAt={data.created_at} sourceLocale={data.input.source_lng} targetLocale={data.input.target_lng} isLoading={cancelDocumentTranslationApi.isPending} onCancel={handleCancelDocumentTranslation}/>);
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/features/open-document-translation-popup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,mCAAmC,CAAA"}
|