@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
package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.test.js
DELETED
|
@@ -1,737 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect } from 'vitest';
|
|
2
|
-
import { FieldChunkCollector } from './FieldChunkCollector';
|
|
3
|
-
import { OverwriteStrategy } from '../../strategies/Overwrite.strategy';
|
|
4
|
-
import { SkipExistingStrategy } from '../../strategies/SkipExisting.strategy';
|
|
5
|
-
const strategy = new OverwriteStrategy();
|
|
6
|
-
const skipExistingStrategy = new SkipExistingStrategy();
|
|
7
|
-
describe('FieldChunkCollector', () => {
|
|
8
|
-
describe('simple fields', () => {
|
|
9
|
-
it('collects localized text fields', () => {
|
|
10
|
-
const schema = [{ name: 'title', type: 'text', localized: true }];
|
|
11
|
-
const data = { title: 'Hello' };
|
|
12
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
13
|
-
const chunks = collector.collect();
|
|
14
|
-
expect(chunks).toHaveLength(1);
|
|
15
|
-
expect(chunks[0].key).toBe('title');
|
|
16
|
-
expect(chunks[0].path).toEqual(['title']);
|
|
17
|
-
expect(chunks[0].dataRef).toBe(data);
|
|
18
|
-
expect(chunks[0].schema.type).toBe('text');
|
|
19
|
-
});
|
|
20
|
-
it('collects multiple localized fields', () => {
|
|
21
|
-
const schema = [
|
|
22
|
-
{ name: 'title', type: 'text', localized: true },
|
|
23
|
-
{ name: 'description', type: 'textarea', localized: true },
|
|
24
|
-
];
|
|
25
|
-
const data = { title: 'Hello', description: 'World' };
|
|
26
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
27
|
-
const chunks = collector.collect();
|
|
28
|
-
expect(chunks).toHaveLength(2);
|
|
29
|
-
expect(chunks.map((c) => c.key)).toEqual(['title', 'description']);
|
|
30
|
-
});
|
|
31
|
-
it('skips non-localized fields', () => {
|
|
32
|
-
const schema = [
|
|
33
|
-
{ name: 'title', type: 'text', localized: true },
|
|
34
|
-
{ name: 'slug', type: 'text', localized: false },
|
|
35
|
-
];
|
|
36
|
-
const data = { title: 'Hello', slug: 'hello' };
|
|
37
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
38
|
-
const chunks = collector.collect();
|
|
39
|
-
expect(chunks).toHaveLength(1);
|
|
40
|
-
expect(chunks[0].key).toBe('title');
|
|
41
|
-
});
|
|
42
|
-
it('skips non-translatable fields', () => {
|
|
43
|
-
const schema = [
|
|
44
|
-
{ name: 'title', type: 'text', localized: true },
|
|
45
|
-
{ name: 'author', type: 'relationship', relationTo: 'users', localized: true },
|
|
46
|
-
];
|
|
47
|
-
const data = { title: 'Hello', author: '123' };
|
|
48
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
49
|
-
const chunks = collector.collect();
|
|
50
|
-
expect(chunks).toHaveLength(1);
|
|
51
|
-
expect(chunks[0].key).toBe('title');
|
|
52
|
-
});
|
|
53
|
-
it('skips null and undefined values', () => {
|
|
54
|
-
const schema = [
|
|
55
|
-
{ name: 'title', type: 'text', localized: true },
|
|
56
|
-
{ name: 'subtitle', type: 'text', localized: true },
|
|
57
|
-
];
|
|
58
|
-
const data = { title: null, subtitle: undefined };
|
|
59
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
60
|
-
const chunks = collector.collect();
|
|
61
|
-
expect(chunks).toHaveLength(0);
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
describe('group fields', () => {
|
|
65
|
-
it('collects nested fields with correct path', () => {
|
|
66
|
-
const schema = [
|
|
67
|
-
{
|
|
68
|
-
name: 'meta',
|
|
69
|
-
type: 'group',
|
|
70
|
-
fields: [{ name: 'title', type: 'text', localized: true }],
|
|
71
|
-
},
|
|
72
|
-
];
|
|
73
|
-
const data = { meta: { title: 'Hello' } };
|
|
74
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
75
|
-
const chunks = collector.collect();
|
|
76
|
-
expect(chunks).toHaveLength(1);
|
|
77
|
-
expect(chunks[0].key).toBe('title');
|
|
78
|
-
expect(chunks[0].path).toEqual(['meta', 'title']);
|
|
79
|
-
expect(chunks[0].dataRef).toBe(data.meta);
|
|
80
|
-
});
|
|
81
|
-
it('collects deeply nested fields', () => {
|
|
82
|
-
const schema = [
|
|
83
|
-
{
|
|
84
|
-
name: 'level1',
|
|
85
|
-
type: 'group',
|
|
86
|
-
fields: [
|
|
87
|
-
{
|
|
88
|
-
name: 'level2',
|
|
89
|
-
type: 'group',
|
|
90
|
-
fields: [{ name: 'title', type: 'text', localized: true }],
|
|
91
|
-
},
|
|
92
|
-
],
|
|
93
|
-
},
|
|
94
|
-
];
|
|
95
|
-
const data = { level1: { level2: { title: 'Deep' } } };
|
|
96
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
97
|
-
const chunks = collector.collect();
|
|
98
|
-
expect(chunks).toHaveLength(1);
|
|
99
|
-
expect(chunks[0].path).toEqual(['level1', 'level2', 'title']);
|
|
100
|
-
expect(chunks[0].dataRef).toBe(data.level1.level2);
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
describe('array fields', () => {
|
|
104
|
-
it('collects fields from each array item', () => {
|
|
105
|
-
const schema = [
|
|
106
|
-
{
|
|
107
|
-
name: 'items',
|
|
108
|
-
type: 'array',
|
|
109
|
-
fields: [{ name: 'label', type: 'text', localized: true }],
|
|
110
|
-
},
|
|
111
|
-
];
|
|
112
|
-
const data = {
|
|
113
|
-
items: [
|
|
114
|
-
{ id: '1', label: 'First' },
|
|
115
|
-
{ id: '2', label: 'Second' },
|
|
116
|
-
],
|
|
117
|
-
};
|
|
118
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
119
|
-
const chunks = collector.collect();
|
|
120
|
-
expect(chunks).toHaveLength(2);
|
|
121
|
-
expect(chunks[0].path).toEqual(['items', '0', 'label']);
|
|
122
|
-
expect(chunks[1].path).toEqual(['items', '1', 'label']);
|
|
123
|
-
expect(chunks[0].dataRef).toBe(data.items[0]);
|
|
124
|
-
expect(chunks[1].dataRef).toBe(data.items[1]);
|
|
125
|
-
});
|
|
126
|
-
it('uses numeric index in path', () => {
|
|
127
|
-
const schema = [
|
|
128
|
-
{
|
|
129
|
-
name: 'items',
|
|
130
|
-
type: 'array',
|
|
131
|
-
fields: [{ name: 'text', type: 'text', localized: true }],
|
|
132
|
-
},
|
|
133
|
-
];
|
|
134
|
-
const data = { items: [{ id: '1', text: 'Hello' }] };
|
|
135
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
136
|
-
const chunks = collector.collect();
|
|
137
|
-
expect(chunks[0].path).toEqual(['items', '0', 'text']);
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
describe('blocks fields', () => {
|
|
141
|
-
it('collects fields from blocks with correct path', () => {
|
|
142
|
-
const schema = [
|
|
143
|
-
{
|
|
144
|
-
name: 'layout',
|
|
145
|
-
type: 'blocks',
|
|
146
|
-
blocks: [
|
|
147
|
-
{
|
|
148
|
-
slug: 'text',
|
|
149
|
-
fields: [{ name: 'content', type: 'text', localized: true }],
|
|
150
|
-
},
|
|
151
|
-
],
|
|
152
|
-
},
|
|
153
|
-
];
|
|
154
|
-
const data = {
|
|
155
|
-
layout: [{ id: '1', blockType: 'text', content: 'Hello' }],
|
|
156
|
-
};
|
|
157
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
158
|
-
const chunks = collector.collect();
|
|
159
|
-
expect(chunks).toHaveLength(1);
|
|
160
|
-
expect(chunks[0].path).toEqual(['layout', '0', 'content']);
|
|
161
|
-
expect(chunks[0].dataRef).toBe(data.layout[0]);
|
|
162
|
-
});
|
|
163
|
-
it('handles multiple block types', () => {
|
|
164
|
-
const schema = [
|
|
165
|
-
{
|
|
166
|
-
name: 'layout',
|
|
167
|
-
type: 'blocks',
|
|
168
|
-
blocks: [
|
|
169
|
-
{
|
|
170
|
-
slug: 'text',
|
|
171
|
-
fields: [{ name: 'content', type: 'text', localized: true }],
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
slug: 'heading',
|
|
175
|
-
fields: [{ name: 'title', type: 'text', localized: true }],
|
|
176
|
-
},
|
|
177
|
-
],
|
|
178
|
-
},
|
|
179
|
-
];
|
|
180
|
-
const data = {
|
|
181
|
-
layout: [
|
|
182
|
-
{ id: '1', blockType: 'text', content: 'Hello' },
|
|
183
|
-
{ id: '2', blockType: 'heading', title: 'Title' },
|
|
184
|
-
],
|
|
185
|
-
};
|
|
186
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
187
|
-
const chunks = collector.collect();
|
|
188
|
-
expect(chunks).toHaveLength(2);
|
|
189
|
-
expect(chunks[0].key).toBe('content');
|
|
190
|
-
expect(chunks[1].key).toBe('title');
|
|
191
|
-
});
|
|
192
|
-
it('skips unknown block types', () => {
|
|
193
|
-
const schema = [
|
|
194
|
-
{
|
|
195
|
-
name: 'layout',
|
|
196
|
-
type: 'blocks',
|
|
197
|
-
blocks: [
|
|
198
|
-
{
|
|
199
|
-
slug: 'text',
|
|
200
|
-
fields: [{ name: 'content', type: 'text', localized: true }],
|
|
201
|
-
},
|
|
202
|
-
],
|
|
203
|
-
},
|
|
204
|
-
];
|
|
205
|
-
const data = {
|
|
206
|
-
layout: [{ id: '1', blockType: 'unknown', content: 'Hello' }],
|
|
207
|
-
};
|
|
208
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
209
|
-
const chunks = collector.collect();
|
|
210
|
-
expect(chunks).toHaveLength(0);
|
|
211
|
-
});
|
|
212
|
-
});
|
|
213
|
-
describe('tabs and row fields', () => {
|
|
214
|
-
it('collects fields from tabs', () => {
|
|
215
|
-
const schema = [
|
|
216
|
-
{
|
|
217
|
-
type: 'tabs',
|
|
218
|
-
tabs: [
|
|
219
|
-
{
|
|
220
|
-
label: 'Content',
|
|
221
|
-
fields: [{ name: 'title', type: 'text', localized: true }],
|
|
222
|
-
},
|
|
223
|
-
],
|
|
224
|
-
},
|
|
225
|
-
];
|
|
226
|
-
const data = { title: 'Hello' };
|
|
227
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
228
|
-
const chunks = collector.collect();
|
|
229
|
-
expect(chunks).toHaveLength(1);
|
|
230
|
-
expect(chunks[0].path).toEqual(['title']);
|
|
231
|
-
});
|
|
232
|
-
it('collects fields from row', () => {
|
|
233
|
-
const schema = [
|
|
234
|
-
{
|
|
235
|
-
type: 'row',
|
|
236
|
-
fields: [{ name: 'title', type: 'text', localized: true }],
|
|
237
|
-
},
|
|
238
|
-
];
|
|
239
|
-
const data = { title: 'Hello' };
|
|
240
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
241
|
-
const chunks = collector.collect();
|
|
242
|
-
expect(chunks).toHaveLength(1);
|
|
243
|
-
expect(chunks[0].path).toEqual(['title']);
|
|
244
|
-
});
|
|
245
|
-
it('collects fields from unnamed group (no name property)', () => {
|
|
246
|
-
const schema = [
|
|
247
|
-
{
|
|
248
|
-
type: 'group',
|
|
249
|
-
fields: [
|
|
250
|
-
{ name: 'title', type: 'text', localized: true },
|
|
251
|
-
{ name: 'description', type: 'textarea', localized: true },
|
|
252
|
-
],
|
|
253
|
-
},
|
|
254
|
-
];
|
|
255
|
-
const data = { title: 'Hello', description: 'World' };
|
|
256
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
257
|
-
const chunks = collector.collect();
|
|
258
|
-
expect(chunks).toHaveLength(2);
|
|
259
|
-
expect(chunks[0].path).toEqual(['title']);
|
|
260
|
-
expect(chunks[1].path).toEqual(['description']);
|
|
261
|
-
expect(chunks[0].dataRef).toBe(data);
|
|
262
|
-
});
|
|
263
|
-
});
|
|
264
|
-
describe('complex nested structures', () => {
|
|
265
|
-
it('collects array fields inside group', () => {
|
|
266
|
-
const schema = [
|
|
267
|
-
{
|
|
268
|
-
name: 'section',
|
|
269
|
-
type: 'group',
|
|
270
|
-
fields: [
|
|
271
|
-
{
|
|
272
|
-
name: 'items',
|
|
273
|
-
type: 'array',
|
|
274
|
-
fields: [{ name: 'label', type: 'text', localized: true }],
|
|
275
|
-
},
|
|
276
|
-
],
|
|
277
|
-
},
|
|
278
|
-
];
|
|
279
|
-
const data = { section: { items: [{ id: '1', label: 'Hello' }] } };
|
|
280
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
281
|
-
const chunks = collector.collect();
|
|
282
|
-
expect(chunks).toHaveLength(1);
|
|
283
|
-
expect(chunks[0].key).toBe('label');
|
|
284
|
-
expect(chunks[0].path).toEqual(['section', 'items', '0', 'label']);
|
|
285
|
-
expect(chunks[0].dataRef).toBe(data.section.items[0]);
|
|
286
|
-
});
|
|
287
|
-
it('collects group fields inside array', () => {
|
|
288
|
-
const schema = [
|
|
289
|
-
{
|
|
290
|
-
name: 'items',
|
|
291
|
-
type: 'array',
|
|
292
|
-
fields: [
|
|
293
|
-
{
|
|
294
|
-
name: 'meta',
|
|
295
|
-
type: 'group',
|
|
296
|
-
fields: [{ name: 'title', type: 'text', localized: true }],
|
|
297
|
-
},
|
|
298
|
-
],
|
|
299
|
-
},
|
|
300
|
-
];
|
|
301
|
-
const data = { items: [{ id: '1', meta: { title: 'Hello' } }] };
|
|
302
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
303
|
-
const chunks = collector.collect();
|
|
304
|
-
expect(chunks).toHaveLength(1);
|
|
305
|
-
expect(chunks[0].key).toBe('title');
|
|
306
|
-
expect(chunks[0].path).toEqual(['items', '0', 'meta', 'title']);
|
|
307
|
-
expect(chunks[0].dataRef).toBe(data.items[0].meta);
|
|
308
|
-
});
|
|
309
|
-
it('collects blocks fields inside group', () => {
|
|
310
|
-
const schema = [
|
|
311
|
-
{
|
|
312
|
-
name: 'hero',
|
|
313
|
-
type: 'group',
|
|
314
|
-
fields: [
|
|
315
|
-
{
|
|
316
|
-
name: 'content',
|
|
317
|
-
type: 'blocks',
|
|
318
|
-
blocks: [
|
|
319
|
-
{
|
|
320
|
-
slug: 'text',
|
|
321
|
-
fields: [{ name: 'body', type: 'text', localized: true }],
|
|
322
|
-
},
|
|
323
|
-
],
|
|
324
|
-
},
|
|
325
|
-
],
|
|
326
|
-
},
|
|
327
|
-
];
|
|
328
|
-
const data = { hero: { content: [{ id: '1', blockType: 'text', body: 'Hello' }] } };
|
|
329
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
330
|
-
const chunks = collector.collect();
|
|
331
|
-
expect(chunks).toHaveLength(1);
|
|
332
|
-
expect(chunks[0].key).toBe('body');
|
|
333
|
-
expect(chunks[0].path).toEqual(['hero', 'content', '0', 'body']);
|
|
334
|
-
expect(chunks[0].dataRef).toBe(data.hero.content[0]);
|
|
335
|
-
});
|
|
336
|
-
it('collects group fields inside blocks', () => {
|
|
337
|
-
const schema = [
|
|
338
|
-
{
|
|
339
|
-
name: 'layout',
|
|
340
|
-
type: 'blocks',
|
|
341
|
-
blocks: [
|
|
342
|
-
{
|
|
343
|
-
slug: 'card',
|
|
344
|
-
fields: [
|
|
345
|
-
{
|
|
346
|
-
name: 'meta',
|
|
347
|
-
type: 'group',
|
|
348
|
-
fields: [{ name: 'title', type: 'text', localized: true }],
|
|
349
|
-
},
|
|
350
|
-
],
|
|
351
|
-
},
|
|
352
|
-
],
|
|
353
|
-
},
|
|
354
|
-
];
|
|
355
|
-
const data = { layout: [{ id: '1', blockType: 'card', meta: { title: 'Hello' } }] };
|
|
356
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
357
|
-
const chunks = collector.collect();
|
|
358
|
-
expect(chunks).toHaveLength(1);
|
|
359
|
-
expect(chunks[0].key).toBe('title');
|
|
360
|
-
expect(chunks[0].path).toEqual(['layout', '0', 'meta', 'title']);
|
|
361
|
-
expect(chunks[0].dataRef).toBe(data.layout[0].meta);
|
|
362
|
-
});
|
|
363
|
-
it('collects blocks fields inside array', () => {
|
|
364
|
-
const schema = [
|
|
365
|
-
{
|
|
366
|
-
name: 'sections',
|
|
367
|
-
type: 'array',
|
|
368
|
-
fields: [
|
|
369
|
-
{
|
|
370
|
-
name: 'blocks',
|
|
371
|
-
type: 'blocks',
|
|
372
|
-
blocks: [
|
|
373
|
-
{
|
|
374
|
-
slug: 'text',
|
|
375
|
-
fields: [{ name: 'content', type: 'text', localized: true }],
|
|
376
|
-
},
|
|
377
|
-
],
|
|
378
|
-
},
|
|
379
|
-
],
|
|
380
|
-
},
|
|
381
|
-
];
|
|
382
|
-
const data = {
|
|
383
|
-
sections: [{ id: '1', blocks: [{ id: 'b1', blockType: 'text', content: 'Hello' }] }],
|
|
384
|
-
};
|
|
385
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
386
|
-
const chunks = collector.collect();
|
|
387
|
-
expect(chunks).toHaveLength(1);
|
|
388
|
-
expect(chunks[0].key).toBe('content');
|
|
389
|
-
expect(chunks[0].path).toEqual(['sections', '0', 'blocks', '0', 'content']);
|
|
390
|
-
expect(chunks[0].dataRef).toBe(data.sections[0].blocks[0]);
|
|
391
|
-
});
|
|
392
|
-
it('collects fields from named tabs', () => {
|
|
393
|
-
const schema = [
|
|
394
|
-
{
|
|
395
|
-
type: 'tabs',
|
|
396
|
-
tabs: [
|
|
397
|
-
{
|
|
398
|
-
name: 'seo',
|
|
399
|
-
fields: [{ name: 'title', type: 'text', localized: true }],
|
|
400
|
-
},
|
|
401
|
-
],
|
|
402
|
-
},
|
|
403
|
-
];
|
|
404
|
-
const data = { seo: { title: 'SEO Title' } };
|
|
405
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
406
|
-
const chunks = collector.collect();
|
|
407
|
-
expect(chunks).toHaveLength(1);
|
|
408
|
-
expect(chunks[0].key).toBe('title');
|
|
409
|
-
expect(chunks[0].path).toEqual(['seo', 'title']);
|
|
410
|
-
expect(chunks[0].dataRef).toBe(data.seo);
|
|
411
|
-
});
|
|
412
|
-
it('collects fields from collapsible', () => {
|
|
413
|
-
const schema = [
|
|
414
|
-
{
|
|
415
|
-
type: 'collapsible',
|
|
416
|
-
label: 'Advanced',
|
|
417
|
-
fields: [{ name: 'meta', type: 'text', localized: true }],
|
|
418
|
-
},
|
|
419
|
-
];
|
|
420
|
-
const data = { meta: 'Value' };
|
|
421
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
422
|
-
const chunks = collector.collect();
|
|
423
|
-
expect(chunks).toHaveLength(1);
|
|
424
|
-
expect(chunks[0].key).toBe('meta');
|
|
425
|
-
expect(chunks[0].path).toEqual(['meta']);
|
|
426
|
-
});
|
|
427
|
-
it('collects 4-level nested structure (tabs > group > array > blocks)', () => {
|
|
428
|
-
const schema = [
|
|
429
|
-
{
|
|
430
|
-
type: 'tabs',
|
|
431
|
-
tabs: [
|
|
432
|
-
{
|
|
433
|
-
name: 'content',
|
|
434
|
-
fields: [
|
|
435
|
-
{
|
|
436
|
-
name: 'sections',
|
|
437
|
-
type: 'group',
|
|
438
|
-
fields: [
|
|
439
|
-
{
|
|
440
|
-
name: 'items',
|
|
441
|
-
type: 'array',
|
|
442
|
-
fields: [
|
|
443
|
-
{
|
|
444
|
-
name: 'blocks',
|
|
445
|
-
type: 'blocks',
|
|
446
|
-
blocks: [
|
|
447
|
-
{
|
|
448
|
-
slug: 'text',
|
|
449
|
-
fields: [{ name: 'body', type: 'text', localized: true }],
|
|
450
|
-
},
|
|
451
|
-
],
|
|
452
|
-
},
|
|
453
|
-
],
|
|
454
|
-
},
|
|
455
|
-
],
|
|
456
|
-
},
|
|
457
|
-
],
|
|
458
|
-
},
|
|
459
|
-
],
|
|
460
|
-
},
|
|
461
|
-
];
|
|
462
|
-
const data = {
|
|
463
|
-
content: {
|
|
464
|
-
sections: {
|
|
465
|
-
items: [{ id: '1', blocks: [{ id: 'b1', blockType: 'text', body: 'Deep content' }] }],
|
|
466
|
-
},
|
|
467
|
-
},
|
|
468
|
-
};
|
|
469
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
470
|
-
const chunks = collector.collect();
|
|
471
|
-
expect(chunks).toHaveLength(1);
|
|
472
|
-
expect(chunks[0].key).toBe('body');
|
|
473
|
-
expect(chunks[0].path).toEqual(['content', 'sections', 'items', '0', 'blocks', '0', 'body']);
|
|
474
|
-
expect(chunks[0].dataRef).toBe(data.content.sections.items[0].blocks[0]);
|
|
475
|
-
});
|
|
476
|
-
it('collects multiple fields from complex nested structure', () => {
|
|
477
|
-
const schema = [
|
|
478
|
-
{
|
|
479
|
-
name: 'page',
|
|
480
|
-
type: 'group',
|
|
481
|
-
fields: [
|
|
482
|
-
{ name: 'title', type: 'text', localized: true },
|
|
483
|
-
{
|
|
484
|
-
name: 'sections',
|
|
485
|
-
type: 'array',
|
|
486
|
-
fields: [
|
|
487
|
-
{ name: 'heading', type: 'text', localized: true },
|
|
488
|
-
{
|
|
489
|
-
name: 'content',
|
|
490
|
-
type: 'blocks',
|
|
491
|
-
blocks: [
|
|
492
|
-
{
|
|
493
|
-
slug: 'paragraph',
|
|
494
|
-
fields: [{ name: 'text', type: 'text', localized: true }],
|
|
495
|
-
},
|
|
496
|
-
],
|
|
497
|
-
},
|
|
498
|
-
],
|
|
499
|
-
},
|
|
500
|
-
],
|
|
501
|
-
},
|
|
502
|
-
];
|
|
503
|
-
const data = {
|
|
504
|
-
page: {
|
|
505
|
-
title: 'Page Title',
|
|
506
|
-
sections: [
|
|
507
|
-
{
|
|
508
|
-
id: '1',
|
|
509
|
-
heading: 'Section 1',
|
|
510
|
-
content: [{ id: 'b1', blockType: 'paragraph', text: 'Content 1' }],
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
id: '2',
|
|
514
|
-
heading: 'Section 2',
|
|
515
|
-
content: [{ id: 'b2', blockType: 'paragraph', text: 'Content 2' }],
|
|
516
|
-
},
|
|
517
|
-
],
|
|
518
|
-
},
|
|
519
|
-
};
|
|
520
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
521
|
-
const chunks = collector.collect();
|
|
522
|
-
expect(chunks).toHaveLength(5);
|
|
523
|
-
expect(chunks.map((c) => c.path)).toEqual([
|
|
524
|
-
['page', 'title'],
|
|
525
|
-
['page', 'sections', '0', 'heading'],
|
|
526
|
-
['page', 'sections', '0', 'content', '0', 'text'],
|
|
527
|
-
['page', 'sections', '1', 'heading'],
|
|
528
|
-
['page', 'sections', '1', 'content', '0', 'text'],
|
|
529
|
-
]);
|
|
530
|
-
});
|
|
531
|
-
});
|
|
532
|
-
describe('dataRef mutation capability', () => {
|
|
533
|
-
it('provides mutable reference to parent object', () => {
|
|
534
|
-
const schema = [{ name: 'title', type: 'text', localized: true }];
|
|
535
|
-
const data = { title: 'Hello' };
|
|
536
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
537
|
-
const chunks = collector.collect();
|
|
538
|
-
// Mutate through dataRef
|
|
539
|
-
chunks[0].dataRef[chunks[0].key] = 'Modified';
|
|
540
|
-
expect(data.title).toBe('Modified');
|
|
541
|
-
});
|
|
542
|
-
it('provides mutable reference in nested structures', () => {
|
|
543
|
-
const schema = [
|
|
544
|
-
{
|
|
545
|
-
name: 'items',
|
|
546
|
-
type: 'array',
|
|
547
|
-
fields: [{ name: 'label', type: 'text', localized: true }],
|
|
548
|
-
},
|
|
549
|
-
];
|
|
550
|
-
const data = { items: [{ id: '1', label: 'Original' }] };
|
|
551
|
-
const collector = new FieldChunkCollector(schema, data, data, {}, strategy);
|
|
552
|
-
const chunks = collector.collect();
|
|
553
|
-
// Mutate through dataRef
|
|
554
|
-
chunks[0].dataRef[chunks[0].key] = 'Modified';
|
|
555
|
-
expect(data.items[0].label).toBe('Modified');
|
|
556
|
-
});
|
|
557
|
-
});
|
|
558
|
-
describe('strategy filtering', () => {
|
|
559
|
-
it('skips fields with existing target values (SkipExisting)', () => {
|
|
560
|
-
const schema = [{ name: 'title', type: 'text', localized: true }];
|
|
561
|
-
const filteredData = { title: 'Existing' };
|
|
562
|
-
const sourceData = { title: 'Hello' };
|
|
563
|
-
const targetData = { title: 'Existing' };
|
|
564
|
-
const collector = new FieldChunkCollector(schema, filteredData, sourceData, targetData, skipExistingStrategy);
|
|
565
|
-
const chunks = collector.collect();
|
|
566
|
-
expect(chunks).toHaveLength(0);
|
|
567
|
-
});
|
|
568
|
-
it('collects fields with empty target values (SkipExisting)', () => {
|
|
569
|
-
const schema = [{ name: 'title', type: 'text', localized: true }];
|
|
570
|
-
const filteredData = { title: 'Hello' };
|
|
571
|
-
const sourceData = { title: 'Hello' };
|
|
572
|
-
const targetData = { title: '' };
|
|
573
|
-
const collector = new FieldChunkCollector(schema, filteredData, sourceData, targetData, skipExistingStrategy);
|
|
574
|
-
const chunks = collector.collect();
|
|
575
|
-
expect(chunks).toHaveLength(1);
|
|
576
|
-
expect(chunks[0].key).toBe('title');
|
|
577
|
-
});
|
|
578
|
-
it('handles mixed fields with SkipExisting', () => {
|
|
579
|
-
const schema = [
|
|
580
|
-
{ name: 'title', type: 'text', localized: true },
|
|
581
|
-
{ name: 'description', type: 'text', localized: true },
|
|
582
|
-
];
|
|
583
|
-
const filteredData = { title: 'Existing', description: 'World' };
|
|
584
|
-
const sourceData = { title: 'Hello', description: 'World' };
|
|
585
|
-
const targetData = { title: 'Existing', description: '' };
|
|
586
|
-
const collector = new FieldChunkCollector(schema, filteredData, sourceData, targetData, skipExistingStrategy);
|
|
587
|
-
const chunks = collector.collect();
|
|
588
|
-
expect(chunks).toHaveLength(1);
|
|
589
|
-
expect(chunks[0].key).toBe('description');
|
|
590
|
-
});
|
|
591
|
-
it('collects all fields with OverwriteStrategy even when target exists', () => {
|
|
592
|
-
const schema = [{ name: 'title', type: 'text', localized: true }];
|
|
593
|
-
const filteredData = { title: 'Existing' };
|
|
594
|
-
const sourceData = { title: 'Hello' };
|
|
595
|
-
const targetData = { title: 'Existing' };
|
|
596
|
-
const collector = new FieldChunkCollector(schema, filteredData, sourceData, targetData, strategy);
|
|
597
|
-
const chunks = collector.collect();
|
|
598
|
-
expect(chunks).toHaveLength(1);
|
|
599
|
-
});
|
|
600
|
-
it('applies SkipExisting to nested array fields', () => {
|
|
601
|
-
const schema = [
|
|
602
|
-
{
|
|
603
|
-
name: 'items',
|
|
604
|
-
type: 'array',
|
|
605
|
-
fields: [{ name: 'label', type: 'text', localized: true }],
|
|
606
|
-
},
|
|
607
|
-
];
|
|
608
|
-
const filteredData = {
|
|
609
|
-
items: [
|
|
610
|
-
{ id: '1', label: 'Translated' },
|
|
611
|
-
{ id: '2', label: 'Second' },
|
|
612
|
-
],
|
|
613
|
-
};
|
|
614
|
-
const sourceData = {
|
|
615
|
-
items: [
|
|
616
|
-
{ id: '1', label: 'First' },
|
|
617
|
-
{ id: '2', label: 'Second' },
|
|
618
|
-
],
|
|
619
|
-
};
|
|
620
|
-
const targetData = {
|
|
621
|
-
items: [
|
|
622
|
-
{ id: '1', label: 'Translated' },
|
|
623
|
-
{ id: '2', label: '' },
|
|
624
|
-
],
|
|
625
|
-
};
|
|
626
|
-
const collector = new FieldChunkCollector(schema, filteredData, sourceData, targetData, skipExistingStrategy);
|
|
627
|
-
const chunks = collector.collect();
|
|
628
|
-
expect(chunks).toHaveLength(1);
|
|
629
|
-
expect(chunks[0].path).toEqual(['items', '1', 'label']);
|
|
630
|
-
});
|
|
631
|
-
it('applies SkipExisting to nested group fields', () => {
|
|
632
|
-
const schema = [
|
|
633
|
-
{
|
|
634
|
-
name: 'meta',
|
|
635
|
-
type: 'group',
|
|
636
|
-
fields: [
|
|
637
|
-
{ name: 'title', type: 'text', localized: true },
|
|
638
|
-
{ name: 'description', type: 'text', localized: true },
|
|
639
|
-
],
|
|
640
|
-
},
|
|
641
|
-
];
|
|
642
|
-
const filteredData = { meta: { title: 'Translated', description: 'World' } };
|
|
643
|
-
const sourceData = { meta: { title: 'Hello', description: 'World' } };
|
|
644
|
-
const targetData = { meta: { title: 'Translated', description: '' } };
|
|
645
|
-
const collector = new FieldChunkCollector(schema, filteredData, sourceData, targetData, skipExistingStrategy);
|
|
646
|
-
const chunks = collector.collect();
|
|
647
|
-
expect(chunks).toHaveLength(1);
|
|
648
|
-
expect(chunks[0].path).toEqual(['meta', 'description']);
|
|
649
|
-
});
|
|
650
|
-
it('applies SkipExisting to blocks fields', () => {
|
|
651
|
-
const schema = [
|
|
652
|
-
{
|
|
653
|
-
name: 'layout',
|
|
654
|
-
type: 'blocks',
|
|
655
|
-
blocks: [
|
|
656
|
-
{
|
|
657
|
-
slug: 'text',
|
|
658
|
-
fields: [{ name: 'content', type: 'text', localized: true }],
|
|
659
|
-
},
|
|
660
|
-
],
|
|
661
|
-
},
|
|
662
|
-
];
|
|
663
|
-
const filteredData = {
|
|
664
|
-
layout: [
|
|
665
|
-
{ id: '1', blockType: 'text', content: 'Translated' },
|
|
666
|
-
{ id: '2', blockType: 'text', content: 'World' },
|
|
667
|
-
],
|
|
668
|
-
};
|
|
669
|
-
const sourceData = {
|
|
670
|
-
layout: [
|
|
671
|
-
{ id: '1', blockType: 'text', content: 'Hello' },
|
|
672
|
-
{ id: '2', blockType: 'text', content: 'World' },
|
|
673
|
-
],
|
|
674
|
-
};
|
|
675
|
-
const targetData = {
|
|
676
|
-
layout: [
|
|
677
|
-
{ id: '1', blockType: 'text', content: 'Translated' },
|
|
678
|
-
{ id: '2', blockType: 'text', content: '' },
|
|
679
|
-
],
|
|
680
|
-
};
|
|
681
|
-
const collector = new FieldChunkCollector(schema, filteredData, sourceData, targetData, skipExistingStrategy);
|
|
682
|
-
const chunks = collector.collect();
|
|
683
|
-
expect(chunks).toHaveLength(1);
|
|
684
|
-
expect(chunks[0].path).toEqual(['layout', '1', 'content']);
|
|
685
|
-
});
|
|
686
|
-
});
|
|
687
|
-
describe('sourceValue mutation', () => {
|
|
688
|
-
it('writes sourceValue to filteredData when shouldTranslate is true', () => {
|
|
689
|
-
const schema = [{ name: 'title', type: 'text', localized: true }];
|
|
690
|
-
const filteredData = { title: 'Target value' };
|
|
691
|
-
const sourceData = { title: 'Source value' };
|
|
692
|
-
const targetData = { title: 'Target value' };
|
|
693
|
-
const collector = new FieldChunkCollector(schema, filteredData, sourceData, targetData, strategy);
|
|
694
|
-
collector.collect();
|
|
695
|
-
expect(filteredData.title).toBe('Source value');
|
|
696
|
-
});
|
|
697
|
-
it('does not modify filteredData when shouldTranslate is false', () => {
|
|
698
|
-
const schema = [{ name: 'title', type: 'text', localized: true }];
|
|
699
|
-
const filteredData = { title: 'Existing' };
|
|
700
|
-
const sourceData = { title: 'Hello' };
|
|
701
|
-
const targetData = { title: 'Existing' };
|
|
702
|
-
const collector = new FieldChunkCollector(schema, filteredData, sourceData, targetData, skipExistingStrategy);
|
|
703
|
-
collector.collect();
|
|
704
|
-
expect(filteredData.title).toBe('Existing');
|
|
705
|
-
});
|
|
706
|
-
it('writes sourceValue in nested structures', () => {
|
|
707
|
-
const schema = [
|
|
708
|
-
{
|
|
709
|
-
name: 'meta',
|
|
710
|
-
type: 'group',
|
|
711
|
-
fields: [{ name: 'title', type: 'text', localized: true }],
|
|
712
|
-
},
|
|
713
|
-
];
|
|
714
|
-
const filteredData = { meta: { title: 'Target' } };
|
|
715
|
-
const sourceData = { meta: { title: 'Source' } };
|
|
716
|
-
const targetData = { meta: { title: 'Target' } };
|
|
717
|
-
const collector = new FieldChunkCollector(schema, filteredData, sourceData, targetData, strategy);
|
|
718
|
-
collector.collect();
|
|
719
|
-
expect(filteredData.meta.title).toBe('Source');
|
|
720
|
-
});
|
|
721
|
-
it('writes sourceValue in array items', () => {
|
|
722
|
-
const schema = [
|
|
723
|
-
{
|
|
724
|
-
name: 'items',
|
|
725
|
-
type: 'array',
|
|
726
|
-
fields: [{ name: 'label', type: 'text', localized: true }],
|
|
727
|
-
},
|
|
728
|
-
];
|
|
729
|
-
const filteredData = { items: [{ id: '1', label: 'Target' }] };
|
|
730
|
-
const sourceData = { items: [{ id: '1', label: 'Source' }] };
|
|
731
|
-
const targetData = { items: [{ id: '1', label: 'Target' }] };
|
|
732
|
-
const collector = new FieldChunkCollector(schema, filteredData, sourceData, targetData, strategy);
|
|
733
|
-
collector.collect();
|
|
734
|
-
expect(filteredData.items[0].label).toBe('Source');
|
|
735
|
-
});
|
|
736
|
-
});
|
|
737
|
-
});
|