@focus-reactive/payload-plugin-translator 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -14
- package/dist/client/app/cache/CacheProvider.export.js +1 -1
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/styles.module.scss +3 -0
- package/dist/client/entities/translation/ui/FailedTranslationStatus/styles.module.scss +3 -0
- package/dist/client/entities/translation/ui/TranslationDirection/styles.module.scss +16 -0
- package/dist/client/features/collection-translation-form/ui/styles.module.scss +31 -0
- package/dist/client/features/collection-translation-popup/ui/styles.module.scss +18 -0
- package/dist/client/features/collection-translation-progress/ui/styles.module.scss +8 -0
- package/dist/client/features/open-document-translation-popup/ui/styles.module.scss +11 -0
- package/dist/client/features/translate-document-form/ui/styles.module.scss +18 -0
- package/dist/client/shared/ui/Alert/styles.module.scss +31 -0
- package/dist/client/shared/ui/Button/styles.module.scss +103 -0
- package/dist/client/shared/ui/Checkbox/styles.module.scss +17 -0
- package/dist/client/shared/ui/ColorIndicator/styles.module.scss +37 -0
- package/dist/client/shared/ui/Description/styles.module.scss +14 -0
- package/dist/client/shared/ui/Divider/styles.module.scss +56 -0
- package/dist/client/shared/ui/Label/styles.module.scss +12 -0
- package/dist/client/shared/ui/Loading/styles.module.scss +141 -0
- package/dist/client/shared/ui/Popup/styles.module.scss +7 -0
- package/dist/client/shared/ui/ProgressBar/styles.module.scss +64 -0
- package/dist/client/shared/ui/Select/styles.module.scss +55 -0
- package/dist/client/shared/ui/StatusCounter/styles.module.scss +46 -0
- package/dist/client/shared/ui/StatusIndicator/styles.module.scss +12 -0
- package/dist/client/shared/ui/Tooltip/styles.module.scss +84 -0
- package/dist/client/shared/ui/form/FormCheckbox/styles.module.scss +23 -0
- package/dist/client/shared/ui/form/FormCheckboxPublish/styles.module.scss +16 -0
- package/dist/client/shared/ui/form/FormSelectStrategy/styles.module.scss +16 -0
- package/dist/client/shared/utils/componentPath.d.ts +1 -1
- package/dist/client/shared/utils/componentPath.js +1 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.js +1 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.export.js +1 -1
- package/package.json +32 -17
- package/dist/client/app/cache/CacheProvider.d.ts.map +0 -1
- package/dist/client/app/cache/CacheProvider.export.d.ts.map +0 -1
- package/dist/client/app/cache/CacheProvider.export.js.map +0 -1
- package/dist/client/app/cache/CacheProvider.js.map +0 -1
- package/dist/client/app/cache/CacheProvider.jsx +0 -11
- package/dist/client/app/config/TranslateKitConfigContext.d.ts.map +0 -1
- package/dist/client/app/config/TranslateKitConfigContext.js.map +0 -1
- package/dist/client/app/config/TranslateKitConfigContext.jsx +0 -13
- package/dist/client/app/config/index.d.ts.map +0 -1
- package/dist/client/app/config/index.js.map +0 -1
- package/dist/client/entities/translation/api/mutations/useCancelCollectionTranslations.d.ts.map +0 -1
- package/dist/client/entities/translation/api/mutations/useCancelCollectionTranslations.js.map +0 -1
- package/dist/client/entities/translation/api/mutations/useCancelDocumentTranslation.d.ts.map +0 -1
- package/dist/client/entities/translation/api/mutations/useCancelDocumentTranslation.js.map +0 -1
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.d.ts.map +0 -1
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.js.map +0 -1
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslations.d.ts.map +0 -1
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslations.js.map +0 -1
- package/dist/client/entities/translation/api/mutations/useRunDocumentTranslation.d.ts.map +0 -1
- package/dist/client/entities/translation/api/mutations/useRunDocumentTranslation.js.map +0 -1
- package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.d.ts.map +0 -1
- package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.js.map +0 -1
- package/dist/client/entities/translation/api/queries/useDocumentTranslation.d.ts.map +0 -1
- package/dist/client/entities/translation/api/queries/useDocumentTranslation.js.map +0 -1
- package/dist/client/entities/translation/index.d.ts.map +0 -1
- package/dist/client/entities/translation/index.js.map +0 -1
- package/dist/client/entities/translation/model/enums.d.ts.map +0 -1
- package/dist/client/entities/translation/model/enums.js.map +0 -1
- package/dist/client/entities/translation/model/types.d.ts.map +0 -1
- package/dist/client/entities/translation/model/types.js.map +0 -1
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.js.map +0 -1
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.jsx +0 -25
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.js.map +0 -1
- package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.js.map +0 -1
- package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.jsx +0 -24
- package/dist/client/entities/translation/ui/FailedTranslationStatus/index.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/FailedTranslationStatus/index.js.map +0 -1
- package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.js.map +0 -1
- package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.jsx +0 -38
- package/dist/client/entities/translation/ui/PendingTranslationStatus/index.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/PendingTranslationStatus/index.js.map +0 -1
- package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.js.map +0 -1
- package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.jsx +0 -32
- package/dist/client/entities/translation/ui/RunningTranslationStatus/index.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/RunningTranslationStatus/index.js.map +0 -1
- package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.js.map +0 -1
- package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.jsx +0 -16
- package/dist/client/entities/translation/ui/TranslationDirection/index.d.ts.map +0 -1
- package/dist/client/entities/translation/ui/TranslationDirection/index.js.map +0 -1
- package/dist/client/features/collection-translation-form/index.client.d.ts.map +0 -1
- package/dist/client/features/collection-translation-form/index.client.js.map +0 -1
- package/dist/client/features/collection-translation-form/index.d.ts.map +0 -1
- package/dist/client/features/collection-translation-form/index.js.map +0 -1
- package/dist/client/features/collection-translation-form/model/constants.d.ts.map +0 -1
- package/dist/client/features/collection-translation-form/model/constants.js.map +0 -1
- package/dist/client/features/collection-translation-form/model/form-model.d.ts.map +0 -1
- package/dist/client/features/collection-translation-form/model/form-model.js.map +0 -1
- package/dist/client/features/collection-translation-form/model/index.d.ts.map +0 -1
- package/dist/client/features/collection-translation-form/model/index.js.map +0 -1
- package/dist/client/features/collection-translation-form/model/schema.d.ts.map +0 -1
- package/dist/client/features/collection-translation-form/model/schema.js.map +0 -1
- package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.d.ts.map +0 -1
- package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.js.map +0 -1
- package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.jsx +0 -25
- package/dist/client/features/collection-translation-form/ui/index.d.ts.map +0 -1
- package/dist/client/features/collection-translation-form/ui/index.js.map +0 -1
- package/dist/client/features/collection-translation-popup/index.d.ts.map +0 -1
- package/dist/client/features/collection-translation-popup/index.js.map +0 -1
- package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.d.ts.map +0 -1
- package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.js.map +0 -1
- package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.jsx +0 -23
- package/dist/client/features/collection-translation-progress/index.d.ts.map +0 -1
- package/dist/client/features/collection-translation-progress/index.js.map +0 -1
- package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.d.ts.map +0 -1
- package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.js.map +0 -1
- package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.jsx +0 -47
- package/dist/client/features/document-translation-progress-failed/index.d.ts.map +0 -1
- package/dist/client/features/document-translation-progress-failed/index.js.map +0 -1
- package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.d.ts.map +0 -1
- package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.js.map +0 -1
- package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.jsx +0 -19
- package/dist/client/features/document-translation-progress-pending/index.d.ts.map +0 -1
- package/dist/client/features/document-translation-progress-pending/index.js.map +0 -1
- package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.d.ts.map +0 -1
- package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.js.map +0 -1
- package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.jsx +0 -34
- package/dist/client/features/document-translation-progress-running/index.d.ts.map +0 -1
- package/dist/client/features/document-translation-progress-running/index.js.map +0 -1
- package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.d.ts.map +0 -1
- package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.js.map +0 -1
- package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.jsx +0 -19
- package/dist/client/features/open-document-translation-popup/index.d.ts.map +0 -1
- package/dist/client/features/open-document-translation-popup/index.js.map +0 -1
- package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.d.ts.map +0 -1
- package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.js.map +0 -1
- package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.jsx +0 -15
- package/dist/client/features/translate-document-form/index.client.d.ts.map +0 -1
- package/dist/client/features/translate-document-form/index.client.js.map +0 -1
- package/dist/client/features/translate-document-form/index.d.ts.map +0 -1
- package/dist/client/features/translate-document-form/index.js.map +0 -1
- package/dist/client/features/translate-document-form/model/constants.d.ts.map +0 -1
- package/dist/client/features/translate-document-form/model/constants.js.map +0 -1
- package/dist/client/features/translate-document-form/model/form-model.d.ts.map +0 -1
- package/dist/client/features/translate-document-form/model/form-model.js.map +0 -1
- package/dist/client/features/translate-document-form/model/index.d.ts.map +0 -1
- package/dist/client/features/translate-document-form/model/index.js.map +0 -1
- package/dist/client/features/translate-document-form/model/schema.d.ts.map +0 -1
- package/dist/client/features/translate-document-form/model/schema.js.map +0 -1
- package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.d.ts.map +0 -1
- package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.js.map +0 -1
- package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.jsx +0 -24
- package/dist/client/features/translate-document-form/ui/index.d.ts.map +0 -1
- package/dist/client/features/translate-document-form/ui/index.js.map +0 -1
- package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.d.ts.map +0 -1
- package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.js.map +0 -1
- package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.jsx +0 -4
- package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.d.ts.map +0 -1
- package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.js.map +0 -1
- package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.jsx +0 -3
- package/dist/client/shared/lib/assets/icons/ReloadIcon.d.ts.map +0 -1
- package/dist/client/shared/lib/assets/icons/ReloadIcon.js.map +0 -1
- package/dist/client/shared/lib/assets/icons/ReloadIcon.jsx +0 -3
- package/dist/client/shared/lib/errors/handleApiError.d.ts.map +0 -1
- package/dist/client/shared/lib/errors/handleApiError.js.map +0 -1
- package/dist/client/shared/lib/forms/handle-form-error.d.ts.map +0 -1
- package/dist/client/shared/lib/forms/handle-form-error.js.map +0 -1
- package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.d.ts.map +0 -1
- package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.js.map +0 -1
- package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.d.ts.map +0 -1
- package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.js.map +0 -1
- package/dist/client/shared/lib/payload/hooks/useLocaleOptions.d.ts.map +0 -1
- package/dist/client/shared/lib/payload/hooks/useLocaleOptions.js.map +0 -1
- package/dist/client/shared/lib/utils/errors/handleApiError.d.ts.map +0 -1
- package/dist/client/shared/lib/utils/errors/handleApiError.js.map +0 -1
- package/dist/client/shared/lib/utils/react/useToggle.d.ts.map +0 -1
- package/dist/client/shared/lib/utils/react/useToggle.js.map +0 -1
- package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.d.ts.map +0 -1
- package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.js.map +0 -1
- package/dist/client/shared/providers/CacheClientProvider/index.d.ts.map +0 -1
- package/dist/client/shared/providers/CacheClientProvider/index.js.map +0 -1
- package/dist/client/shared/types/AccessGuard.d.ts.map +0 -1
- package/dist/client/shared/types/AccessGuard.js.map +0 -1
- package/dist/client/shared/types/PayloadComponentExport.d.ts.map +0 -1
- package/dist/client/shared/types/PayloadComponentExport.js.map +0 -1
- package/dist/client/shared/ui/Alert/Alert.d.ts.map +0 -1
- package/dist/client/shared/ui/Alert/Alert.js.map +0 -1
- package/dist/client/shared/ui/Alert/Alert.jsx +0 -33
- package/dist/client/shared/ui/Alert/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Alert/index.js.map +0 -1
- package/dist/client/shared/ui/Button/Button.d.ts.map +0 -1
- package/dist/client/shared/ui/Button/Button.js.map +0 -1
- package/dist/client/shared/ui/Button/Button.jsx +0 -35
- package/dist/client/shared/ui/Button/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Button/index.js.map +0 -1
- package/dist/client/shared/ui/Checkbox/Checkbox.d.ts.map +0 -1
- package/dist/client/shared/ui/Checkbox/Checkbox.js.map +0 -1
- package/dist/client/shared/ui/Checkbox/Checkbox.jsx +0 -6
- package/dist/client/shared/ui/Checkbox/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Checkbox/index.js.map +0 -1
- package/dist/client/shared/ui/ColorIndicator/ColorIndicator.d.ts.map +0 -1
- package/dist/client/shared/ui/ColorIndicator/ColorIndicator.js.map +0 -1
- package/dist/client/shared/ui/ColorIndicator/ColorIndicator.jsx +0 -7
- package/dist/client/shared/ui/ColorIndicator/index.d.ts.map +0 -1
- package/dist/client/shared/ui/ColorIndicator/index.js.map +0 -1
- package/dist/client/shared/ui/Description/Description.d.ts.map +0 -1
- package/dist/client/shared/ui/Description/Description.js.map +0 -1
- package/dist/client/shared/ui/Description/Description.jsx +0 -7
- package/dist/client/shared/ui/Description/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Description/index.js.map +0 -1
- package/dist/client/shared/ui/Divider/Divider.d.ts.map +0 -1
- package/dist/client/shared/ui/Divider/Divider.js.map +0 -1
- package/dist/client/shared/ui/Divider/Divider.jsx +0 -7
- package/dist/client/shared/ui/Divider/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Divider/index.js.map +0 -1
- package/dist/client/shared/ui/Label/Label.d.ts.map +0 -1
- package/dist/client/shared/ui/Label/Label.js.map +0 -1
- package/dist/client/shared/ui/Label/Label.jsx +0 -9
- package/dist/client/shared/ui/Label/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Label/index.js.map +0 -1
- package/dist/client/shared/ui/Loading/Loading.d.ts.map +0 -1
- package/dist/client/shared/ui/Loading/Loading.js.map +0 -1
- package/dist/client/shared/ui/Loading/Loading.jsx +0 -11
- package/dist/client/shared/ui/Loading/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Loading/index.js.map +0 -1
- package/dist/client/shared/ui/Popup/Popup.d.ts.map +0 -1
- package/dist/client/shared/ui/Popup/Popup.js.map +0 -1
- package/dist/client/shared/ui/Popup/Popup.jsx +0 -13
- package/dist/client/shared/ui/Popup/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Popup/index.js.map +0 -1
- package/dist/client/shared/ui/ProgressBar/ProgressBar.d.ts.map +0 -1
- package/dist/client/shared/ui/ProgressBar/ProgressBar.js.map +0 -1
- package/dist/client/shared/ui/ProgressBar/ProgressBar.jsx +0 -11
- package/dist/client/shared/ui/ProgressBar/index.d.ts.map +0 -1
- package/dist/client/shared/ui/ProgressBar/index.js.map +0 -1
- package/dist/client/shared/ui/Select/Select.d.ts.map +0 -1
- package/dist/client/shared/ui/Select/Select.js.map +0 -1
- package/dist/client/shared/ui/Select/Select.jsx +0 -41
- package/dist/client/shared/ui/Select/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Select/index.js.map +0 -1
- package/dist/client/shared/ui/StatusCounter/StatusCounter.d.ts.map +0 -1
- package/dist/client/shared/ui/StatusCounter/StatusCounter.js.map +0 -1
- package/dist/client/shared/ui/StatusCounter/StatusCounter.jsx +0 -26
- package/dist/client/shared/ui/StatusCounter/index.d.ts.map +0 -1
- package/dist/client/shared/ui/StatusCounter/index.js.map +0 -1
- package/dist/client/shared/ui/StatusIndicator/StatusIndicator.d.ts.map +0 -1
- package/dist/client/shared/ui/StatusIndicator/StatusIndicator.js.map +0 -1
- package/dist/client/shared/ui/StatusIndicator/StatusIndicator.jsx +0 -10
- package/dist/client/shared/ui/StatusIndicator/index.d.ts.map +0 -1
- package/dist/client/shared/ui/StatusIndicator/index.js.map +0 -1
- package/dist/client/shared/ui/Tooltip/Tooltip.d.ts.map +0 -1
- package/dist/client/shared/ui/Tooltip/Tooltip.js.map +0 -1
- package/dist/client/shared/ui/Tooltip/Tooltip.jsx +0 -16
- package/dist/client/shared/ui/Tooltip/index.d.ts.map +0 -1
- package/dist/client/shared/ui/Tooltip/index.js.map +0 -1
- package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.js.map +0 -1
- package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.jsx +0 -24
- package/dist/client/shared/ui/form/FormCheckbox/index.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormCheckbox/index.js.map +0 -1
- package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.js.map +0 -1
- package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.jsx +0 -21
- package/dist/client/shared/ui/form/FormCheckboxPublish/index.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormCheckboxPublish/index.js.map +0 -1
- package/dist/client/shared/ui/form/FormSelect/FormSelect.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormSelect/FormSelect.js.map +0 -1
- package/dist/client/shared/ui/form/FormSelect/FormSelect.jsx +0 -44
- package/dist/client/shared/ui/form/FormSelect/index.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormSelect/index.js.map +0 -1
- package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.js.map +0 -1
- package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.jsx +0 -6
- package/dist/client/shared/ui/form/FormSelectLocale/index.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormSelectLocale/index.js.map +0 -1
- package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.js.map +0 -1
- package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.jsx +0 -25
- package/dist/client/shared/ui/form/FormSelectStrategy/index.d.ts.map +0 -1
- package/dist/client/shared/ui/form/FormSelectStrategy/index.js.map +0 -1
- package/dist/client/shared/utils/componentPath.d.ts.map +0 -1
- package/dist/client/shared/utils/componentPath.js.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/index.d.ts.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/index.js.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.d.ts.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.d.ts.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.js.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.jsx +0 -11
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.js.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.jsx +0 -55
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.d.ts.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.js.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.jsx +0 -17
- package/dist/client/widgets/bulk-translation-dashboard/ui/index.d.ts.map +0 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/index.js.map +0 -1
- package/dist/client/widgets/translate-document/index.d.ts.map +0 -1
- package/dist/client/widgets/translate-document/index.js.map +0 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.d.ts.map +0 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.export.d.ts.map +0 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.export.js.map +0 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.js.map +0 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.jsx +0 -55
- package/dist/client/widgets/translate-document/ui/TranslateDocument.server.d.ts.map +0 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.server.js.map +0 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.server.jsx +0 -16
- package/dist/client/widgets/translate-document/ui/index.d.ts.map +0 -1
- package/dist/client/widgets/translate-document/ui/index.js.map +0 -1
- package/dist/field-config.d.ts.map +0 -1
- package/dist/field-config.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/plugin.d.ts.map +0 -1
- package/dist/plugin.js.map +0 -1
- package/dist/server/features/_lib/collection-utils.d.ts.map +0 -1
- package/dist/server/features/_lib/collection-utils.js.map +0 -1
- package/dist/server/features/_lib/index.d.ts.map +0 -1
- package/dist/server/features/_lib/index.js.map +0 -1
- package/dist/server/features/cancel/handler.d.ts.map +0 -1
- package/dist/server/features/cancel/handler.js.map +0 -1
- package/dist/server/features/cancel/handler.test.d.ts +0 -2
- package/dist/server/features/cancel/handler.test.d.ts.map +0 -1
- package/dist/server/features/cancel/handler.test.js +0 -63
- package/dist/server/features/cancel/index.d.ts.map +0 -1
- package/dist/server/features/cancel/index.js.map +0 -1
- package/dist/server/features/cancel/model.d.ts.map +0 -1
- package/dist/server/features/cancel/model.js.map +0 -1
- package/dist/server/features/cancel/route.d.ts.map +0 -1
- package/dist/server/features/cancel/route.js.map +0 -1
- package/dist/server/features/cancel-by-collection/handler.d.ts.map +0 -1
- package/dist/server/features/cancel-by-collection/handler.js.map +0 -1
- package/dist/server/features/cancel-by-collection/handler.test.d.ts +0 -2
- package/dist/server/features/cancel-by-collection/handler.test.d.ts.map +0 -1
- package/dist/server/features/cancel-by-collection/handler.test.js +0 -126
- package/dist/server/features/cancel-by-collection/index.d.ts.map +0 -1
- package/dist/server/features/cancel-by-collection/index.js.map +0 -1
- package/dist/server/features/cancel-by-collection/model.d.ts.map +0 -1
- package/dist/server/features/cancel-by-collection/model.js.map +0 -1
- package/dist/server/features/cancel-by-collection/route.d.ts.map +0 -1
- package/dist/server/features/cancel-by-collection/route.js.map +0 -1
- package/dist/server/features/enqueue-translation/handler.d.ts.map +0 -1
- package/dist/server/features/enqueue-translation/handler.js.map +0 -1
- package/dist/server/features/enqueue-translation/handler.test.d.ts +0 -2
- package/dist/server/features/enqueue-translation/handler.test.d.ts.map +0 -1
- package/dist/server/features/enqueue-translation/handler.test.js +0 -115
- package/dist/server/features/enqueue-translation/index.d.ts.map +0 -1
- package/dist/server/features/enqueue-translation/index.js.map +0 -1
- package/dist/server/features/enqueue-translation/model.d.ts.map +0 -1
- package/dist/server/features/enqueue-translation/model.js.map +0 -1
- package/dist/server/features/enqueue-translation/route.d.ts.map +0 -1
- package/dist/server/features/enqueue-translation/route.js.map +0 -1
- package/dist/server/features/get-collection-status/handler.d.ts.map +0 -1
- package/dist/server/features/get-collection-status/handler.js.map +0 -1
- package/dist/server/features/get-collection-status/handler.test.d.ts +0 -2
- package/dist/server/features/get-collection-status/handler.test.d.ts.map +0 -1
- package/dist/server/features/get-collection-status/handler.test.js +0 -108
- package/dist/server/features/get-collection-status/index.d.ts.map +0 -1
- package/dist/server/features/get-collection-status/index.js.map +0 -1
- package/dist/server/features/get-collection-status/model.d.ts.map +0 -1
- package/dist/server/features/get-collection-status/model.js.map +0 -1
- package/dist/server/features/get-collection-status/route.d.ts.map +0 -1
- package/dist/server/features/get-collection-status/route.js.map +0 -1
- package/dist/server/features/get-document-status/handler.d.ts.map +0 -1
- package/dist/server/features/get-document-status/handler.js.map +0 -1
- package/dist/server/features/get-document-status/handler.test.d.ts +0 -2
- package/dist/server/features/get-document-status/handler.test.d.ts.map +0 -1
- package/dist/server/features/get-document-status/handler.test.js +0 -138
- package/dist/server/features/get-document-status/index.d.ts.map +0 -1
- package/dist/server/features/get-document-status/index.js.map +0 -1
- package/dist/server/features/get-document-status/model.d.ts.map +0 -1
- package/dist/server/features/get-document-status/model.js.map +0 -1
- package/dist/server/features/get-document-status/route.d.ts.map +0 -1
- package/dist/server/features/get-document-status/route.js.map +0 -1
- package/dist/server/features/index.d.ts.map +0 -1
- package/dist/server/features/index.js.map +0 -1
- package/dist/server/features/run-translation/handler.d.ts.map +0 -1
- package/dist/server/features/run-translation/handler.js.map +0 -1
- package/dist/server/features/run-translation/handler.test.d.ts +0 -2
- package/dist/server/features/run-translation/handler.test.d.ts.map +0 -1
- package/dist/server/features/run-translation/handler.test.js +0 -98
- package/dist/server/features/run-translation/index.d.ts.map +0 -1
- package/dist/server/features/run-translation/index.js.map +0 -1
- package/dist/server/features/run-translation/model.d.ts.map +0 -1
- package/dist/server/features/run-translation/model.js.map +0 -1
- package/dist/server/features/run-translation/route.d.ts.map +0 -1
- package/dist/server/features/run-translation/route.js.map +0 -1
- package/dist/server/features/translate-document/handler.d.ts.map +0 -1
- package/dist/server/features/translate-document/handler.js.map +0 -1
- package/dist/server/features/translate-document/handler.test.d.ts +0 -2
- package/dist/server/features/translate-document/handler.test.d.ts.map +0 -1
- package/dist/server/features/translate-document/handler.test.js +0 -171
- package/dist/server/features/translate-document/index.d.ts.map +0 -1
- package/dist/server/features/translate-document/index.js.map +0 -1
- package/dist/server/features/translate-document/model.d.ts.map +0 -1
- package/dist/server/features/translate-document/model.js.map +0 -1
- package/dist/server/features/translate-document/task.d.ts.map +0 -1
- package/dist/server/features/translate-document/task.js.map +0 -1
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/index.js.map +0 -1
- package/dist/server/modules/index.d.ts.map +0 -1
- package/dist/server/modules/index.js.map +0 -1
- package/dist/server/modules/task-runner/TaskRunner.interface.d.ts.map +0 -1
- package/dist/server/modules/task-runner/TaskRunner.interface.js.map +0 -1
- package/dist/server/modules/task-runner/TaskRunnerProvider.interface.d.ts.map +0 -1
- package/dist/server/modules/task-runner/TaskRunnerProvider.interface.js.map +0 -1
- package/dist/server/modules/task-runner/index.d.ts.map +0 -1
- package/dist/server/modules/task-runner/index.js.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsRunnerProvider.d.ts.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsRunnerProvider.js.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.d.ts.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.js.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.test.d.ts +0 -2
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.test.d.ts.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.test.js +0 -188
- package/dist/server/modules/task-runner/payload-jobs-runner/index.d.ts.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/index.js.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.d.ts.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.js.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.test.d.ts +0 -2
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.test.d.ts.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.test.js +0 -169
- package/dist/server/modules/task-runner/payload-jobs-runner/types.d.ts.map +0 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/types.js.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/SyncRunnerProvider.d.ts.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/SyncRunnerProvider.js.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.d.ts.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.js.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.test.d.ts +0 -2
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.test.d.ts.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.test.js +0 -148
- package/dist/server/modules/task-runner/sync-runner/index.d.ts.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/index.js.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/types.d.ts.map +0 -1
- package/dist/server/modules/task-runner/sync-runner/types.js.map +0 -1
- package/dist/server/modules/task-runner/types.d.ts.map +0 -1
- package/dist/server/modules/task-runner/types.js.map +0 -1
- package/dist/server/modules/translation-pipeline/TranslationPipeline.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/TranslationPipeline.js.map +0 -1
- package/dist/server/modules/translation-pipeline/TranslationPipeline.test.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/TranslationPipeline.test.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/TranslationPipeline.test.js +0 -552
- package/dist/server/modules/translation-pipeline/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/index.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.stage.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.stage.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.test.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.test.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.test.js +0 -294
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.test.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.test.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.test.js +0 -737
- package/dist/server/modules/translation-pipeline/stages/field-collector/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/field-collector/index.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/index.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/PlainTextExpander.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/PlainTextExpander.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/RichTextExpander.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/RichTextExpander.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.stage.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.stage.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.test.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.test.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.test.js +0 -396
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextExpander.interface.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/TextExpander.interface.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/text-expander/index.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation/Translation.stage.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation/Translation.stage.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation/index.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.js.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.test.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.test.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.test.js +0 -110
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.js.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.js.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.test.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.test.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.test.js +0 -36
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.js.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.test.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.test.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.test.js +0 -77
- package/dist/server/modules/translation-pipeline/strategies/TranslationStrategy.interface.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/TranslationStrategy.interface.js.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/strategies/index.js.map +0 -1
- package/dist/server/modules/translation-pipeline/types/FieldChunk.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/types/FieldChunk.js.map +0 -1
- package/dist/server/modules/translation-pipeline/types/Pipeline.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/types/Pipeline.js.map +0 -1
- package/dist/server/modules/translation-pipeline/types/PipelineContext.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/types/PipelineContext.js.map +0 -1
- package/dist/server/modules/translation-pipeline/types/TextChunk.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/types/TextChunk.js.map +0 -1
- package/dist/server/modules/translation-pipeline/types/index.d.ts.map +0 -1
- package/dist/server/modules/translation-pipeline/types/index.js.map +0 -1
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.d.ts.map +0 -1
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.js.map +0 -1
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.test.d.ts +0 -2
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.test.d.ts.map +0 -1
- package/dist/server/modules/translation-providers/OpenAITranslation.provider.test.js +0 -214
- package/dist/server/modules/translation-providers/TranslationProvider.interface.d.ts.map +0 -1
- package/dist/server/modules/translation-providers/TranslationProvider.interface.js.map +0 -1
- package/dist/server/modules/translation-providers/index.d.ts.map +0 -1
- package/dist/server/modules/translation-providers/index.js.map +0 -1
- package/dist/server/shared/access/AnyAccessGuard.d.ts.map +0 -1
- package/dist/server/shared/access/AnyAccessGuard.js.map +0 -1
- package/dist/server/shared/access/handler.d.ts.map +0 -1
- package/dist/server/shared/access/handler.js.map +0 -1
- package/dist/server/shared/access/index.d.ts.map +0 -1
- package/dist/server/shared/access/index.js.map +0 -1
- package/dist/server/shared/access/types.d.ts.map +0 -1
- package/dist/server/shared/access/types.js.map +0 -1
- package/dist/server/shared/field-config/getFieldConfig.d.ts.map +0 -1
- package/dist/server/shared/field-config/getFieldConfig.js.map +0 -1
- package/dist/server/shared/field-config/getFieldConfig.test.d.ts +0 -2
- package/dist/server/shared/field-config/getFieldConfig.test.d.ts.map +0 -1
- package/dist/server/shared/field-config/getFieldConfig.test.js +0 -74
- package/dist/server/shared/field-config/index.d.ts.map +0 -1
- package/dist/server/shared/field-config/index.js.map +0 -1
- package/dist/server/shared/field-config/types.d.ts.map +0 -1
- package/dist/server/shared/field-config/types.js.map +0 -1
- package/dist/server/shared/guards/collection-guards.d.ts.map +0 -1
- package/dist/server/shared/guards/collection-guards.js.map +0 -1
- package/dist/server/shared/guards/field-guards.d.ts.map +0 -1
- package/dist/server/shared/guards/field-guards.js.map +0 -1
- package/dist/server/shared/guards/field-guards.test.d.ts +0 -2
- package/dist/server/shared/guards/field-guards.test.d.ts.map +0 -1
- package/dist/server/shared/guards/field-guards.test.js +0 -166
- package/dist/server/shared/guards/index.d.ts.map +0 -1
- package/dist/server/shared/guards/index.js.map +0 -1
- package/dist/server/shared/http/ServerResponse.d.ts.map +0 -1
- package/dist/server/shared/http/ServerResponse.js.map +0 -1
- package/dist/server/shared/http/ServerResponse.test.d.ts +0 -2
- package/dist/server/shared/http/ServerResponse.test.d.ts.map +0 -1
- package/dist/server/shared/http/ServerResponse.test.js +0 -161
- package/dist/server/shared/http/index.d.ts.map +0 -1
- package/dist/server/shared/http/index.js.map +0 -1
- package/dist/server/shared/http/withAccessCheck.d.ts.map +0 -1
- package/dist/server/shared/http/withAccessCheck.js.map +0 -1
- package/dist/server/shared/http/withAccessCheck.test.d.ts +0 -2
- package/dist/server/shared/http/withAccessCheck.test.d.ts.map +0 -1
- package/dist/server/shared/http/withAccessCheck.test.js +0 -46
- package/dist/server/shared/http/withErrorHandler.d.ts.map +0 -1
- package/dist/server/shared/http/withErrorHandler.js.map +0 -1
- package/dist/server/shared/http/withErrorHandler.test.d.ts +0 -2
- package/dist/server/shared/http/withErrorHandler.test.d.ts.map +0 -1
- package/dist/server/shared/http/withErrorHandler.test.js +0 -69
- package/dist/server/shared/index.d.ts.map +0 -1
- package/dist/server/shared/index.js.map +0 -1
- package/dist/server/shared/lexical/collectTextNodes.d.ts.map +0 -1
- package/dist/server/shared/lexical/collectTextNodes.js.map +0 -1
- package/dist/server/shared/lexical/collectTextNodes.test.d.ts +0 -2
- package/dist/server/shared/lexical/collectTextNodes.test.d.ts.map +0 -1
- package/dist/server/shared/lexical/collectTextNodes.test.js +0 -120
- package/dist/server/shared/lexical/guards.d.ts.map +0 -1
- package/dist/server/shared/lexical/guards.js.map +0 -1
- package/dist/server/shared/lexical/guards.test.d.ts +0 -2
- package/dist/server/shared/lexical/guards.test.d.ts.map +0 -1
- package/dist/server/shared/lexical/guards.test.js +0 -160
- package/dist/server/shared/lexical/index.d.ts.map +0 -1
- package/dist/server/shared/lexical/index.js.map +0 -1
- package/dist/server/shared/lexical/isEmptyRichText.d.ts.map +0 -1
- package/dist/server/shared/lexical/isEmptyRichText.js.map +0 -1
- package/dist/server/shared/lexical/isEmptyRichText.test.d.ts +0 -2
- package/dist/server/shared/lexical/isEmptyRichText.test.d.ts.map +0 -1
- package/dist/server/shared/lexical/isEmptyRichText.test.js +0 -251
- package/dist/server/shared/lexical/traverseLexicalTree.d.ts.map +0 -1
- package/dist/server/shared/lexical/traverseLexicalTree.js.map +0 -1
- package/dist/server/shared/lexical/traverseLexicalTree.test.d.ts +0 -2
- package/dist/server/shared/lexical/traverseLexicalTree.test.d.ts.map +0 -1
- package/dist/server/shared/lexical/traverseLexicalTree.test.js +0 -112
- package/dist/server/shared/lexical/types.d.ts.map +0 -1
- package/dist/server/shared/lexical/types.js.map +0 -1
- package/dist/server/shared/utils/LazyMap.d.ts.map +0 -1
- package/dist/server/shared/utils/LazyMap.js.map +0 -1
- package/dist/server/shared/utils/LazyMap.test.d.ts +0 -2
- package/dist/server/shared/utils/LazyMap.test.d.ts.map +0 -1
- package/dist/server/shared/utils/LazyMap.test.js +0 -262
- package/dist/server/shared/utils/filterLocalizedFields.d.ts.map +0 -1
- package/dist/server/shared/utils/filterLocalizedFields.js.map +0 -1
- package/dist/server/shared/utils/filterLocalizedFields.test.d.ts +0 -2
- package/dist/server/shared/utils/filterLocalizedFields.test.d.ts.map +0 -1
- package/dist/server/shared/utils/filterLocalizedFields.test.js +0 -338
- package/dist/server/shared/utils/getByPath.d.ts.map +0 -1
- package/dist/server/shared/utils/getByPath.js.map +0 -1
- package/dist/server/shared/utils/getByPath.test.d.ts +0 -2
- package/dist/server/shared/utils/getByPath.test.d.ts.map +0 -1
- package/dist/server/shared/utils/getByPath.test.js +0 -33
- package/dist/server/shared/utils/index.d.ts.map +0 -1
- package/dist/server/shared/utils/index.js.map +0 -1
- package/dist/server/shared/utils/isEmpty.d.ts.map +0 -1
- package/dist/server/shared/utils/isEmpty.js.map +0 -1
- package/dist/server/shared/utils/isEmpty.test.d.ts +0 -2
- package/dist/server/shared/utils/isEmpty.test.d.ts.map +0 -1
- package/dist/server/shared/utils/isEmpty.test.js +0 -60
- package/dist/server/shared/utils/isObject.d.ts.map +0 -1
- package/dist/server/shared/utils/isObject.js.map +0 -1
- package/dist/server/shared/utils/isObject.test.d.ts +0 -2
- package/dist/server/shared/utils/isObject.test.d.ts.map +0 -1
- package/dist/server/shared/utils/isObject.test.js +0 -57
- package/dist/server/shared/utils/normalizePath.d.ts.map +0 -1
- package/dist/server/shared/utils/normalizePath.js.map +0 -1
- package/dist/server/shared/utils/normalizePath.test.d.ts +0 -2
- package/dist/server/shared/utils/normalizePath.test.d.ts.map +0 -1
- package/dist/server/shared/utils/normalizePath.test.js +0 -33
- package/dist/server/shared/utils/pipe.d.ts.map +0 -1
- package/dist/server/shared/utils/pipe.js.map +0 -1
- package/dist/server/shared/utils/pipe.test.d.ts +0 -2
- package/dist/server/shared/utils/pipe.test.d.ts.map +0 -1
- package/dist/server/shared/utils/pipe.test.js +0 -55
- package/dist/server/shared/utils/setByPath.d.ts.map +0 -1
- package/dist/server/shared/utils/setByPath.js.map +0 -1
- package/dist/server/shared/utils/setByPath.test.d.ts +0 -2
- package/dist/server/shared/utils/setByPath.test.d.ts.map +0 -1
- package/dist/server/shared/utils/setByPath.test.js +0 -46
- package/dist/types/AccessGuard.d.ts.map +0 -1
- package/dist/types/AccessGuard.js.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/vitest-env.d.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/server/modules/translation-pipeline/stages/field-collector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/server/modules/translation-pipeline/stages/field-collector/index.ts"],"sourcesContent":["export { FieldChunkCollector } from './FieldChunkCollector'\nexport { FieldChunkCollectorStage } from './FieldChunkCollector.stage'\n"],"names":["FieldChunkCollector","FieldChunkCollectorStage"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,wBAAuB;AAC3D,SAASC,wBAAwB,QAAQ,8BAA6B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/server/modules/translation-pipeline/stages/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvE,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AACjF,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAChH,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/server/modules/translation-pipeline/stages/index.ts"],"sourcesContent":["export { DataReconciler, DataReconcilerStage } from './data-reconciler'\nexport { FieldChunkCollector, FieldChunkCollectorStage } from './field-collector'\nexport { TextChunkExpander, PlainTextExpander, RichTextExpander, TextChunkExpanderStage } from './text-expander'\nexport type { TextExpansionResult, TextExpander, ExpansionResult } from './text-expander'\nexport { TranslationStage } from './translation'\nexport { TranslationMutator, TranslationMutatorStage } from './translation-applicator'\n"],"names":["DataReconciler","DataReconcilerStage","FieldChunkCollector","FieldChunkCollectorStage","TextChunkExpander","PlainTextExpander","RichTextExpander","TextChunkExpanderStage","TranslationStage","TranslationMutator","TranslationMutatorStage"],"mappings":"AAAA,SAASA,cAAc,EAAEC,mBAAmB,QAAQ,oBAAmB;AACvE,SAASC,mBAAmB,EAAEC,wBAAwB,QAAQ,oBAAmB;AACjF,SAASC,iBAAiB,EAAEC,iBAAiB,EAAEC,gBAAgB,EAAEC,sBAAsB,QAAQ,kBAAiB;AAEhH,SAASC,gBAAgB,QAAQ,gBAAe;AAChD,SAASC,kBAAkB,EAAEC,uBAAuB,QAAQ,2BAA0B"}
|
package/dist/server/modules/translation-pipeline/stages/text-expander/PlainTextExpander.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PlainTextExpander.d.ts","sourceRoot":"","sources":["../../../../../../src/server/modules/translation-pipeline/stages/text-expander/PlainTextExpander.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAkB,MAAM,aAAa,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE7E;;GAEG;AACH,qBAAa,iBAAkB,YAAW,YAAY;IACpD,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO;IAItD,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,eAAe;CAiB/E"}
|
package/dist/server/modules/translation-pipeline/stages/text-expander/PlainTextExpander.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/server/modules/translation-pipeline/stages/text-expander/PlainTextExpander.ts"],"sourcesContent":["import type { FieldChunk, PlainTextChunk } from '../../types'\nimport type { ExpansionResult, TextExpander } from './TextExpander.interface'\n\n/**\n * Expands plain text and textarea fields into PlainTextChunks.\n */\nexport class PlainTextExpander implements TextExpander {\n canExpand(_chunk: FieldChunk, value: unknown): boolean {\n return typeof value === 'string' && value.trim().length > 0\n }\n\n expand(chunk: FieldChunk, value: unknown, startIndex: number): ExpansionResult {\n const text = value as string\n\n const textChunk: PlainTextChunk = {\n type: 'plain',\n index: startIndex,\n text,\n dataRef: chunk.dataRef,\n key: chunk.key,\n }\n\n return {\n chunks: [textChunk],\n textMap: { [startIndex]: text },\n nextIndex: startIndex + 1,\n }\n }\n}\n"],"names":["PlainTextExpander","canExpand","_chunk","value","trim","length","expand","chunk","startIndex","text","textChunk","type","index","dataRef","key","chunks","textMap","nextIndex"],"mappings":"AAGA;;CAEC,GACD,OAAO,MAAMA;IACXC,UAAUC,MAAkB,EAAEC,KAAc,EAAW;QACrD,OAAO,OAAOA,UAAU,YAAYA,MAAMC,IAAI,GAAGC,MAAM,GAAG;IAC5D;IAEAC,OAAOC,KAAiB,EAAEJ,KAAc,EAAEK,UAAkB,EAAmB;QAC7E,MAAMC,OAAON;QAEb,MAAMO,YAA4B;YAChCC,MAAM;YACNC,OAAOJ;YACPC;YACAI,SAASN,MAAMM,OAAO;YACtBC,KAAKP,MAAMO,GAAG;QAChB;QAEA,OAAO;YACLC,QAAQ;gBAACL;aAAU;YACnBM,SAAS;gBAAE,CAACR,WAAW,EAAEC;YAAK;YAC9BQ,WAAWT,aAAa;QAC1B;IACF;AACF"}
|
package/dist/server/modules/translation-pipeline/stages/text-expander/RichTextExpander.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextExpander.d.ts","sourceRoot":"","sources":["../../../../../../src/server/modules/translation-pipeline/stages/text-expander/RichTextExpander.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,aAAa,CAAA;AAG5D,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE7E;;GAEG;AACH,qBAAa,gBAAiB,YAAW,YAAY;IACnD,SAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO;IAIrD,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,eAAe;CAyBhF"}
|
package/dist/server/modules/translation-pipeline/stages/text-expander/RichTextExpander.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/server/modules/translation-pipeline/stages/text-expander/RichTextExpander.ts"],"sourcesContent":["import type { FieldChunk, RichTextChunk } from '../../types'\nimport type { SerializedLexicalRoot } from '../../../../shared/lexical'\nimport { isSerializedLexicalRoot, collectSerializedLexicalTextNodes } from '../../../../shared/lexical'\nimport type { ExpansionResult, TextExpander } from './TextExpander.interface'\n\n/**\n * Expands richText fields into multiple RichTextChunks (one per text node).\n */\nexport class RichTextExpander implements TextExpander {\n canExpand(chunk: FieldChunk, value: unknown): boolean {\n return chunk.schema.type === 'richText' && isSerializedLexicalRoot(value)\n }\n\n expand(_chunk: FieldChunk, value: unknown, startIndex: number): ExpansionResult {\n const root = value as SerializedLexicalRoot\n const textNodeRefs = collectSerializedLexicalTextNodes(root.root)\n\n const chunks: RichTextChunk[] = []\n const textMap: Record<number, string> = {}\n let index = startIndex\n\n for (const ref of textNodeRefs) {\n chunks.push({\n type: 'richText',\n index,\n text: ref.node.text,\n nodeRef: ref.node,\n })\n textMap[index] = ref.node.text\n index++\n }\n\n return {\n chunks,\n textMap,\n nextIndex: index,\n }\n }\n}\n"],"names":["isSerializedLexicalRoot","collectSerializedLexicalTextNodes","RichTextExpander","canExpand","chunk","value","schema","type","expand","_chunk","startIndex","root","textNodeRefs","chunks","textMap","index","ref","push","text","node","nodeRef","nextIndex"],"mappings":"AAEA,SAASA,uBAAuB,EAAEC,iCAAiC,QAAQ,6BAA4B;AAGvG;;CAEC,GACD,OAAO,MAAMC;IACXC,UAAUC,KAAiB,EAAEC,KAAc,EAAW;QACpD,OAAOD,MAAME,MAAM,CAACC,IAAI,KAAK,cAAcP,wBAAwBK;IACrE;IAEAG,OAAOC,MAAkB,EAAEJ,KAAc,EAAEK,UAAkB,EAAmB;QAC9E,MAAMC,OAAON;QACb,MAAMO,eAAeX,kCAAkCU,KAAKA,IAAI;QAEhE,MAAME,SAA0B,EAAE;QAClC,MAAMC,UAAkC,CAAC;QACzC,IAAIC,QAAQL;QAEZ,KAAK,MAAMM,OAAOJ,aAAc;YAC9BC,OAAOI,IAAI,CAAC;gBACVV,MAAM;gBACNQ;gBACAG,MAAMF,IAAIG,IAAI,CAACD,IAAI;gBACnBE,SAASJ,IAAIG,IAAI;YACnB;YACAL,OAAO,CAACC,MAAM,GAAGC,IAAIG,IAAI,CAACD,IAAI;YAC9BH;QACF;QAEA,OAAO;YACLF;YACAC;YACAO,WAAWN;QACb;IACF;AACF"}
|
package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextChunkExpander.d.ts","sourceRoot":"","sources":["../../../../../../src/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,4CAA4C;IAC5C,UAAU,EAAE,SAAS,EAAE,CAAA;IACvB,wDAAwD;IACxD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAChC,CAAA;AAED;;;GAGG;AACH,qBAAa,iBAAiB;IAChB,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,YAAY,EAAE;IAEtD;;OAEG;IACH,MAAM,CAAC,WAAW,EAAE,UAAU,EAAE,GAAG,mBAAmB;CAqBvD"}
|
package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.ts"],"sourcesContent":["import type { FieldChunk, TextChunk } from '../../types'\nimport type { TextExpander } from './TextExpander.interface'\n\n/**\n * Result of text chunk expansion.\n */\nexport type TextExpansionResult = {\n /** All text chunks ready for translation */\n textChunks: TextChunk[]\n /** Map of index -> original text for translation API */\n textMap: Record<number, string>\n}\n\n/**\n * Expands FieldChunks into TextChunks.\n * This is where schema dependency ends - TextChunks contain only data references.\n */\nexport class TextChunkExpander {\n constructor(private readonly expanders: TextExpander[]) {}\n\n /**\n * Expands all FieldChunks into TextChunks.\n */\n expand(fieldChunks: FieldChunk[]): TextExpansionResult {\n const textChunks: TextChunk[] = []\n const textMap: Record<number, string> = {}\n let currentIndex = 0\n\n for (const fieldChunk of fieldChunks) {\n const value = fieldChunk.dataRef[fieldChunk.key]\n\n for (const expander of this.expanders) {\n if (expander.canExpand(fieldChunk, value)) {\n const result = expander.expand(fieldChunk, value, currentIndex)\n textChunks.push(...result.chunks)\n Object.assign(textMap, result.textMap)\n currentIndex = result.nextIndex\n break\n }\n }\n }\n\n return { textChunks, textMap }\n }\n}\n"],"names":["TextChunkExpander","expanders","expand","fieldChunks","textChunks","textMap","currentIndex","fieldChunk","value","dataRef","key","expander","canExpand","result","push","chunks","Object","assign","nextIndex"],"mappings":"AAaA;;;CAGC,GACD,OAAO,MAAMA;;IACX,YAAY,AAAiBC,SAAyB,CAAE;aAA3BA,YAAAA;IAA4B;IAEzD;;GAEC,GACDC,OAAOC,WAAyB,EAAuB;QACrD,MAAMC,aAA0B,EAAE;QAClC,MAAMC,UAAkC,CAAC;QACzC,IAAIC,eAAe;QAEnB,KAAK,MAAMC,cAAcJ,YAAa;YACpC,MAAMK,QAAQD,WAAWE,OAAO,CAACF,WAAWG,GAAG,CAAC;YAEhD,KAAK,MAAMC,YAAY,IAAI,CAACV,SAAS,CAAE;gBACrC,IAAIU,SAASC,SAAS,CAACL,YAAYC,QAAQ;oBACzC,MAAMK,SAASF,SAAST,MAAM,CAACK,YAAYC,OAAOF;oBAClDF,WAAWU,IAAI,IAAID,OAAOE,MAAM;oBAChCC,OAAOC,MAAM,CAACZ,SAASQ,OAAOR,OAAO;oBACrCC,eAAeO,OAAOK,SAAS;oBAC/B;gBACF;YACF;QACF;QAEA,OAAO;YAAEd;YAAYC;QAAQ;IAC/B;AACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextChunkExpander.stage.d.ts","sourceRoot":"","sources":["../../../../../../src/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.stage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAO5D;;GAEG;AACH,qBAAa,sBAAuB,YAAW,aAAa;IAC9C,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,GAAE,YAAY,EAAqB;IAEzE,OAAO,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe;CAc/C"}
|
package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.stage.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.stage.ts"],"sourcesContent":["import type { PipelineContext, PipelineStage } from '../../types'\nimport type { TextExpander } from './TextExpander.interface'\nimport { TextChunkExpander } from './TextChunkExpander'\nimport { RichTextExpander } from './RichTextExpander'\nimport { PlainTextExpander } from './PlainTextExpander'\n\nconst defaultExpanders: TextExpander[] = [new RichTextExpander(), new PlainTextExpander()]\n\n/**\n * Expands FieldChunks to TextChunks (schema-free).\n */\nexport class TextChunkExpanderStage implements PipelineStage {\n constructor(private readonly expanders: TextExpander[] = defaultExpanders) {}\n\n execute(ctx: PipelineContext): PipelineContext {\n if (!ctx.fieldChunks) {\n throw new Error('TextChunkExpanderStage requires fieldChunks from previous stage')\n }\n\n const expander = new TextChunkExpander(this.expanders)\n const { textChunks, textMap } = expander.expand(ctx.fieldChunks)\n\n return {\n ...ctx,\n textChunks,\n textMap,\n }\n }\n}\n"],"names":["TextChunkExpander","RichTextExpander","PlainTextExpander","defaultExpanders","TextChunkExpanderStage","expanders","execute","ctx","fieldChunks","Error","expander","textChunks","textMap","expand"],"mappings":"AAEA,SAASA,iBAAiB,QAAQ,sBAAqB;AACvD,SAASC,gBAAgB,QAAQ,qBAAoB;AACrD,SAASC,iBAAiB,QAAQ,sBAAqB;AAEvD,MAAMC,mBAAmC;IAAC,IAAIF;IAAoB,IAAIC;CAAoB;AAE1F;;CAEC,GACD,OAAO,MAAME;;IACX,YAAY,AAAiBC,YAA4BF,gBAAgB,CAAE;aAA9CE,YAAAA;IAA+C;IAE5EC,QAAQC,GAAoB,EAAmB;QAC7C,IAAI,CAACA,IAAIC,WAAW,EAAE;YACpB,MAAM,IAAIC,MAAM;QAClB;QAEA,MAAMC,WAAW,IAAIV,kBAAkB,IAAI,CAACK,SAAS;QACrD,MAAM,EAAEM,UAAU,EAAEC,OAAO,EAAE,GAAGF,SAASG,MAAM,CAACN,IAAIC,WAAW;QAE/D,OAAO;YACL,GAAGD,GAAG;YACNI;YACAC;QACF;IACF;AACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextChunkExpander.test.d.ts","sourceRoot":"","sources":["../../../../../../src/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.test.ts"],"names":[],"mappings":""}
|
package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.test.js
DELETED
|
@@ -1,396 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect } from 'vitest';
|
|
2
|
-
import { TextChunkExpander } from './TextChunkExpander';
|
|
3
|
-
import { PlainTextExpander } from './PlainTextExpander';
|
|
4
|
-
import { RichTextExpander } from './RichTextExpander';
|
|
5
|
-
const createFieldChunk = (name, type, value, overrides = {}) => {
|
|
6
|
-
const data = { [name]: value };
|
|
7
|
-
return {
|
|
8
|
-
chunk: {
|
|
9
|
-
schema: { name, type, ...overrides },
|
|
10
|
-
dataRef: data,
|
|
11
|
-
key: name,
|
|
12
|
-
path: [name],
|
|
13
|
-
},
|
|
14
|
-
data,
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
describe('PlainTextExpander', () => {
|
|
18
|
-
const expander = new PlainTextExpander();
|
|
19
|
-
describe('canExpand', () => {
|
|
20
|
-
it('returns true for non-empty string', () => {
|
|
21
|
-
const { chunk } = createFieldChunk('title', 'text', 'Hello');
|
|
22
|
-
expect(expander.canExpand(chunk, 'Hello')).toBe(true);
|
|
23
|
-
});
|
|
24
|
-
it('returns false for empty string', () => {
|
|
25
|
-
const { chunk } = createFieldChunk('title', 'text', '');
|
|
26
|
-
expect(expander.canExpand(chunk, '')).toBe(false);
|
|
27
|
-
});
|
|
28
|
-
it('returns false for whitespace-only string', () => {
|
|
29
|
-
const { chunk } = createFieldChunk('title', 'text', ' ');
|
|
30
|
-
expect(expander.canExpand(chunk, ' ')).toBe(false);
|
|
31
|
-
});
|
|
32
|
-
it('returns false for non-string values', () => {
|
|
33
|
-
const { chunk } = createFieldChunk('title', 'text', 123);
|
|
34
|
-
expect(expander.canExpand(chunk, 123)).toBe(false);
|
|
35
|
-
expect(expander.canExpand(chunk, null)).toBe(false);
|
|
36
|
-
expect(expander.canExpand(chunk, {})).toBe(false);
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
describe('expand', () => {
|
|
40
|
-
it('creates PlainTextChunk with correct structure', () => {
|
|
41
|
-
const { chunk, data } = createFieldChunk('title', 'text', 'Hello');
|
|
42
|
-
const result = expander.expand(chunk, 'Hello', 0);
|
|
43
|
-
expect(result.chunks).toHaveLength(1);
|
|
44
|
-
expect(result.chunks[0]).toEqual({
|
|
45
|
-
type: 'plain',
|
|
46
|
-
index: 0,
|
|
47
|
-
text: 'Hello',
|
|
48
|
-
dataRef: data,
|
|
49
|
-
key: 'title',
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
it('populates textMap correctly', () => {
|
|
53
|
-
const { chunk } = createFieldChunk('title', 'text', 'Hello');
|
|
54
|
-
const result = expander.expand(chunk, 'Hello', 5);
|
|
55
|
-
expect(result.textMap).toEqual({ 5: 'Hello' });
|
|
56
|
-
});
|
|
57
|
-
it('increments nextIndex', () => {
|
|
58
|
-
const { chunk } = createFieldChunk('title', 'text', 'Hello');
|
|
59
|
-
const result = expander.expand(chunk, 'Hello', 3);
|
|
60
|
-
expect(result.nextIndex).toBe(4);
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
// Helper for creating Lexical nodes
|
|
65
|
-
const createNode = (type, props, children) => ({ type, ...props, ...(children && { children }) });
|
|
66
|
-
const wrapInRoot = (children) => ({ root: createNode('root', {}, children) });
|
|
67
|
-
describe('RichTextExpander', () => {
|
|
68
|
-
const expander = new RichTextExpander();
|
|
69
|
-
const createLexicalRoot = (textNodes) => ({
|
|
70
|
-
root: {
|
|
71
|
-
type: 'root',
|
|
72
|
-
children: textNodes.map((text) => ({
|
|
73
|
-
type: 'paragraph',
|
|
74
|
-
children: [{ type: 'text', text, version: 1 }],
|
|
75
|
-
direction: 'ltr',
|
|
76
|
-
format: '',
|
|
77
|
-
indent: 0,
|
|
78
|
-
version: 1,
|
|
79
|
-
})),
|
|
80
|
-
direction: 'ltr',
|
|
81
|
-
format: '',
|
|
82
|
-
indent: 0,
|
|
83
|
-
version: 1,
|
|
84
|
-
},
|
|
85
|
-
});
|
|
86
|
-
describe('canExpand', () => {
|
|
87
|
-
it('returns true for richText field with Lexical root', () => {
|
|
88
|
-
const { chunk } = createFieldChunk('content', 'richText', createLexicalRoot(['Hello']));
|
|
89
|
-
expect(expander.canExpand(chunk, createLexicalRoot(['Hello']))).toBe(true);
|
|
90
|
-
});
|
|
91
|
-
it('returns false for non-richText field type', () => {
|
|
92
|
-
const { chunk } = createFieldChunk('content', 'text', createLexicalRoot(['Hello']));
|
|
93
|
-
expect(expander.canExpand(chunk, createLexicalRoot(['Hello']))).toBe(false);
|
|
94
|
-
});
|
|
95
|
-
it('returns false for non-Lexical value', () => {
|
|
96
|
-
const { chunk } = createFieldChunk('content', 'richText', 'plain string');
|
|
97
|
-
expect(expander.canExpand(chunk, 'plain string')).toBe(false);
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
describe('expand', () => {
|
|
101
|
-
it('creates RichTextChunk for each text node', () => {
|
|
102
|
-
const value = createLexicalRoot(['Hello', 'World']);
|
|
103
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
104
|
-
const result = expander.expand(chunk, value, 0);
|
|
105
|
-
expect(result.chunks).toHaveLength(2);
|
|
106
|
-
expect(result.chunks[0].type).toBe('richText');
|
|
107
|
-
expect(result.chunks[0].text).toBe('Hello');
|
|
108
|
-
expect(result.chunks[1].text).toBe('World');
|
|
109
|
-
});
|
|
110
|
-
it('assigns sequential indices', () => {
|
|
111
|
-
const value = createLexicalRoot(['Hello', 'World']);
|
|
112
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
113
|
-
const result = expander.expand(chunk, value, 10);
|
|
114
|
-
expect(result.chunks[0].index).toBe(10);
|
|
115
|
-
expect(result.chunks[1].index).toBe(11);
|
|
116
|
-
expect(result.nextIndex).toBe(12);
|
|
117
|
-
});
|
|
118
|
-
it('populates textMap correctly', () => {
|
|
119
|
-
const value = createLexicalRoot(['Hello', 'World']);
|
|
120
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
121
|
-
const result = expander.expand(chunk, value, 0);
|
|
122
|
-
expect(result.textMap).toEqual({ 0: 'Hello', 1: 'World' });
|
|
123
|
-
});
|
|
124
|
-
it('stores nodeRef for mutation', () => {
|
|
125
|
-
const value = createLexicalRoot(['Hello']);
|
|
126
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
127
|
-
const result = expander.expand(chunk, value, 0);
|
|
128
|
-
const richTextChunk = result.chunks[0];
|
|
129
|
-
// Mutate through nodeRef
|
|
130
|
-
if ('nodeRef' in richTextChunk) {
|
|
131
|
-
richTextChunk.nodeRef.text = 'Modified';
|
|
132
|
-
}
|
|
133
|
-
// Check mutation affected original value
|
|
134
|
-
expect(value.root.children[0].children[0].text).toBe('Modified');
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
describe('complex structures', () => {
|
|
138
|
-
it('expands heading with text', () => {
|
|
139
|
-
const value = wrapInRoot([createNode('heading', { tag: 'h1' }, [createNode('text', { text: 'Title' })])]);
|
|
140
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
141
|
-
const result = expander.expand(chunk, value, 0);
|
|
142
|
-
expect(result.chunks).toHaveLength(1);
|
|
143
|
-
expect(result.chunks[0].text).toBe('Title');
|
|
144
|
-
});
|
|
145
|
-
it('expands list with multiple items', () => {
|
|
146
|
-
const value = wrapInRoot([
|
|
147
|
-
createNode('list', { listType: 'bullet' }, [
|
|
148
|
-
createNode('listitem', {}, [createNode('text', { text: 'Item 1' })]),
|
|
149
|
-
createNode('listitem', {}, [createNode('text', { text: 'Item 2' })]),
|
|
150
|
-
createNode('listitem', {}, [createNode('text', { text: 'Item 3' })]),
|
|
151
|
-
]),
|
|
152
|
-
]);
|
|
153
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
154
|
-
const result = expander.expand(chunk, value, 0);
|
|
155
|
-
expect(result.chunks).toHaveLength(3);
|
|
156
|
-
expect(result.textMap).toEqual({ 0: 'Item 1', 1: 'Item 2', 2: 'Item 3' });
|
|
157
|
-
});
|
|
158
|
-
it('expands link with text inside', () => {
|
|
159
|
-
const value = wrapInRoot([
|
|
160
|
-
createNode('paragraph', {}, [
|
|
161
|
-
createNode('text', { text: 'Click ' }),
|
|
162
|
-
createNode('link', { url: 'https://example.com' }, [createNode('text', { text: 'here' })]),
|
|
163
|
-
createNode('text', { text: ' to continue' }),
|
|
164
|
-
]),
|
|
165
|
-
]);
|
|
166
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
167
|
-
const result = expander.expand(chunk, value, 0);
|
|
168
|
-
expect(result.chunks).toHaveLength(3);
|
|
169
|
-
expect(result.chunks[0].text).toBe('Click ');
|
|
170
|
-
expect(result.chunks[1].text).toBe('here');
|
|
171
|
-
expect(result.chunks[2].text).toBe(' to continue');
|
|
172
|
-
});
|
|
173
|
-
it('expands quote with nested paragraph', () => {
|
|
174
|
-
const value = wrapInRoot([
|
|
175
|
-
createNode('quote', {}, [createNode('paragraph', {}, [createNode('text', { text: 'Famous quote' })])]),
|
|
176
|
-
]);
|
|
177
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
178
|
-
const result = expander.expand(chunk, value, 0);
|
|
179
|
-
expect(result.chunks).toHaveLength(1);
|
|
180
|
-
expect(result.chunks[0].text).toBe('Famous quote');
|
|
181
|
-
});
|
|
182
|
-
it('expands paragraph with multiple formatted text nodes', () => {
|
|
183
|
-
const value = wrapInRoot([
|
|
184
|
-
createNode('paragraph', {}, [
|
|
185
|
-
createNode('text', { text: 'Normal ' }),
|
|
186
|
-
createNode('text', { text: 'bold', format: 1 }),
|
|
187
|
-
createNode('text', { text: ' and ' }),
|
|
188
|
-
createNode('text', { text: 'italic', format: 2 }),
|
|
189
|
-
]),
|
|
190
|
-
]);
|
|
191
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
192
|
-
const result = expander.expand(chunk, value, 0);
|
|
193
|
-
expect(result.chunks).toHaveLength(4);
|
|
194
|
-
expect(result.textMap).toEqual({
|
|
195
|
-
0: 'Normal ',
|
|
196
|
-
1: 'bold',
|
|
197
|
-
2: ' and ',
|
|
198
|
-
3: 'italic',
|
|
199
|
-
});
|
|
200
|
-
});
|
|
201
|
-
it('expands nested list inside list item', () => {
|
|
202
|
-
const value = wrapInRoot([
|
|
203
|
-
createNode('list', { listType: 'number' }, [
|
|
204
|
-
createNode('listitem', {}, [
|
|
205
|
-
createNode('text', { text: 'Parent item' }),
|
|
206
|
-
createNode('list', { listType: 'bullet' }, [
|
|
207
|
-
createNode('listitem', {}, [createNode('text', { text: 'Nested 1' })]),
|
|
208
|
-
createNode('listitem', {}, [createNode('text', { text: 'Nested 2' })]),
|
|
209
|
-
]),
|
|
210
|
-
]),
|
|
211
|
-
]),
|
|
212
|
-
]);
|
|
213
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
214
|
-
const result = expander.expand(chunk, value, 0);
|
|
215
|
-
expect(result.chunks).toHaveLength(3);
|
|
216
|
-
expect(result.textMap).toEqual({
|
|
217
|
-
0: 'Parent item',
|
|
218
|
-
1: 'Nested 1',
|
|
219
|
-
2: 'Nested 2',
|
|
220
|
-
});
|
|
221
|
-
});
|
|
222
|
-
it('preserves nodeRef for mutation in complex structure', () => {
|
|
223
|
-
const textNode = createNode('text', { text: 'Original' });
|
|
224
|
-
const value = wrapInRoot([createNode('list', {}, [createNode('listitem', {}, [textNode])])]);
|
|
225
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
226
|
-
const result = expander.expand(chunk, value, 0);
|
|
227
|
-
// Mutate through nodeRef
|
|
228
|
-
if ('nodeRef' in result.chunks[0]) {
|
|
229
|
-
result.chunks[0].nodeRef.text = 'Translated';
|
|
230
|
-
}
|
|
231
|
-
expect(textNode.text).toBe('Translated');
|
|
232
|
-
});
|
|
233
|
-
it('expands mixed content (heading + paragraphs + list)', () => {
|
|
234
|
-
const value = wrapInRoot([
|
|
235
|
-
createNode('heading', { tag: 'h1' }, [createNode('text', { text: 'Title' })]),
|
|
236
|
-
createNode('paragraph', {}, [createNode('text', { text: 'Introduction text.' })]),
|
|
237
|
-
createNode('list', { listType: 'bullet' }, [
|
|
238
|
-
createNode('listitem', {}, [createNode('text', { text: 'Point one' })]),
|
|
239
|
-
createNode('listitem', {}, [createNode('text', { text: 'Point two' })]),
|
|
240
|
-
]),
|
|
241
|
-
createNode('paragraph', {}, [createNode('text', { text: 'Conclusion.' })]),
|
|
242
|
-
]);
|
|
243
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
244
|
-
const result = expander.expand(chunk, value, 0);
|
|
245
|
-
expect(result.chunks).toHaveLength(5);
|
|
246
|
-
expect(result.textMap).toEqual({
|
|
247
|
-
0: 'Title',
|
|
248
|
-
1: 'Introduction text.',
|
|
249
|
-
2: 'Point one',
|
|
250
|
-
3: 'Point two',
|
|
251
|
-
4: 'Conclusion.',
|
|
252
|
-
});
|
|
253
|
-
});
|
|
254
|
-
});
|
|
255
|
-
describe('skips non-text nodes', () => {
|
|
256
|
-
it('skips upload/image nodes', () => {
|
|
257
|
-
const value = wrapInRoot([
|
|
258
|
-
createNode('paragraph', {}, [createNode('text', { text: 'Before image' })]),
|
|
259
|
-
createNode('upload', { relationTo: 'media', value: { id: '123' } }),
|
|
260
|
-
createNode('paragraph', {}, [createNode('text', { text: 'After image' })]),
|
|
261
|
-
]);
|
|
262
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
263
|
-
const result = expander.expand(chunk, value, 0);
|
|
264
|
-
expect(result.chunks).toHaveLength(2);
|
|
265
|
-
expect(result.textMap).toEqual({ 0: 'Before image', 1: 'After image' });
|
|
266
|
-
});
|
|
267
|
-
it('skips linebreak nodes', () => {
|
|
268
|
-
const value = wrapInRoot([
|
|
269
|
-
createNode('paragraph', {}, [
|
|
270
|
-
createNode('text', { text: 'Line one' }),
|
|
271
|
-
createNode('linebreak', {}),
|
|
272
|
-
createNode('text', { text: 'Line two' }),
|
|
273
|
-
]),
|
|
274
|
-
]);
|
|
275
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
276
|
-
const result = expander.expand(chunk, value, 0);
|
|
277
|
-
expect(result.chunks).toHaveLength(2);
|
|
278
|
-
expect(result.textMap).toEqual({ 0: 'Line one', 1: 'Line two' });
|
|
279
|
-
});
|
|
280
|
-
it('skips horizontalrule nodes', () => {
|
|
281
|
-
const value = wrapInRoot([
|
|
282
|
-
createNode('paragraph', {}, [createNode('text', { text: 'Above' })]),
|
|
283
|
-
createNode('horizontalrule', {}),
|
|
284
|
-
createNode('paragraph', {}, [createNode('text', { text: 'Below' })]),
|
|
285
|
-
]);
|
|
286
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
287
|
-
const result = expander.expand(chunk, value, 0);
|
|
288
|
-
expect(result.chunks).toHaveLength(2);
|
|
289
|
-
expect(result.textMap).toEqual({ 0: 'Above', 1: 'Below' });
|
|
290
|
-
});
|
|
291
|
-
it('skips relationship/block nodes', () => {
|
|
292
|
-
const value = wrapInRoot([
|
|
293
|
-
createNode('paragraph', {}, [createNode('text', { text: 'Text content' })]),
|
|
294
|
-
createNode('relationship', { relationTo: 'posts', value: { id: '456' } }),
|
|
295
|
-
createNode('block', { fields: { blockType: 'cta' } }),
|
|
296
|
-
]);
|
|
297
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
298
|
-
const result = expander.expand(chunk, value, 0);
|
|
299
|
-
expect(result.chunks).toHaveLength(1);
|
|
300
|
-
expect(result.chunks[0].text).toBe('Text content');
|
|
301
|
-
});
|
|
302
|
-
it('only collects text nodes from mixed content', () => {
|
|
303
|
-
const value = wrapInRoot([
|
|
304
|
-
createNode('heading', { tag: 'h1' }, [createNode('text', { text: 'Title' })]),
|
|
305
|
-
createNode('upload', { relationTo: 'media' }),
|
|
306
|
-
createNode('paragraph', {}, [
|
|
307
|
-
createNode('text', { text: 'Some ' }),
|
|
308
|
-
createNode('linebreak', {}),
|
|
309
|
-
createNode('text', { text: 'text' }),
|
|
310
|
-
]),
|
|
311
|
-
createNode('horizontalrule', {}),
|
|
312
|
-
createNode('list', {}, [createNode('listitem', {}, [createNode('text', { text: 'Item' })])]),
|
|
313
|
-
createNode('relationship', { relationTo: 'pages' }),
|
|
314
|
-
]);
|
|
315
|
-
const { chunk } = createFieldChunk('content', 'richText', value);
|
|
316
|
-
const result = expander.expand(chunk, value, 0);
|
|
317
|
-
expect(result.chunks).toHaveLength(4);
|
|
318
|
-
expect(result.textMap).toEqual({
|
|
319
|
-
0: 'Title',
|
|
320
|
-
1: 'Some ',
|
|
321
|
-
2: 'text',
|
|
322
|
-
3: 'Item',
|
|
323
|
-
});
|
|
324
|
-
});
|
|
325
|
-
});
|
|
326
|
-
});
|
|
327
|
-
describe('TextChunkExpander', () => {
|
|
328
|
-
const defaultExpanders = [new RichTextExpander(), new PlainTextExpander()];
|
|
329
|
-
describe('expand', () => {
|
|
330
|
-
it('expands multiple field chunks', () => {
|
|
331
|
-
const data1 = { title: 'Hello' };
|
|
332
|
-
const data2 = { description: 'World' };
|
|
333
|
-
const chunks = [
|
|
334
|
-
{ schema: { name: 'title', type: 'text' }, dataRef: data1, key: 'title', path: ['title'] },
|
|
335
|
-
{
|
|
336
|
-
schema: { name: 'description', type: 'text' },
|
|
337
|
-
dataRef: data2,
|
|
338
|
-
key: 'description',
|
|
339
|
-
path: ['description'],
|
|
340
|
-
},
|
|
341
|
-
];
|
|
342
|
-
const expander = new TextChunkExpander(defaultExpanders);
|
|
343
|
-
const result = expander.expand(chunks);
|
|
344
|
-
expect(result.textChunks).toHaveLength(2);
|
|
345
|
-
expect(result.textMap).toEqual({ 0: 'Hello', 1: 'World' });
|
|
346
|
-
});
|
|
347
|
-
it('assigns unique indices across all chunks', () => {
|
|
348
|
-
const richTextValue = {
|
|
349
|
-
root: {
|
|
350
|
-
type: 'root',
|
|
351
|
-
children: [
|
|
352
|
-
{ type: 'paragraph', children: [{ type: 'text', text: 'First', version: 1 }], version: 1 },
|
|
353
|
-
{ type: 'paragraph', children: [{ type: 'text', text: 'Second', version: 1 }], version: 1 },
|
|
354
|
-
],
|
|
355
|
-
version: 1,
|
|
356
|
-
},
|
|
357
|
-
};
|
|
358
|
-
const data1 = { content: richTextValue };
|
|
359
|
-
const data2 = { title: 'Third' };
|
|
360
|
-
const chunks = [
|
|
361
|
-
{ schema: { name: 'content', type: 'richText' }, dataRef: data1, key: 'content', path: ['content'] },
|
|
362
|
-
{ schema: { name: 'title', type: 'text' }, dataRef: data2, key: 'title', path: ['title'] },
|
|
363
|
-
];
|
|
364
|
-
const expander = new TextChunkExpander(defaultExpanders);
|
|
365
|
-
const result = expander.expand(chunks);
|
|
366
|
-
expect(result.textChunks).toHaveLength(3);
|
|
367
|
-
expect(result.textMap).toEqual({ 0: 'First', 1: 'Second', 2: 'Third' });
|
|
368
|
-
});
|
|
369
|
-
it('uses first matching expander', () => {
|
|
370
|
-
const data = { title: 'Hello' };
|
|
371
|
-
const chunks = [
|
|
372
|
-
{ schema: { name: 'title', type: 'text' }, dataRef: data, key: 'title', path: ['title'] },
|
|
373
|
-
];
|
|
374
|
-
// RichTextExpander won't match, PlainTextExpander will
|
|
375
|
-
const expander = new TextChunkExpander(defaultExpanders);
|
|
376
|
-
const result = expander.expand(chunks);
|
|
377
|
-
expect(result.textChunks[0].type).toBe('plain');
|
|
378
|
-
});
|
|
379
|
-
it('skips chunks with no matching expander', () => {
|
|
380
|
-
const data = { title: 123 }; // number, no expander matches
|
|
381
|
-
const chunks = [
|
|
382
|
-
{ schema: { name: 'title', type: 'text' }, dataRef: data, key: 'title', path: ['title'] },
|
|
383
|
-
];
|
|
384
|
-
const expander = new TextChunkExpander(defaultExpanders);
|
|
385
|
-
const result = expander.expand(chunks);
|
|
386
|
-
expect(result.textChunks).toHaveLength(0);
|
|
387
|
-
expect(result.textMap).toEqual({});
|
|
388
|
-
});
|
|
389
|
-
it('returns empty result for empty input', () => {
|
|
390
|
-
const expander = new TextChunkExpander(defaultExpanders);
|
|
391
|
-
const result = expander.expand([]);
|
|
392
|
-
expect(result.textChunks).toEqual([]);
|
|
393
|
-
expect(result.textMap).toEqual({});
|
|
394
|
-
});
|
|
395
|
-
});
|
|
396
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextExpander.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/server/modules/translation-pipeline/stages/text-expander/TextExpander.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAExD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,2BAA2B;IAC3B,MAAM,EAAE,SAAS,EAAE,CAAA;IACnB,+CAA+C;IAC/C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,SAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAA;IAErD;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,eAAe,CAAA;CAC/E"}
|
package/dist/server/modules/translation-pipeline/stages/text-expander/TextExpander.interface.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/server/modules/translation-pipeline/stages/text-expander/TextExpander.interface.ts"],"sourcesContent":["import type { FieldChunk, TextChunk } from '../../types'\n\n/**\n * Result of text expansion for a single FieldChunk.\n */\nexport type ExpansionResult = {\n /** Generated TextChunks */\n chunks: TextChunk[]\n /** Map of index -> text for translation API */\n textMap: Record<number, string>\n /** Next available index */\n nextIndex: number\n}\n\n/**\n * Interface for text expanders.\n * Each expander handles a specific type of field (plain text, richText).\n */\nexport interface TextExpander {\n /**\n * Checks if this expander can handle the given field chunk.\n */\n canExpand(chunk: FieldChunk, value: unknown): boolean\n\n /**\n * Expands a FieldChunk into one or more TextChunks.\n */\n expand(chunk: FieldChunk, value: unknown, startIndex: number): ExpansionResult\n}\n"],"names":[],"mappings":"AAcA;;;CAGC,GACD,WAUC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/server/modules/translation-pipeline/stages/text-expander/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/server/modules/translation-pipeline/stages/text-expander/index.ts"],"sourcesContent":["export { TextChunkExpander } from './TextChunkExpander'\nexport type { TextExpansionResult } from './TextChunkExpander'\nexport type { TextExpander, ExpansionResult } from './TextExpander.interface'\nexport { PlainTextExpander } from './PlainTextExpander'\nexport { RichTextExpander } from './RichTextExpander'\nexport { TextChunkExpanderStage } from './TextChunkExpander.stage'\n"],"names":["TextChunkExpander","PlainTextExpander","RichTextExpander","TextChunkExpanderStage"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,sBAAqB;AAGvD,SAASC,iBAAiB,QAAQ,sBAAqB;AACvD,SAASC,gBAAgB,QAAQ,qBAAoB;AACrD,SAASC,sBAAsB,QAAQ,4BAA2B"}
|
package/dist/server/modules/translation-pipeline/stages/translation/Translation.stage.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Translation.stage.d.ts","sourceRoot":"","sources":["../../../../../../src/server/modules/translation-pipeline/stages/translation/Translation.stage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAEzE;;GAEG;AACH,qBAAa,gBAAiB,YAAW,aAAa;IACxC,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,mBAAmB;IAEpD,OAAO,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;CAgB9D"}
|
package/dist/server/modules/translation-pipeline/stages/translation/Translation.stage.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/server/modules/translation-pipeline/stages/translation/Translation.stage.ts"],"sourcesContent":["import type { PipelineContext, PipelineStage } from '../../types'\nimport type { TranslationProvider } from '../../../translation-providers'\n\n/**\n * Calls translation provider to translate text.\n */\nexport class TranslationStage implements PipelineStage {\n constructor(private readonly provider: TranslationProvider) {}\n\n async execute(ctx: PipelineContext): Promise<PipelineContext> {\n if (!ctx.textMap || Object.keys(ctx.textMap).length === 0) {\n return ctx\n }\n\n const translations = await this.provider.translate(ctx.textMap, ctx.sourceLng, ctx.targetLng)\n\n if (!translations) {\n throw new Error('Translation provider returned null')\n }\n\n return {\n ...ctx,\n translations,\n }\n }\n}\n"],"names":["TranslationStage","provider","execute","ctx","textMap","Object","keys","length","translations","translate","sourceLng","targetLng","Error"],"mappings":"AAGA;;CAEC,GACD,OAAO,MAAMA;;IACX,YAAY,AAAiBC,QAA6B,CAAE;aAA/BA,WAAAA;IAAgC;IAE7D,MAAMC,QAAQC,GAAoB,EAA4B;QAC5D,IAAI,CAACA,IAAIC,OAAO,IAAIC,OAAOC,IAAI,CAACH,IAAIC,OAAO,EAAEG,MAAM,KAAK,GAAG;YACzD,OAAOJ;QACT;QAEA,MAAMK,eAAe,MAAM,IAAI,CAACP,QAAQ,CAACQ,SAAS,CAACN,IAAIC,OAAO,EAAED,IAAIO,SAAS,EAAEP,IAAIQ,SAAS;QAE5F,IAAI,CAACH,cAAc;YACjB,MAAM,IAAII,MAAM;QAClB;QAEA,OAAO;YACL,GAAGT,GAAG;YACNK;QACF;IACF;AACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/server/modules/translation-pipeline/stages/translation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/server/modules/translation-pipeline/stages/translation/index.ts"],"sourcesContent":["export { TranslationStage } from './Translation.stage'\n"],"names":["TranslationStage"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,sBAAqB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TranslationMutator.d.ts","sourceRoot":"","sources":["../../../../../../src/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAG5C;;;;;GAKG;AACH,qBAAa,kBAAkB;IAC7B;;;;;;OAMG;IACH,KAAK,CAAC,UAAU,EAAE,SAAS,EAAE,EAAE,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;CAY3E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.ts"],"sourcesContent":["import type { TextChunk } from '../../types'\nimport { isPlainTextChunk, isRichTextChunk } from '../../types'\n\n/**\n * Applies translations by mutating data through TextChunk references.\n * This is the simplest stage - just direct mutation.\n *\n * Stage 5 of the translation pipeline.\n */\nexport class TranslationMutator {\n /**\n * Applies translations to source data via TextChunk references.\n *\n * @param textChunks - TextChunks with references to data\n * @param translations - Map of index -> translated text\n * @returns Mutation result with count of translated chunks\n */\n apply(textChunks: TextChunk[], translations: Record<number, string>): void {\n for (const chunk of textChunks) {\n const translation = translations[chunk.index]\n if (translation === undefined) continue\n\n if (isPlainTextChunk(chunk)) {\n chunk.dataRef[chunk.key] = translation\n } else if (isRichTextChunk(chunk)) {\n chunk.nodeRef.text = translation\n }\n }\n }\n}\n"],"names":["isPlainTextChunk","isRichTextChunk","TranslationMutator","apply","textChunks","translations","chunk","translation","index","undefined","dataRef","key","nodeRef","text"],"mappings":"AACA,SAASA,gBAAgB,EAAEC,eAAe,QAAQ,cAAa;AAE/D;;;;;CAKC,GACD,OAAO,MAAMC;IACX;;;;;;GAMC,GACDC,MAAMC,UAAuB,EAAEC,YAAoC,EAAQ;QACzE,KAAK,MAAMC,SAASF,WAAY;YAC9B,MAAMG,cAAcF,YAAY,CAACC,MAAME,KAAK,CAAC;YAC7C,IAAID,gBAAgBE,WAAW;YAE/B,IAAIT,iBAAiBM,QAAQ;gBAC3BA,MAAMI,OAAO,CAACJ,MAAMK,GAAG,CAAC,GAAGJ;YAC7B,OAAO,IAAIN,gBAAgBK,QAAQ;gBACjCA,MAAMM,OAAO,CAACC,IAAI,GAAGN;YACvB;QACF;IACF;AACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TranslationMutator.stage.d.ts","sourceRoot":"","sources":["../../../../../../src/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAGjE;;GAEG;AACH,qBAAa,uBAAwB,YAAW,aAAa;IAC3D,OAAO,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe;CAU/C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.ts"],"sourcesContent":["import type { PipelineContext, PipelineStage } from '../../types'\nimport { TranslationMutator } from './TranslationMutator'\n\n/**\n * Applies translations to data via mutation.\n */\nexport class TranslationMutatorStage implements PipelineStage {\n execute(ctx: PipelineContext): PipelineContext {\n if (!ctx.textChunks || !ctx.translations) {\n throw new Error('TranslationMutatorStage requires textChunks and translations')\n }\n\n const mutator = new TranslationMutator()\n mutator.apply(ctx.textChunks, ctx.translations)\n\n return ctx\n }\n}\n"],"names":["TranslationMutator","TranslationMutatorStage","execute","ctx","textChunks","translations","Error","mutator","apply"],"mappings":"AACA,SAASA,kBAAkB,QAAQ,uBAAsB;AAEzD;;CAEC,GACD,OAAO,MAAMC;IACXC,QAAQC,GAAoB,EAAmB;QAC7C,IAAI,CAACA,IAAIC,UAAU,IAAI,CAACD,IAAIE,YAAY,EAAE;YACxC,MAAM,IAAIC,MAAM;QAClB;QAEA,MAAMC,UAAU,IAAIP;QACpBO,QAAQC,KAAK,CAACL,IAAIC,UAAU,EAAED,IAAIE,YAAY;QAE9C,OAAOF;IACT;AACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TranslationMutator.test.d.ts","sourceRoot":"","sources":["../../../../../../src/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.test.ts"],"names":[],"mappings":""}
|