@focus-reactive/payload-plugin-translator 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/dist/client/app/cache/CacheProvider.d.ts +1 -2
- package/dist/client/app/cache/CacheProvider.export.d.ts +0 -1
- package/dist/client/app/config/TranslateKitConfigContext.d.ts +1 -2
- package/dist/client/app/config/index.d.ts +0 -1
- package/dist/client/entities/translation/api/mutations/useCancelCollectionTranslations.d.ts +0 -1
- package/dist/client/entities/translation/api/mutations/useCancelDocumentTranslation.d.ts +0 -1
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.d.ts +0 -1
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslations.d.ts +0 -1
- package/dist/client/entities/translation/api/mutations/useRunDocumentTranslation.d.ts +0 -1
- package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.d.ts +7 -72
- package/dist/client/entities/translation/api/queries/useDocumentTranslation.d.ts +7 -72
- package/dist/client/entities/translation/index.d.ts +0 -1
- package/dist/client/entities/translation/model/enums.d.ts +0 -1
- package/dist/client/entities/translation/model/enums.js +3 -3
- package/dist/client/entities/translation/model/types.d.ts +0 -1
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.d.ts +1 -2
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.d.ts +0 -1
- package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.d.ts +1 -2
- package/dist/client/entities/translation/ui/FailedTranslationStatus/index.d.ts +0 -1
- package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.d.ts +1 -2
- package/dist/client/entities/translation/ui/PendingTranslationStatus/index.d.ts +0 -1
- package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.d.ts +1 -2
- package/dist/client/entities/translation/ui/RunningTranslationStatus/index.d.ts +0 -1
- package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.d.ts +1 -2
- package/dist/client/entities/translation/ui/TranslationDirection/index.d.ts +0 -1
- package/dist/client/features/collection-translation-form/index.client.d.ts +0 -1
- package/dist/client/features/collection-translation-form/index.d.ts +0 -1
- package/dist/client/features/collection-translation-form/model/constants.d.ts +0 -1
- package/dist/client/features/collection-translation-form/model/form-model.d.ts +0 -1
- package/dist/client/features/collection-translation-form/model/index.d.ts +0 -1
- package/dist/client/features/collection-translation-form/model/schema.d.ts +0 -1
- package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.d.ts +1 -2
- package/dist/client/features/collection-translation-form/ui/index.d.ts +0 -1
- package/dist/client/features/collection-translation-popup/index.d.ts +0 -1
- package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.d.ts +1 -2
- package/dist/client/features/collection-translation-progress/index.d.ts +0 -1
- package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.d.ts +1 -2
- package/dist/client/features/document-translation-progress-failed/index.d.ts +0 -1
- package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.d.ts +1 -2
- package/dist/client/features/document-translation-progress-pending/index.d.ts +0 -1
- package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.d.ts +1 -2
- package/dist/client/features/document-translation-progress-running/index.d.ts +0 -1
- package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.d.ts +1 -2
- package/dist/client/features/open-document-translation-popup/index.d.ts +0 -1
- package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.d.ts +1 -2
- package/dist/client/features/translate-document-form/index.client.d.ts +0 -1
- package/dist/client/features/translate-document-form/index.d.ts +0 -1
- package/dist/client/features/translate-document-form/model/constants.d.ts +0 -1
- package/dist/client/features/translate-document-form/model/form-model.d.ts +0 -1
- package/dist/client/features/translate-document-form/model/index.d.ts +0 -1
- package/dist/client/features/translate-document-form/model/schema.d.ts +0 -1
- package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.d.ts +1 -2
- package/dist/client/features/translate-document-form/ui/index.d.ts +0 -1
- package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.d.ts +1 -2
- package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.d.ts +1 -2
- package/dist/client/shared/lib/assets/icons/ReloadIcon.d.ts +1 -2
- package/dist/client/shared/lib/errors/handleApiError.d.ts +0 -1
- package/dist/client/shared/lib/errors/handleApiError.js +3 -1
- package/dist/client/shared/lib/forms/handle-form-error.d.ts +0 -1
- package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.d.ts +0 -1
- package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.d.ts +0 -1
- package/dist/client/shared/lib/payload/hooks/useLocaleOptions.d.ts +0 -1
- package/dist/client/shared/lib/utils/errors/handleApiError.d.ts +0 -1
- package/dist/client/shared/lib/utils/errors/handleApiError.js +3 -1
- package/dist/client/shared/lib/utils/react/useToggle.d.ts +0 -1
- package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.d.ts +0 -1
- package/dist/client/shared/providers/CacheClientProvider/index.d.ts +0 -1
- package/dist/client/shared/types/AccessGuard.d.ts +0 -1
- package/dist/client/shared/types/PayloadComponentExport.d.ts +0 -1
- package/dist/client/shared/ui/Alert/Alert.d.ts +0 -1
- package/dist/client/shared/ui/Alert/index.d.ts +0 -1
- package/dist/client/shared/ui/Button/Button.d.ts +0 -1
- package/dist/client/shared/ui/Button/index.d.ts +0 -1
- package/dist/client/shared/ui/Checkbox/Checkbox.d.ts +0 -1
- package/dist/client/shared/ui/Checkbox/index.d.ts +0 -1
- package/dist/client/shared/ui/ColorIndicator/ColorIndicator.d.ts +1 -2
- package/dist/client/shared/ui/ColorIndicator/index.d.ts +0 -1
- package/dist/client/shared/ui/Description/Description.d.ts +1 -2
- package/dist/client/shared/ui/Description/index.d.ts +0 -1
- package/dist/client/shared/ui/Divider/Divider.d.ts +0 -1
- package/dist/client/shared/ui/Divider/index.d.ts +0 -1
- package/dist/client/shared/ui/Label/Label.d.ts +0 -1
- package/dist/client/shared/ui/Label/index.d.ts +0 -1
- package/dist/client/shared/ui/Loading/Loading.d.ts +1 -2
- package/dist/client/shared/ui/Loading/index.d.ts +0 -1
- package/dist/client/shared/ui/Popup/Popup.d.ts +1 -2
- package/dist/client/shared/ui/Popup/index.d.ts +0 -1
- package/dist/client/shared/ui/ProgressBar/ProgressBar.d.ts +1 -2
- package/dist/client/shared/ui/ProgressBar/index.d.ts +0 -1
- package/dist/client/shared/ui/Select/Select.d.ts +2 -3
- package/dist/client/shared/ui/Select/index.d.ts +0 -1
- package/dist/client/shared/ui/StatusCounter/StatusCounter.d.ts +1 -2
- package/dist/client/shared/ui/StatusCounter/index.d.ts +0 -1
- package/dist/client/shared/ui/StatusIndicator/StatusIndicator.d.ts +1 -2
- package/dist/client/shared/ui/StatusIndicator/index.d.ts +0 -1
- package/dist/client/shared/ui/Tooltip/Tooltip.d.ts +1 -2
- package/dist/client/shared/ui/Tooltip/index.d.ts +0 -1
- package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.d.ts +1 -2
- package/dist/client/shared/ui/form/FormCheckbox/index.d.ts +0 -1
- package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.d.ts +1 -2
- package/dist/client/shared/ui/form/FormCheckboxPublish/index.d.ts +0 -1
- package/dist/client/shared/ui/form/FormSelect/FormSelect.d.ts +1 -2
- package/dist/client/shared/ui/form/FormSelect/index.d.ts +0 -1
- package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.d.ts +1 -2
- package/dist/client/shared/ui/form/FormSelectLocale/index.d.ts +0 -1
- package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.d.ts +1 -2
- package/dist/client/shared/ui/form/FormSelectStrategy/index.d.ts +0 -1
- package/dist/client/shared/utils/componentPath.d.ts +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/index.d.ts +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.d.ts +1 -2
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.d.ts +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.js +2 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.d.ts +1 -2
- package/dist/client/widgets/bulk-translation-dashboard/ui/index.d.ts +0 -1
- package/dist/client/widgets/translate-document/index.d.ts +0 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.d.ts +1 -2
- package/dist/client/widgets/translate-document/ui/TranslateDocument.export.d.ts +0 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.export.js +2 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.server.d.ts +1 -2
- package/dist/client/widgets/translate-document/ui/index.d.ts +0 -1
- package/dist/field-config.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/plugin.d.ts +0 -1
- package/dist/server/features/_lib/collection-utils.d.ts +0 -1
- package/dist/server/features/_lib/index.d.ts +0 -1
- package/dist/server/features/cancel/handler.d.ts +0 -1
- package/dist/server/features/cancel/index.d.ts +0 -1
- package/dist/server/features/cancel/model.d.ts +0 -1
- package/dist/server/features/cancel/route.d.ts +0 -1
- package/dist/server/features/cancel-by-collection/handler.d.ts +0 -1
- package/dist/server/features/cancel-by-collection/index.d.ts +0 -1
- package/dist/server/features/cancel-by-collection/model.d.ts +0 -1
- package/dist/server/features/cancel-by-collection/route.d.ts +0 -1
- package/dist/server/features/enqueue-translation/handler.d.ts +0 -1
- package/dist/server/features/enqueue-translation/index.d.ts +0 -1
- package/dist/server/features/enqueue-translation/model.d.ts +0 -1
- package/dist/server/features/enqueue-translation/route.d.ts +0 -1
- package/dist/server/features/get-collection-status/handler.d.ts +0 -1
- package/dist/server/features/get-collection-status/index.d.ts +0 -1
- package/dist/server/features/get-collection-status/model.d.ts +0 -1
- package/dist/server/features/get-collection-status/route.d.ts +0 -1
- package/dist/server/features/get-document-status/handler.d.ts +0 -1
- package/dist/server/features/get-document-status/index.d.ts +0 -1
- package/dist/server/features/get-document-status/model.d.ts +0 -1
- package/dist/server/features/get-document-status/route.d.ts +0 -1
- package/dist/server/features/index.d.ts +0 -1
- package/dist/server/features/run-translation/handler.d.ts +0 -1
- package/dist/server/features/run-translation/index.d.ts +0 -1
- package/dist/server/features/run-translation/model.d.ts +0 -1
- package/dist/server/features/run-translation/route.d.ts +0 -1
- package/dist/server/features/translate-document/handler.d.ts +0 -1
- package/dist/server/features/translate-document/index.d.ts +0 -1
- package/dist/server/features/translate-document/model.d.ts +0 -1
- package/dist/server/features/translate-document/task.d.ts +0 -1
- package/dist/server/index.d.ts +0 -1
- package/dist/server/modules/index.d.ts +0 -1
- package/dist/server/modules/task-runner/TaskRunner.interface.d.ts +0 -1
- package/dist/server/modules/task-runner/TaskRunnerProvider.interface.d.ts +3 -4
- package/dist/server/modules/task-runner/index.d.ts +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsRunnerProvider.d.ts +1 -2
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.d.ts +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/index.d.ts +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.d.ts +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/types.d.ts +0 -1
- package/dist/server/modules/task-runner/sync-runner/SyncRunnerProvider.d.ts +0 -1
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.d.ts +0 -1
- package/dist/server/modules/task-runner/sync-runner/index.d.ts +0 -1
- package/dist/server/modules/task-runner/sync-runner/types.d.ts +0 -1
- package/dist/server/modules/task-runner/types.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/TranslationPipeline.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/index.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.stage.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.js +2 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/index.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/index.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/PlainTextExpander.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/RichTextExpander.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.stage.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextExpander.interface.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/index.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation/Translation.stage.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation/index.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/strategies/TranslationStrategy.interface.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/strategies/index.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/types/FieldChunk.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/types/Pipeline.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/types/PipelineContext.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/types/TextChunk.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/types/index.d.ts +0 -1
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.d.ts +1 -2
- package/dist/server/modules/translation-providers/TranslationProvider.interface.d.ts +0 -1
- package/dist/server/modules/translation-providers/index.d.ts +0 -1
- package/dist/server/shared/access/AnyAccessGuard.d.ts +0 -1
- package/dist/server/shared/access/handler.d.ts +1 -2
- package/dist/server/shared/access/index.d.ts +0 -1
- package/dist/server/shared/access/types.d.ts +0 -1
- package/dist/server/shared/field-config/getFieldConfig.d.ts +0 -1
- package/dist/server/shared/field-config/index.d.ts +0 -1
- package/dist/server/shared/field-config/types.d.ts +0 -1
- package/dist/server/shared/guards/collection-guards.d.ts +0 -1
- package/dist/server/shared/guards/field-guards.d.ts +0 -1
- package/dist/server/shared/guards/index.d.ts +0 -1
- package/dist/server/shared/http/ServerResponse.d.ts +0 -1
- package/dist/server/shared/http/index.d.ts +0 -1
- package/dist/server/shared/http/withAccessCheck.d.ts +0 -1
- package/dist/server/shared/http/withErrorHandler.d.ts +0 -1
- package/dist/server/shared/index.d.ts +0 -1
- package/dist/server/shared/lexical/collectTextNodes.d.ts +0 -1
- package/dist/server/shared/lexical/guards.d.ts +0 -1
- package/dist/server/shared/lexical/index.d.ts +0 -1
- package/dist/server/shared/lexical/isEmptyRichText.d.ts +0 -1
- package/dist/server/shared/lexical/traverseLexicalTree.d.ts +0 -1
- package/dist/server/shared/lexical/types.d.ts +0 -1
- package/dist/server/shared/utils/LazyMap.d.ts +0 -1
- package/dist/server/shared/utils/filterLocalizedFields.d.ts +0 -1
- package/dist/server/shared/utils/getByPath.d.ts +0 -1
- package/dist/server/shared/utils/index.d.ts +0 -1
- package/dist/server/shared/utils/isEmpty.d.ts +0 -1
- package/dist/server/shared/utils/isObject.d.ts +0 -1
- package/dist/server/shared/utils/normalizePath.d.ts +0 -1
- package/dist/server/shared/utils/pipe.d.ts +0 -1
- package/dist/server/shared/utils/setByPath.d.ts +0 -1
- package/dist/types/AccessGuard.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/package.json +33 -32
- package/dist/client/app/cache/CacheProvider.jsx +0 -11
- package/dist/client/app/config/TranslateKitConfigContext.jsx +0 -13
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.jsx +0 -25
- package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.jsx +0 -24
- package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.jsx +0 -38
- package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.jsx +0 -32
- package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.jsx +0 -16
- package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.jsx +0 -25
- package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.jsx +0 -23
- package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.jsx +0 -47
- package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.jsx +0 -19
- package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.jsx +0 -34
- package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.jsx +0 -19
- package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.jsx +0 -15
- package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.jsx +0 -24
- package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.jsx +0 -4
- package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.jsx +0 -3
- package/dist/client/shared/lib/assets/icons/ReloadIcon.jsx +0 -3
- package/dist/client/shared/ui/Alert/Alert.jsx +0 -33
- package/dist/client/shared/ui/Button/Button.jsx +0 -35
- package/dist/client/shared/ui/Checkbox/Checkbox.jsx +0 -6
- package/dist/client/shared/ui/ColorIndicator/ColorIndicator.jsx +0 -7
- package/dist/client/shared/ui/Description/Description.jsx +0 -7
- package/dist/client/shared/ui/Divider/Divider.jsx +0 -7
- package/dist/client/shared/ui/Label/Label.jsx +0 -9
- package/dist/client/shared/ui/Loading/Loading.jsx +0 -11
- package/dist/client/shared/ui/Popup/Popup.jsx +0 -13
- package/dist/client/shared/ui/ProgressBar/ProgressBar.jsx +0 -11
- package/dist/client/shared/ui/Select/Select.jsx +0 -41
- package/dist/client/shared/ui/StatusCounter/StatusCounter.jsx +0 -26
- package/dist/client/shared/ui/StatusIndicator/StatusIndicator.jsx +0 -10
- package/dist/client/shared/ui/Tooltip/Tooltip.jsx +0 -16
- package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.jsx +0 -24
- package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.jsx +0 -21
- package/dist/client/shared/ui/form/FormSelect/FormSelect.jsx +0 -44
- package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.jsx +0 -6
- package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.jsx +0 -25
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.jsx +0 -11
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.jsx +0 -55
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.jsx +0 -17
- package/dist/client/widgets/translate-document/ui/TranslateDocument.jsx +0 -55
- package/dist/client/widgets/translate-document/ui/TranslateDocument.server.jsx +0 -16
- package/dist/vitest-env.d.js +0 -3
|
@@ -6,4 +6,3 @@ import type { EnqueueConfig } from './model';
|
|
|
6
6
|
* Creates the enqueue translation endpoint
|
|
7
7
|
*/
|
|
8
8
|
export declare function createEnqueueRoute(taskRunnerFactory: TaskRunnerProvider, config: EnqueueConfig, access?: AccessGuard, basePath?: string): Endpoint;
|
|
9
|
-
//# sourceMappingURL=route.d.ts.map
|
|
@@ -6,4 +6,3 @@ import type { GetCollectionStatusConfig } from './model';
|
|
|
6
6
|
* Creates the get collection status endpoint
|
|
7
7
|
*/
|
|
8
8
|
export declare function createGetCollectionStatusRoute(config: GetCollectionStatusConfig, taskRunnerFactory: TaskRunnerProvider, access?: AccessGuard, basePath?: string): Endpoint;
|
|
9
|
-
//# sourceMappingURL=route.d.ts.map
|
|
@@ -6,4 +6,3 @@ import type { GetDocumentStatusConfig } from './model';
|
|
|
6
6
|
* Creates the get document status endpoint
|
|
7
7
|
*/
|
|
8
8
|
export declare function createGetDocumentStatusRoute(config: GetDocumentStatusConfig, taskRunnerFactory: TaskRunnerProvider, access?: AccessGuard, basePath?: string): Endpoint;
|
|
9
|
-
//# sourceMappingURL=route.d.ts.map
|
|
@@ -5,4 +5,3 @@ import type { TaskRunnerProvider } from '../../modules/task-runner';
|
|
|
5
5
|
* Creates the run translation endpoint
|
|
6
6
|
*/
|
|
7
7
|
export declare function createRunRoute(taskRunnerFactory: TaskRunnerProvider, access?: AccessGuard, basePath?: string): Endpoint;
|
|
8
|
-
//# sourceMappingURL=route.d.ts.map
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CollectionSlug, Config, Payload } from 'payload';
|
|
2
|
-
import { TaskRunner } from './TaskRunner.interface';
|
|
3
|
-
import { TranslationStrategyName } from '../translation-pipeline/strategies';
|
|
1
|
+
import type { CollectionSlug, Config, Payload } from 'payload';
|
|
2
|
+
import type { TaskRunner } from './TaskRunner.interface';
|
|
3
|
+
import type { TranslationStrategyName } from '../translation-pipeline/strategies';
|
|
4
4
|
/**
|
|
5
5
|
* Input for task handler callback
|
|
6
6
|
*/
|
|
@@ -43,4 +43,3 @@ export interface TaskRunnerProvider {
|
|
|
43
43
|
*/
|
|
44
44
|
configure(context: TaskRunnerContext): (config: Config) => Config;
|
|
45
45
|
}
|
|
46
|
-
//# sourceMappingURL=TaskRunnerProvider.interface.d.ts.map
|
|
@@ -4,4 +4,3 @@ export { createPayloadJobsRunner } from './payload-jobs-runner';
|
|
|
4
4
|
export type { PayloadJobsRunnerOptions } from './payload-jobs-runner';
|
|
5
5
|
export { createSyncRunner } from './sync-runner';
|
|
6
6
|
export type { TaskRunner } from './TaskRunner.interface';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Config, Payload } from 'payload';
|
|
2
2
|
import type { TaskRunner } from '../TaskRunner.interface';
|
|
3
3
|
import type { PayloadJobsRunnerOptions } from './types';
|
|
4
|
-
import { TaskRunnerContext, TaskRunnerProvider } from '../TaskRunnerProvider.interface';
|
|
4
|
+
import type { TaskRunnerContext, TaskRunnerProvider } from '../TaskRunnerProvider.interface';
|
|
5
5
|
/**
|
|
6
6
|
* TaskRunnerProvider implementation using Payload Jobs.
|
|
7
7
|
*
|
|
@@ -17,4 +17,3 @@ export declare class PayloadJobsRunnerProvider implements TaskRunnerProvider {
|
|
|
17
17
|
* Creates a TaskRunnerProvider that uses Payload Jobs for task execution.
|
|
18
18
|
*/
|
|
19
19
|
export declare function createPayloadJobsRunner(options?: PayloadJobsRunnerOptions): TaskRunnerProvider;
|
|
20
|
-
//# sourceMappingURL=PayloadJobsRunnerProvider.d.ts.map
|
|
@@ -22,4 +22,3 @@ export declare class SyncRunnerProvider implements TaskRunnerProvider {
|
|
|
22
22
|
* Results are stored in memory and lost on server restart.
|
|
23
23
|
*/
|
|
24
24
|
export declare function createSyncRunner(options?: SyncRunnerOptions): TaskRunnerProvider;
|
|
25
|
-
//# sourceMappingURL=SyncRunnerProvider.d.ts.map
|
package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.js
CHANGED
|
@@ -18,13 +18,14 @@ import { hasFields, isBlockItem, isLocalizedField, isObject, isTabsField, isTran
|
|
|
18
18
|
sourceData;
|
|
19
19
|
targetData;
|
|
20
20
|
strategy;
|
|
21
|
-
chunks
|
|
21
|
+
chunks;
|
|
22
22
|
constructor(schema, filteredData, sourceData, targetData, strategy){
|
|
23
23
|
this.schema = schema;
|
|
24
24
|
this.filteredData = filteredData;
|
|
25
25
|
this.sourceData = sourceData;
|
|
26
26
|
this.targetData = targetData;
|
|
27
27
|
this.strategy = strategy;
|
|
28
|
+
this.chunks = [];
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
31
|
* Collects translatable field chunks that need translation.
|
|
@@ -4,4 +4,3 @@ export { TextChunkExpander, PlainTextExpander, RichTextExpander, TextChunkExpand
|
|
|
4
4
|
export type { TextExpansionResult, TextExpander, ExpansionResult } from './text-expander';
|
|
5
5
|
export { TranslationStage } from './translation';
|
|
6
6
|
export { TranslationMutator, TranslationMutatorStage } from './translation-applicator';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -4,4 +4,3 @@ export type { TextExpander, ExpansionResult } from './TextExpander.interface';
|
|
|
4
4
|
export { PlainTextExpander } from './PlainTextExpander';
|
|
5
5
|
export { RichTextExpander } from './RichTextExpander';
|
|
6
6
|
export { TextChunkExpanderStage } from './TextChunkExpander.stage';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,4 +11,3 @@ export type TranslationStrategyName = 'overwrite' | 'skip_existing';
|
|
|
11
11
|
* Creates a TranslationStrategy instance by name.
|
|
12
12
|
*/
|
|
13
13
|
export declare function createTranslationStrategy(name: TranslationStrategyName): TranslationStrategy;
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,4 +3,3 @@ export type { PlainTextChunk, RichTextChunk, TextChunk } from './TextChunk';
|
|
|
3
3
|
export { isPlainTextChunk, isRichTextChunk } from './TextChunk';
|
|
4
4
|
export type { PipelineConfig, PipelineResult } from './Pipeline';
|
|
5
5
|
export type { PipelineContext, PipelineStage } from './PipelineContext';
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TranslationProvider, TranslationInput, TranslationOutput } from './TranslationProvider.interface';
|
|
2
|
-
import { ChatModel } from 'openai/resources/index.mjs';
|
|
2
|
+
import type { ChatModel } from 'openai/resources/index.mjs';
|
|
3
3
|
/**
|
|
4
4
|
* Function to transform text in dry run mode.
|
|
5
5
|
* Receives the original text and returns the transformed text.
|
|
@@ -125,4 +125,3 @@ export declare class OpenAITranslationProvider implements TranslationProvider {
|
|
|
125
125
|
*/
|
|
126
126
|
export declare function createOpenAIProvider(config: OpenAIProviderConfig): OpenAITranslationProvider;
|
|
127
127
|
export {};
|
|
128
|
-
//# sourceMappingURL=OpenAITranslation.provider.d.ts.map
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
export type { TranslationProvider, TranslationInput, TranslationOutput, TranslationIndex, } from './TranslationProvider.interface';
|
|
2
2
|
export { OpenAITranslationProvider, createOpenAIProvider, type OpenAIProviderConfig, type DryRunConfig, type SystemPromptContext, } from './OpenAITranslation.provider';
|
|
3
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Payload } from 'payload';
|
|
1
|
+
import type { Payload } from 'payload';
|
|
2
2
|
/**
|
|
3
3
|
* Base handler interface for all feature handlers
|
|
4
4
|
*/
|
|
5
5
|
export interface Handler<TInput, TOutput> {
|
|
6
6
|
handle(payload: Payload, input: TInput): Promise<TOutput>;
|
|
7
7
|
}
|
|
8
|
-
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -18,4 +18,3 @@ export declare const getTranslateKitFieldConfig: typeof getFieldTranslationConfi
|
|
|
18
18
|
* @returns true if the field has `translateKit.exclude: true`
|
|
19
19
|
*/
|
|
20
20
|
export declare function isFieldExcludedFromTranslation(field: Field): boolean;
|
|
21
|
-
//# sourceMappingURL=getFieldConfig.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { getFieldTranslationConfig, getTranslateKitFieldConfig, isFieldExcludedFromTranslation } from './getFieldConfig';
|
|
2
2
|
export { TRANSLATE_KIT_CUSTOM_KEY } from './types';
|
|
3
3
|
export type { FieldTranslationConfig, TranslateKitFieldConfig } from './types';
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -4,4 +4,3 @@ import type { CollectionConfig, SanitizedCollectionConfig } from 'payload';
|
|
|
4
4
|
* Handles both CollectionConfig and SanitizedCollectionConfig.
|
|
5
5
|
*/
|
|
6
6
|
export declare function collectionHasDrafts(collection: CollectionConfig | SanitizedCollectionConfig): boolean;
|
|
7
|
-
//# sourceMappingURL=collection-guards.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export type { TranslatableField } from './field-guards';
|
|
2
2
|
export { isTranslatableField, isLocalizedField, isRelationshipField, isTabsField, isBlockItem, hasFields, } from './field-guards';
|
|
3
3
|
export { collectionHasDrafts } from './collection-guards';
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,4 +5,3 @@ import type { AccessGuard } from '../access/types';
|
|
|
5
5
|
* Returns 403 Forbidden if access guard denies the request.
|
|
6
6
|
*/
|
|
7
7
|
export declare function withAccessCheck(handler: (req: PayloadRequest) => Promise<Response>, access?: AccessGuard): (req: PayloadRequest) => Promise<Response>;
|
|
8
|
-
//# sourceMappingURL=withAccessCheck.d.ts.map
|
|
@@ -8,4 +8,3 @@ export { isFieldExcludedFromTranslation, getTranslateKitFieldConfig } from './fi
|
|
|
8
8
|
export type { TranslateKitFieldConfig } from './field-config';
|
|
9
9
|
export { isSerializedLexicalRoot, isEmptyRichText, traverseLexicalTree, collectSerializedLexicalTextNodes, } from './lexical';
|
|
10
10
|
export type { SerializedTextNodeRef } from './lexical';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -7,4 +7,3 @@ import type { SerializedLexicalNode, SerializedTextNodeRef } from './types';
|
|
|
7
7
|
* @returns Array of references to text nodes for mutation
|
|
8
8
|
*/
|
|
9
9
|
export declare function collectSerializedLexicalTextNodes(node: SerializedLexicalNode): SerializedTextNodeRef[];
|
|
10
|
-
//# sourceMappingURL=collectTextNodes.d.ts.map
|
|
@@ -17,4 +17,3 @@ export declare function isSerializedLexicalTextNode(node: SerializedLexicalNode)
|
|
|
17
17
|
* Type guard: Checks if node has children array.
|
|
18
18
|
*/
|
|
19
19
|
export declare function hasChildren(node: SerializedLexicalNode): node is SerializedLexicalNodeWithChildren;
|
|
20
|
-
//# sourceMappingURL=guards.d.ts.map
|
|
@@ -4,4 +4,3 @@ export { isSerializedLexicalRoot, isSerializedLexicalTextNode, hasChildren } fro
|
|
|
4
4
|
export { isEmptyRichText } from './isEmptyRichText';
|
|
5
5
|
export { traverseLexicalTree } from './traverseLexicalTree';
|
|
6
6
|
export { collectSerializedLexicalTextNodes } from './collectTextNodes';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -8,4 +8,3 @@ import type { SerializedLexicalNode } from './types';
|
|
|
8
8
|
* @returns false if traversal was stopped early, true otherwise
|
|
9
9
|
*/
|
|
10
10
|
export declare function traverseLexicalTree(node: SerializedLexicalNode, visitor: (node: SerializedLexicalNode) => boolean | void): boolean;
|
|
11
|
-
//# sourceMappingURL=traverseLexicalTree.d.ts.map
|
|
@@ -8,4 +8,3 @@ import type { Field } from 'payload';
|
|
|
8
8
|
* @returns Filtered data containing only translatable localized fields
|
|
9
9
|
*/
|
|
10
10
|
export declare function filterLocalizedFields(schema: Field[], data: Record<string, unknown>): Record<string, unknown>;
|
|
11
|
-
//# sourceMappingURL=filterLocalizedFields.d.ts.map
|