@focus-reactive/payload-plugin-translator 0.6.1 → 0.6.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/dist/client/app/cache/CacheProvider.d.ts +1 -1
- package/dist/client/app/cache/CacheProvider.export.d.ts +1 -1
- package/dist/client/app/cache/CacheProvider.export.js +2 -2
- package/dist/client/app/cache/CacheProvider.js +5 -5
- package/dist/client/app/config/TranslateKitConfigContext.d.ts +1 -1
- package/dist/client/app/config/TranslateKitConfigContext.js +3 -3
- package/dist/client/app/config/index.d.ts +2 -2
- package/dist/client/app/config/index.js +1 -1
- package/dist/client/entities/translation/api/mutations/useCancelCollectionTranslations.js +7 -7
- package/dist/client/entities/translation/api/mutations/useCancelDocumentTranslation.js +7 -7
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.d.ts +1 -1
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.js +8 -8
- package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslations.js +6 -6
- package/dist/client/entities/translation/api/mutations/useRunDocumentTranslation.js +7 -7
- package/dist/client/entities/translation/api/mutations/useTranslateField.d.ts +1 -1
- package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.d.ts +2 -2
- package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.js +9 -10
- package/dist/client/entities/translation/api/queries/useDocumentTranslation.d.ts +2 -2
- package/dist/client/entities/translation/api/queries/useDocumentTranslation.js +9 -10
- package/dist/client/entities/translation/index.d.ts +12 -12
- package/dist/client/entities/translation/index.js +11 -11
- package/dist/client/entities/translation/model/types.d.ts +1 -1
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.js +12 -12
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.d.ts +1 -1
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.js +1 -1
- package/dist/client/entities/translation/ui/CompletedTranslationStatus/styles.module.scss +1 -1
- package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.js +8 -8
- package/dist/client/entities/translation/ui/FailedTranslationStatus/index.d.ts +1 -1
- package/dist/client/entities/translation/ui/FailedTranslationStatus/index.js +1 -1
- package/dist/client/entities/translation/ui/FailedTranslationStatus/styles.module.scss +1 -1
- package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.js +14 -14
- package/dist/client/entities/translation/ui/PendingTranslationStatus/index.d.ts +1 -1
- package/dist/client/entities/translation/ui/PendingTranslationStatus/index.js +1 -1
- package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.js +13 -13
- package/dist/client/entities/translation/ui/RunningTranslationStatus/index.d.ts +1 -1
- package/dist/client/entities/translation/ui/RunningTranslationStatus/index.js +1 -1
- package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.d.ts +1 -1
- package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.js +2 -2
- package/dist/client/entities/translation/ui/TranslationDirection/index.d.ts +1 -1
- package/dist/client/entities/translation/ui/TranslationDirection/index.js +1 -1
- package/dist/client/entities/translation/ui/TranslationDirection/styles.module.scss +1 -1
- package/dist/client/features/collection-translation-form/index.client.d.ts +1 -1
- package/dist/client/features/collection-translation-form/index.client.js +1 -1
- package/dist/client/features/collection-translation-form/index.d.ts +3 -3
- package/dist/client/features/collection-translation-form/index.js +2 -2
- package/dist/client/features/collection-translation-form/model/constants.d.ts +1 -1
- package/dist/client/features/collection-translation-form/model/constants.js +9 -9
- package/dist/client/features/collection-translation-form/model/form-model.d.ts +1 -1
- package/dist/client/features/collection-translation-form/model/index.d.ts +1 -1
- package/dist/client/features/collection-translation-form/model/index.js +1 -1
- package/dist/client/features/collection-translation-form/model/schema.d.ts +1 -1
- package/dist/client/features/collection-translation-form/model/schema.js +6 -6
- package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.d.ts +1 -1
- package/dist/client/features/collection-translation-form/ui/index.d.ts +1 -1
- package/dist/client/features/collection-translation-form/ui/index.js +1 -1
- package/dist/client/features/collection-translation-form/ui/styles.module.scss +1 -1
- package/dist/client/features/collection-translation-popup/index.d.ts +1 -1
- package/dist/client/features/collection-translation-popup/index.js +1 -1
- package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.d.ts +1 -1
- package/dist/client/features/collection-translation-popup/ui/styles.module.scss +1 -1
- package/dist/client/features/collection-translation-progress/index.d.ts +1 -1
- package/dist/client/features/collection-translation-progress/index.js +1 -1
- package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.d.ts +2 -2
- package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.js +13 -13
- package/dist/client/features/collection-translation-progress/ui/styles.module.scss +1 -1
- package/dist/client/features/document-translation-progress-failed/index.d.ts +1 -1
- package/dist/client/features/document-translation-progress-failed/index.js +1 -1
- package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.d.ts +2 -2
- package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.js +3 -3
- package/dist/client/features/document-translation-progress-pending/index.d.ts +1 -1
- package/dist/client/features/document-translation-progress-pending/index.js +1 -1
- package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.d.ts +2 -2
- package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.js +5 -5
- package/dist/client/features/document-translation-progress-running/index.d.ts +1 -1
- package/dist/client/features/document-translation-progress-running/index.js +1 -1
- package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.d.ts +2 -2
- package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.js +3 -3
- package/dist/client/features/open-document-translation-popup/index.d.ts +1 -1
- package/dist/client/features/open-document-translation-popup/index.js +1 -1
- package/dist/client/features/open-document-translation-popup/ui/styles.module.scss +1 -1
- package/dist/client/features/translate-document-form/index.client.d.ts +1 -1
- package/dist/client/features/translate-document-form/index.client.js +1 -1
- package/dist/client/features/translate-document-form/index.d.ts +3 -3
- package/dist/client/features/translate-document-form/index.js +2 -2
- package/dist/client/features/translate-document-form/model/constants.d.ts +1 -1
- package/dist/client/features/translate-document-form/model/constants.js +11 -11
- package/dist/client/features/translate-document-form/model/form-model.d.ts +1 -1
- package/dist/client/features/translate-document-form/model/index.d.ts +1 -1
- package/dist/client/features/translate-document-form/model/index.js +1 -1
- package/dist/client/features/translate-document-form/model/schema.d.ts +1 -1
- package/dist/client/features/translate-document-form/model/schema.js +5 -5
- package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.d.ts +1 -1
- package/dist/client/features/translate-document-form/ui/index.d.ts +1 -1
- package/dist/client/features/translate-document-form/ui/index.js +1 -1
- package/dist/client/features/translate-document-form/ui/styles.module.scss +1 -1
- package/dist/client/shared/lib/errors/handleApiError.d.ts +1 -1
- package/dist/client/shared/lib/errors/handleApiError.js +2 -2
- package/dist/client/shared/lib/forms/handle-form-error.d.ts +1 -1
- package/dist/client/shared/lib/forms/handle-form-error.js +6 -6
- package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.d.ts +1 -1
- package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.js +1 -1
- package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.d.ts +1 -1
- package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.js +2 -2
- package/dist/client/shared/lib/payload/hooks/useLocaleOptions.js +2 -2
- package/dist/client/shared/lib/utils/errors/handleApiError.d.ts +1 -1
- package/dist/client/shared/lib/utils/errors/handleApiError.js +2 -2
- package/dist/client/shared/lib/utils/react/useToggle.js +1 -1
- package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.d.ts +2 -2
- package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.js +3 -3
- package/dist/client/shared/providers/CacheClientProvider/index.d.ts +1 -1
- package/dist/client/shared/providers/CacheClientProvider/index.js +1 -1
- package/dist/client/shared/types/AccessGuard.d.ts +1 -1
- package/dist/client/shared/ui/Alert/Alert.d.ts +2 -2
- package/dist/client/shared/ui/Alert/Alert.js +18 -18
- package/dist/client/shared/ui/Alert/index.d.ts +1 -1
- package/dist/client/shared/ui/Alert/index.js +1 -1
- package/dist/client/shared/ui/Alert/styles.module.scss +1 -1
- package/dist/client/shared/ui/Button/index.d.ts +1 -1
- package/dist/client/shared/ui/Button/index.js +1 -1
- package/dist/client/shared/ui/Button/styles.module.scss +6 -3
- package/dist/client/shared/ui/Checkbox/Checkbox.d.ts +2 -2
- package/dist/client/shared/ui/Checkbox/Checkbox.js +4 -4
- package/dist/client/shared/ui/Checkbox/index.d.ts +1 -1
- package/dist/client/shared/ui/Checkbox/index.js +1 -1
- package/dist/client/shared/ui/Checkbox/styles.module.scss +1 -1
- package/dist/client/shared/ui/ColorIndicator/ColorIndicator.d.ts +2 -2
- package/dist/client/shared/ui/ColorIndicator/ColorIndicator.js +2 -2
- package/dist/client/shared/ui/ColorIndicator/index.d.ts +1 -1
- package/dist/client/shared/ui/ColorIndicator/index.js +1 -1
- package/dist/client/shared/ui/ColorIndicator/styles.module.scss +1 -1
- package/dist/client/shared/ui/Description/Description.d.ts +3 -3
- package/dist/client/shared/ui/Description/Description.js +4 -4
- package/dist/client/shared/ui/Description/index.d.ts +1 -1
- package/dist/client/shared/ui/Description/index.js +1 -1
- package/dist/client/shared/ui/Description/styles.module.scss +1 -1
- package/dist/client/shared/ui/Divider/Divider.d.ts +4 -4
- package/dist/client/shared/ui/Divider/Divider.js +4 -4
- package/dist/client/shared/ui/Divider/index.d.ts +1 -1
- package/dist/client/shared/ui/Divider/index.js +1 -1
- package/dist/client/shared/ui/Divider/styles.module.scss +1 -1
- package/dist/client/shared/ui/Label/Label.d.ts +2 -2
- package/dist/client/shared/ui/Label/Label.js +3 -3
- package/dist/client/shared/ui/Label/index.d.ts +1 -1
- package/dist/client/shared/ui/Label/index.js +1 -1
- package/dist/client/shared/ui/Label/styles.module.scss +1 -1
- package/dist/client/shared/ui/Loading/Loading.d.ts +1 -1
- package/dist/client/shared/ui/Loading/Loading.js +9 -9
- package/dist/client/shared/ui/Loading/index.d.ts +1 -1
- package/dist/client/shared/ui/Loading/index.js +1 -1
- package/dist/client/shared/ui/Loading/styles.module.scss +2 -2
- package/dist/client/shared/ui/Popup/Popup.d.ts +1 -1
- package/dist/client/shared/ui/Popup/index.d.ts +1 -1
- package/dist/client/shared/ui/Popup/index.js +1 -1
- package/dist/client/shared/ui/Popup/styles.module.scss +1 -1
- package/dist/client/shared/ui/ProgressBar/ProgressBar.d.ts +2 -2
- package/dist/client/shared/ui/ProgressBar/ProgressBar.js +3 -3
- package/dist/client/shared/ui/ProgressBar/index.d.ts +1 -1
- package/dist/client/shared/ui/ProgressBar/index.js +1 -1
- package/dist/client/shared/ui/ProgressBar/styles.module.scss +1 -1
- package/dist/client/shared/ui/Select/index.d.ts +1 -1
- package/dist/client/shared/ui/Select/index.js +1 -1
- package/dist/client/shared/ui/Select/styles.module.scss +1 -1
- package/dist/client/shared/ui/StatusCounter/StatusCounter.d.ts +2 -2
- package/dist/client/shared/ui/StatusCounter/StatusCounter.js +13 -13
- package/dist/client/shared/ui/StatusCounter/index.d.ts +1 -1
- package/dist/client/shared/ui/StatusCounter/index.js +1 -1
- package/dist/client/shared/ui/StatusCounter/styles.module.scss +1 -1
- package/dist/client/shared/ui/StatusIndicator/StatusIndicator.d.ts +3 -3
- package/dist/client/shared/ui/StatusIndicator/StatusIndicator.js +4 -4
- package/dist/client/shared/ui/StatusIndicator/index.d.ts +1 -1
- package/dist/client/shared/ui/StatusIndicator/index.js +1 -1
- package/dist/client/shared/ui/StatusIndicator/styles.module.scss +1 -1
- package/dist/client/shared/ui/Tooltip/Tooltip.d.ts +2 -2
- package/dist/client/shared/ui/Tooltip/Tooltip.js +4 -4
- package/dist/client/shared/ui/Tooltip/index.d.ts +1 -1
- package/dist/client/shared/ui/Tooltip/index.js +1 -1
- package/dist/client/shared/ui/Tooltip/styles.module.scss +5 -5
- package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.d.ts +1 -1
- package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.js +6 -6
- package/dist/client/shared/ui/form/FormCheckbox/index.d.ts +1 -1
- package/dist/client/shared/ui/form/FormCheckbox/index.js +1 -1
- package/dist/client/shared/ui/form/FormCheckbox/styles.module.scss +1 -1
- package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.js +5 -5
- package/dist/client/shared/ui/form/FormCheckboxPublish/index.d.ts +1 -1
- package/dist/client/shared/ui/form/FormCheckboxPublish/index.js +1 -1
- package/dist/client/shared/ui/form/FormCheckboxPublish/styles.module.scss +1 -1
- package/dist/client/shared/ui/form/FormSelect/FormSelect.d.ts +5 -5
- package/dist/client/shared/ui/form/FormSelect/FormSelect.js +9 -9
- package/dist/client/shared/ui/form/FormSelect/index.d.ts +1 -1
- package/dist/client/shared/ui/form/FormSelect/index.js +1 -1
- package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.d.ts +1 -1
- package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.js +2 -2
- package/dist/client/shared/ui/form/FormSelectLocale/index.d.ts +1 -1
- package/dist/client/shared/ui/form/FormSelectLocale/index.js +1 -1
- package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.d.ts +2 -2
- package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.js +9 -9
- package/dist/client/shared/ui/form/FormSelectStrategy/index.d.ts +2 -2
- package/dist/client/shared/ui/form/FormSelectStrategy/index.js +1 -1
- package/dist/client/shared/ui/form/FormSelectStrategy/styles.module.scss +1 -1
- package/dist/client/shared/utils/componentPath.js +1 -1
- package/dist/client/widgets/bulk-translation-dashboard/index.d.ts +1 -1
- package/dist/client/widgets/bulk-translation-dashboard/index.js +1 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.d.ts +2 -2
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.js +3 -3
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.js +11 -11
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.d.ts +2 -2
- package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.js +3 -3
- package/dist/client/widgets/bulk-translation-dashboard/ui/index.d.ts +1 -1
- package/dist/client/widgets/bulk-translation-dashboard/ui/index.js +1 -1
- package/dist/client/widgets/translate-document/index.d.ts +1 -1
- package/dist/client/widgets/translate-document/index.js +1 -1
- package/dist/client/widgets/translate-document/ui/TranslateDocument.export.d.ts +3 -3
- package/dist/client/widgets/translate-document/ui/TranslateDocument.export.js +3 -3
- package/dist/client/widgets/translate-document/ui/TranslateDocument.js +16 -16
- package/dist/client/widgets/translate-document/ui/TranslateDocument.server.d.ts +2 -2
- package/dist/client/widgets/translate-document/ui/TranslateDocument.server.js +3 -3
- package/dist/client/widgets/translate-document/ui/index.d.ts +1 -1
- package/dist/client/widgets/translate-document/ui/index.js +1 -1
- package/dist/client/widgets/translate-field-control/ui/TranslateFieldControl.export.d.ts +1 -1
- package/dist/client/widgets/translate-field-control/ui/styles.module.scss +1 -1
- package/dist/{server/modules/translation-levels → composition/levels}/collectionLevel.d.ts +1 -1
- package/dist/{server/modules/translation-levels → composition/levels}/collectionLevel.js +1 -1
- package/dist/{server/modules/translation-levels → composition/levels}/documentLevel.d.ts +1 -1
- package/dist/{server/modules/translation-levels → composition/levels}/documentLevel.js +1 -1
- package/dist/{server/modules/translation-levels → composition/levels}/fieldLevel.d.ts +1 -1
- package/dist/{server/modules/translation-levels → composition/levels}/fieldLevel.js +1 -1
- package/dist/composition/levels/index.d.ts +3 -0
- package/dist/composition/levels/index.js +5 -0
- package/dist/{server/modules/translation-levels → composition/levels}/useDocTranslationApi.d.ts +1 -1
- package/dist/{server/modules/translation-levels → composition/levels}/useDocTranslationApi.js +1 -1
- package/dist/core/content-projection/contentProjector.d.ts +28 -0
- package/dist/core/content-projection/contentProjector.js +97 -0
- package/dist/core/content-projection/fingerprinter.d.ts +28 -0
- package/dist/core/content-projection/fingerprinter.js +29 -0
- package/dist/core/content-projection/idPath.d.ts +48 -0
- package/dist/core/content-projection/idPath.js +64 -0
- package/dist/core/content-projection/translatableLeaf.d.ts +27 -0
- package/dist/core/content-projection/translatableLeaf.js +37 -0
- package/dist/core/field-config/getFieldConfig.d.ts +23 -0
- package/dist/{server/shared → core}/field-config/getFieldConfig.js +5 -5
- package/dist/{server/shared → core}/field-config/index.d.ts +3 -3
- package/dist/core/field-config/index.js +4 -0
- package/dist/{server/shared → core}/field-traversal/findFieldByPath.d.ts +2 -3
- package/dist/core/field-traversal/guards.d.ts +19 -0
- package/dist/core/field-traversal/guards.js +20 -0
- package/dist/core/field-traversal/index.d.ts +7 -0
- package/dist/core/field-traversal/index.js +7 -0
- package/dist/{server/shared → core}/field-traversal/kernel.d.ts +7 -8
- package/dist/{server/shared → core}/field-traversal/kernel.js +6 -6
- package/dist/core/field-traversal/predicates.d.ts +24 -0
- package/dist/core/field-traversal/predicates.js +17 -0
- package/dist/{server/shared → core}/field-traversal/types.d.ts +129 -27
- package/dist/{server/shared → core}/field-traversal/types.js +6 -0
- package/dist/{server/shared → core}/field-traversal/walkFields.d.ts +2 -3
- package/dist/core/index.d.ts +10 -0
- package/dist/core/index.js +14 -0
- package/dist/{server/shared → core}/lexical/collectTextNodes.d.ts +1 -1
- package/dist/{server/shared → core}/lexical/collectTextNodes.js +1 -1
- package/dist/{server/shared → core}/lexical/guards.d.ts +1 -1
- package/dist/{server/shared → core}/lexical/guards.js +4 -4
- package/dist/core/lexical/index.d.ts +6 -0
- package/dist/core/lexical/index.js +6 -0
- package/dist/{server/shared → core}/lexical/isEmptyRichText.d.ts +1 -1
- package/dist/{server/shared → core}/lexical/isEmptyRichText.js +3 -3
- package/dist/{server/shared → core}/lexical/traverseLexicalTree.d.ts +1 -1
- package/dist/{server/shared → core}/lexical/traverseLexicalTree.js +1 -1
- package/dist/core/lexical/types.d.ts +33 -0
- package/dist/core/lexical/types.js +11 -0
- package/dist/{server/modules → core}/translation-pipeline/TranslationPipeline.d.ts +4 -4
- package/dist/{server/modules → core}/translation-pipeline/TranslationPipeline.js +1 -1
- package/dist/{server/modules → core}/translation-pipeline/stages/data-reconciler/DataReconciler.d.ts +2 -2
- package/dist/{server/modules → core}/translation-pipeline/stages/data-reconciler/DataReconciler.js +3 -2
- package/dist/core/translation-pipeline/stages/data-reconciler/index.d.ts +2 -0
- package/dist/core/translation-pipeline/stages/data-reconciler/index.js +4 -0
- package/dist/{server/modules → core}/translation-pipeline/stages/field-collector/FieldChunkCollector.d.ts +2 -2
- package/dist/{server/modules → core}/translation-pipeline/stages/field-collector/FieldChunkCollector.js +18 -4
- package/dist/{server/modules → core}/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.d.ts +2 -2
- package/dist/{server/modules → core}/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.js +2 -2
- package/dist/core/translation-pipeline/stages/field-collector/index.d.ts +2 -0
- package/dist/core/translation-pipeline/stages/field-collector/index.js +4 -0
- package/dist/core/translation-pipeline/stages/index.d.ts +6 -0
- package/dist/core/translation-pipeline/stages/index.js +7 -0
- package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/PlainTextExpander.d.ts +2 -2
- package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/PlainTextExpander.js +2 -2
- package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/RichTextExpander.d.ts +2 -2
- package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/RichTextExpander.js +3 -3
- package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextChunkExpander.d.ts +2 -2
- package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextChunkExpander.stage.d.ts +2 -2
- package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextChunkExpander.stage.js +4 -4
- package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextExpander.interface.d.ts +1 -1
- package/dist/core/translation-pipeline/stages/text-expander/index.d.ts +6 -0
- package/dist/core/translation-pipeline/stages/text-expander/index.js +6 -0
- package/dist/{server/modules → core}/translation-pipeline/stages/translation/Translation.stage.d.ts +2 -2
- package/dist/{server/modules → core}/translation-pipeline/stages/translation/Translation.stage.js +1 -1
- package/dist/core/translation-pipeline/stages/translation/index.d.ts +1 -0
- package/dist/core/translation-pipeline/stages/translation/index.js +3 -0
- package/dist/{server/modules → core}/translation-pipeline/stages/translation-applicator/TranslationMutator.d.ts +1 -1
- package/dist/{server/modules → core}/translation-pipeline/stages/translation-applicator/TranslationMutator.js +1 -1
- package/dist/{server/modules → core}/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.d.ts +1 -1
- package/dist/{server/modules → core}/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.js +2 -2
- package/dist/core/translation-pipeline/stages/translation-applicator/index.d.ts +2 -0
- package/dist/core/translation-pipeline/stages/translation-applicator/index.js +4 -0
- package/dist/{server/modules → core}/translation-pipeline/strategies/Overwrite.strategy.d.ts +1 -1
- package/dist/{server/modules → core}/translation-pipeline/strategies/Overwrite.strategy.js +1 -1
- package/dist/{server/modules → core}/translation-pipeline/strategies/SkipExisting.strategy.d.ts +1 -1
- package/dist/{server/modules → core}/translation-pipeline/strategies/SkipExisting.strategy.js +3 -1
- package/dist/core/translation-pipeline/strategies/index.d.ts +13 -0
- package/dist/{server/modules → core}/translation-pipeline/strategies/index.js +4 -4
- package/dist/{server/modules → core}/translation-pipeline/translateContent.d.ts +2 -2
- package/dist/{server/modules → core}/translation-pipeline/types/FieldChunk.d.ts +3 -3
- package/dist/{server/modules → core}/translation-pipeline/types/Pipeline.d.ts +2 -2
- package/dist/{server/modules → core}/translation-pipeline/types/PipelineContext.d.ts +4 -4
- package/dist/{server/modules → core}/translation-pipeline/types/TextChunk.d.ts +3 -3
- package/dist/{server/modules → core}/translation-pipeline/types/TextChunk.js +2 -2
- package/dist/core/translation-pipeline/types/index.d.ts +5 -0
- package/dist/core/translation-pipeline/types/index.js +3 -0
- package/dist/core/translation-providers/index.d.ts +1 -0
- package/dist/core/translation-providers/index.js +5 -0
- package/dist/core/utils/index.d.ts +2 -0
- package/dist/core/utils/index.js +4 -0
- package/dist/{server/shared → core}/utils/isEmpty.js +2 -2
- package/dist/{server/shared → core}/utils/isObject.js +1 -1
- package/dist/field-actions.d.ts +1 -1
- package/dist/field-config.d.ts +1 -1
- package/dist/field-config.js +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +4 -4
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.js +1 -1
- package/dist/server/features/_lib/collection-utils.d.ts +1 -1
- package/dist/server/features/_lib/index.d.ts +1 -1
- package/dist/server/features/_lib/index.js +1 -1
- package/dist/server/features/cancel/index.d.ts +1 -1
- package/dist/server/features/cancel/index.js +1 -1
- package/dist/server/features/cancel-by-collection/index.d.ts +1 -1
- package/dist/server/features/cancel-by-collection/index.js +1 -1
- package/dist/server/features/cancel-by-collection/model.d.ts +2 -2
- package/dist/server/features/cancel-by-collection/model.js +1 -1
- package/dist/server/features/createTranslationRoutes.d.ts +1 -1
- package/dist/server/features/enqueue-translation/index.d.ts +1 -1
- package/dist/server/features/enqueue-translation/index.js +1 -1
- package/dist/server/features/enqueue-translation/model.d.ts +2 -2
- package/dist/server/features/enqueue-translation/model.js +4 -4
- package/dist/server/features/get-collection-status/index.d.ts +1 -1
- package/dist/server/features/get-collection-status/index.js +1 -1
- package/dist/server/features/get-collection-status/model.d.ts +3 -3
- package/dist/server/features/get-collection-status/model.js +1 -1
- package/dist/server/features/get-document-status/index.d.ts +2 -2
- package/dist/server/features/get-document-status/index.js +2 -2
- package/dist/server/features/run-translation/index.d.ts +1 -1
- package/dist/server/features/run-translation/index.js +1 -1
- package/dist/server/features/translate-document/handler.d.ts +3 -2
- package/dist/server/features/translate-document/handler.js +1 -1
- package/dist/server/features/translate-document/index.d.ts +1 -1
- package/dist/server/features/translate-document/model.d.ts +2 -7
- package/dist/server/features/translate-document/model.js +1 -2
- package/dist/server/features/translate-field/handler.js +1 -1
- package/dist/server/features/translate-field/index.d.ts +2 -1
- package/dist/server/features/translate-field/model.d.ts +2 -19
- package/dist/server/features/translate-field/resolveFieldSubtree.js +1 -1
- package/dist/server/features/translate-field/route.d.ts +1 -1
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +3 -3
- package/dist/server/modules/index.d.ts +2 -2
- package/dist/server/modules/index.js +2 -2
- package/dist/server/modules/task-runner/TaskRunner.interface.d.ts +2 -2
- package/dist/server/modules/task-runner/TaskRunnerProvider.interface.d.ts +1 -1
- package/dist/server/modules/task-runner/index.d.ts +1 -1
- package/dist/server/modules/task-runner/payload-jobs-runner/index.d.ts +2 -2
- package/dist/server/modules/task-runner/payload-jobs-runner/index.js +1 -1
- package/dist/server/modules/task-runner/sync-runner/index.d.ts +1 -1
- package/dist/server/modules/task-runner/sync-runner/index.js +1 -1
- package/dist/server/modules/translation-levels/PluginConfigBuilder.d.ts +3 -3
- package/dist/server/modules/translation-levels/index.d.ts +1 -4
- package/dist/server/modules/translation-levels/index.js +1 -3
- package/dist/server/modules/translation-levels/types.d.ts +3 -3
- package/dist/server/shared/access/AnyAccessGuard.d.ts +1 -1
- package/dist/server/shared/access/handler.d.ts +1 -1
- package/dist/server/shared/access/index.d.ts +3 -3
- package/dist/server/shared/access/index.js +1 -1
- package/dist/server/shared/access/types.d.ts +1 -1
- package/dist/server/shared/guards/collection-guards.d.ts +1 -1
- package/dist/server/shared/guards/collection-guards.js +2 -2
- package/dist/server/shared/guards/field-guards.d.ts +9 -20
- package/dist/server/shared/guards/field-guards.js +5 -20
- package/dist/server/shared/guards/index.d.ts +3 -3
- package/dist/server/shared/guards/index.js +2 -2
- package/dist/server/shared/http/ServerResponse.js +15 -15
- package/dist/server/shared/http/index.d.ts +3 -3
- package/dist/server/shared/http/index.js +3 -3
- package/dist/server/shared/http/withAccessCheck.d.ts +2 -2
- package/dist/server/shared/http/withAccessCheck.js +1 -1
- package/dist/server/shared/http/withErrorHandler.js +3 -3
- package/dist/server/shared/index.d.ts +6 -5
- package/dist/server/shared/index.js +4 -3
- package/dist/server/shared/utils/filterLocalizedFields.js +2 -2
- package/dist/server/shared/utils/getByPath.js +2 -2
- package/dist/server/shared/utils/index.d.ts +9 -9
- package/dist/server/shared/utils/index.js +8 -8
- package/dist/server/shared/utils/normalizePath.js +3 -3
- package/dist/server/shared/utils/setByPath.js +2 -2
- package/dist/translation-providers/index.d.ts +2 -0
- package/dist/translation-providers/index.js +10 -0
- package/dist/{server/modules/translation-providers → translation-providers/openai}/OpenAITranslation.provider.d.ts +1 -1
- package/dist/{server/modules/translation-providers → translation-providers/openai}/OpenAITranslation.provider.js +1 -1
- package/dist/translation-providers/openai/index.d.ts +1 -0
- package/dist/translation-providers/openai/index.js +5 -0
- package/dist/types/CollectionSchemaMap.d.ts +6 -0
- package/dist/types/CollectionSchemaMap.js +6 -0
- package/dist/{client/shared/types → types}/PayloadComponentExport.d.ts +1 -1
- package/dist/types/index.d.ts +4 -1
- package/dist/types/wire/field-translation.d.ts +17 -0
- package/dist/types/wire/field-translation.js +7 -0
- package/package.json +3 -1
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.js +0 -4
- package/dist/server/modules/translation-pipeline/stages/field-collector/index.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/stages/field-collector/index.js +0 -4
- package/dist/server/modules/translation-pipeline/stages/index.d.ts +0 -6
- package/dist/server/modules/translation-pipeline/stages/index.js +0 -7
- package/dist/server/modules/translation-pipeline/stages/text-expander/index.d.ts +0 -6
- package/dist/server/modules/translation-pipeline/stages/text-expander/index.js +0 -6
- package/dist/server/modules/translation-pipeline/stages/translation/index.d.ts +0 -1
- package/dist/server/modules/translation-pipeline/stages/translation/index.js +0 -3
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.d.ts +0 -2
- package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.js +0 -4
- package/dist/server/modules/translation-pipeline/strategies/index.d.ts +0 -13
- package/dist/server/modules/translation-pipeline/types/index.d.ts +0 -5
- package/dist/server/modules/translation-pipeline/types/index.js +0 -3
- package/dist/server/modules/translation-providers/index.d.ts +0 -2
- package/dist/server/modules/translation-providers/index.js +0 -3
- package/dist/server/shared/field-config/getFieldConfig.d.ts +0 -20
- package/dist/server/shared/field-config/index.js +0 -4
- package/dist/server/shared/field-traversal/index.d.ts +0 -5
- package/dist/server/shared/field-traversal/index.js +0 -5
- package/dist/server/shared/lexical/index.d.ts +0 -6
- package/dist/server/shared/lexical/index.js +0 -6
- package/dist/server/shared/lexical/types.d.ts +0 -19
- package/dist/server/shared/lexical/types.js +0 -8
- /package/dist/{server/shared → core}/field-config/types.d.ts +0 -0
- /package/dist/{server/shared → core}/field-config/types.js +0 -0
- /package/dist/{server/shared → core}/field-traversal/findFieldByPath.js +0 -0
- /package/dist/{server/shared → core}/field-traversal/walkFields.js +0 -0
- /package/dist/{server/modules → core}/translation-pipeline/index.d.ts +0 -0
- /package/dist/{server/modules → core}/translation-pipeline/index.js +0 -0
- /package/dist/{server/modules → core}/translation-pipeline/stages/data-reconciler/DataReconciler.stage.d.ts +0 -0
- /package/dist/{server/modules → core}/translation-pipeline/stages/data-reconciler/DataReconciler.stage.js +0 -0
- /package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextChunkExpander.js +0 -0
- /package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextExpander.interface.js +0 -0
- /package/dist/{server/modules → core}/translation-pipeline/strategies/TranslationStrategy.interface.d.ts +0 -0
- /package/dist/{server/modules → core}/translation-pipeline/strategies/TranslationStrategy.interface.js +0 -0
- /package/dist/{server/modules → core}/translation-pipeline/translateContent.js +0 -0
- /package/dist/{server/modules → core}/translation-pipeline/types/FieldChunk.js +0 -0
- /package/dist/{server/modules → core}/translation-pipeline/types/Pipeline.js +0 -0
- /package/dist/{server/modules → core}/translation-pipeline/types/PipelineContext.js +0 -0
- /package/dist/{server/modules → core}/translation-providers/TranslationProvider.interface.d.ts +0 -0
- /package/dist/{server/modules → core}/translation-providers/TranslationProvider.interface.js +0 -0
- /package/dist/{server/shared → core}/utils/isEmpty.d.ts +0 -0
- /package/dist/{server/shared → core}/utils/isObject.d.ts +0 -0
- /package/dist/{client/shared/types → types}/PayloadComponentExport.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from "./Loading";
|
|
@@ -12,5 +12,5 @@ type PopupProps = PropsWithChildren<{
|
|
|
12
12
|
*/
|
|
13
13
|
onOpenAutoFocus?: (event: Event) => void;
|
|
14
14
|
}>;
|
|
15
|
-
declare function Popup({ open, children, onOpenChange, $trigger, $align, $side, onOpenAutoFocus }: PopupProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function Popup({ open, children, onOpenChange, $trigger, $align, $side, onOpenAutoFocus, }: PopupProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export default Popup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from "./Popup";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type ProgressBarProps = {
|
|
2
2
|
percentage: number;
|
|
3
|
-
size?:
|
|
4
|
-
color?:
|
|
3
|
+
size?: "small" | "medium" | "large";
|
|
4
|
+
color?: "blue" | "green" | "red" | "gray";
|
|
5
5
|
showPercentage?: boolean;
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import classNames from
|
|
3
|
-
import styles from
|
|
4
|
-
export default function ProgressBar({ percentage, size =
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import styles from "./styles.module.scss";
|
|
4
|
+
export default function ProgressBar({ percentage, size = "medium", color = "blue", showPercentage = true, className }) {
|
|
5
5
|
const clampedPercentage = Math.max(0, Math.min(100, percentage));
|
|
6
6
|
return /*#__PURE__*/ _jsxs("div", {
|
|
7
7
|
className: classNames(styles.container, className),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as ProgressBar } from
|
|
1
|
+
export { default as ProgressBar } from "./ProgressBar";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from "./Select";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
type StatusCounterProps = {
|
|
2
|
-
status:
|
|
2
|
+
status: "pending" | "running" | "completed" | "failed";
|
|
3
3
|
count: number;
|
|
4
4
|
label?: string;
|
|
5
5
|
animated?: boolean;
|
|
6
|
-
size?:
|
|
6
|
+
size?: "small" | "medium";
|
|
7
7
|
className?: string;
|
|
8
8
|
};
|
|
9
9
|
export default function StatusCounter({ status, count, label, animated, size, className, }: StatusCounterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import classNames from
|
|
3
|
-
import StatusIndicator from
|
|
4
|
-
import styles from
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import StatusIndicator from "../StatusIndicator";
|
|
4
|
+
import styles from "./styles.module.scss";
|
|
5
5
|
const statusColorMap = {
|
|
6
|
-
pending:
|
|
7
|
-
running:
|
|
8
|
-
completed:
|
|
9
|
-
failed:
|
|
6
|
+
pending: "gray",
|
|
7
|
+
running: "blue",
|
|
8
|
+
completed: "green",
|
|
9
|
+
failed: "red"
|
|
10
10
|
};
|
|
11
11
|
const statusLabelMap = {
|
|
12
|
-
pending:
|
|
13
|
-
running:
|
|
14
|
-
completed:
|
|
15
|
-
failed:
|
|
12
|
+
pending: "В очереди",
|
|
13
|
+
running: "В процессе",
|
|
14
|
+
completed: "Завершено",
|
|
15
|
+
failed: "Ошибки"
|
|
16
16
|
};
|
|
17
|
-
export default function StatusCounter({ status, count, label, animated = false, size =
|
|
17
|
+
export default function StatusCounter({ status, count, label, animated = false, size = "medium", className }) {
|
|
18
18
|
const displayLabel = label || statusLabelMap[status];
|
|
19
19
|
const color = statusColorMap[status];
|
|
20
20
|
return /*#__PURE__*/ _jsxs("div", {
|
|
@@ -22,7 +22,7 @@ export default function StatusCounter({ status, count, label, animated = false,
|
|
|
22
22
|
children: [
|
|
23
23
|
/*#__PURE__*/ _jsx(StatusIndicator, {
|
|
24
24
|
$color: color,
|
|
25
|
-
$animated: animated && status ===
|
|
25
|
+
$animated: animated && status === "running",
|
|
26
26
|
className: styles.indicator
|
|
27
27
|
}),
|
|
28
28
|
/*#__PURE__*/ _jsxs("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as StatusCounter } from
|
|
1
|
+
export { default as StatusCounter } from "./StatusCounter";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { PropsWithChildren } from
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
2
|
type StatusIndicatorProps = PropsWithChildren<{
|
|
3
|
-
$color:
|
|
3
|
+
$color: "red" | "green" | "blue" | "gray";
|
|
4
4
|
$animated?: boolean;
|
|
5
5
|
title?: string;
|
|
6
6
|
className?: string;
|
|
7
7
|
}>;
|
|
8
|
-
export default function StatusIndicator({ $color, $animated, title, className, children }: StatusIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default function StatusIndicator({ $color, $animated, title, className, children, }: StatusIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import classNames from
|
|
3
|
-
import ColorIndicator from
|
|
4
|
-
import styles from
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import ColorIndicator from "../ColorIndicator";
|
|
4
|
+
import styles from "./styles.module.scss";
|
|
5
5
|
export default function StatusIndicator({ $color, $animated, title, className, children }) {
|
|
6
|
-
const cardClassName = classNames(styles[
|
|
6
|
+
const cardClassName = classNames(styles["status-indicator"], styles[$color], className);
|
|
7
7
|
return /*#__PURE__*/ _jsxs("div", {
|
|
8
8
|
className: cardClassName,
|
|
9
9
|
children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from "./StatusIndicator";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ReactNode } from
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
2
|
type TooltipProps = {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
content: ReactNode;
|
|
5
|
-
side?:
|
|
5
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
6
6
|
sideOffset?: number;
|
|
7
7
|
delayDuration?: number;
|
|
8
8
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import * as RadixTooltip from
|
|
4
|
-
import styles from
|
|
5
|
-
export default function Tooltip({ children, content, side =
|
|
3
|
+
import * as RadixTooltip from "@radix-ui/react-tooltip";
|
|
4
|
+
import styles from "./styles.module.scss";
|
|
5
|
+
export default function Tooltip({ children, content, side = "top", sideOffset = 6, delayDuration = 200 }) {
|
|
6
6
|
return /*#__PURE__*/ _jsx(RadixTooltip.Provider, {
|
|
7
7
|
delayDuration: delayDuration,
|
|
8
8
|
children: /*#__PURE__*/ _jsxs(RadixTooltip.Root, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from "./Tooltip";
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
animation-duration: 150ms;
|
|
15
15
|
animation-timing-function: ease-out;
|
|
16
16
|
|
|
17
|
-
&[data-state=
|
|
17
|
+
&[data-state="delayed-open"][data-side="top"] {
|
|
18
18
|
animation-name: slideDownAndFade;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
&[data-state=
|
|
21
|
+
&[data-state="delayed-open"][data-side="bottom"] {
|
|
22
22
|
animation-name: slideUpAndFade;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
&[data-state=
|
|
25
|
+
&[data-state="delayed-open"][data-side="left"] {
|
|
26
26
|
animation-name: slideRightAndFade;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
&[data-state=
|
|
29
|
+
&[data-state="delayed-open"][data-side="right"] {
|
|
30
30
|
animation-name: slideLeftAndFade;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -81,4 +81,4 @@
|
|
|
81
81
|
opacity: 1;
|
|
82
82
|
transform: translateX(0);
|
|
83
83
|
}
|
|
84
|
-
}
|
|
84
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useId } from
|
|
3
|
-
import { useController } from
|
|
4
|
-
import { Checkbox } from
|
|
5
|
-
import Description from
|
|
6
|
-
import styles from
|
|
2
|
+
import { useId } from "react";
|
|
3
|
+
import { useController } from "react-hook-form";
|
|
4
|
+
import { Checkbox } from "../../Checkbox";
|
|
5
|
+
import Description from "../../Description";
|
|
6
|
+
import styles from "./styles.module.scss";
|
|
7
7
|
export function FormCheckbox({ name, label, description, disabled, className }) {
|
|
8
8
|
const formControl = useController({
|
|
9
9
|
name
|
|
@@ -12,7 +12,7 @@ export function FormCheckbox({ name, label, description, disabled, className })
|
|
|
12
12
|
const descriptionId = useId();
|
|
13
13
|
const inputId = useId();
|
|
14
14
|
return /*#__PURE__*/ _jsxs("div", {
|
|
15
|
-
className: `${styles.container} ${className ??
|
|
15
|
+
className: `${styles.container} ${className ?? ""}`,
|
|
16
16
|
children: [
|
|
17
17
|
/*#__PURE__*/ _jsxs("label", {
|
|
18
18
|
className: styles.label,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FormCheckbox } from
|
|
1
|
+
export { FormCheckbox } from "./FormCheckbox";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { FormCheckbox } from
|
|
3
|
-
import Tooltip from
|
|
4
|
-
import { QuestionCircleIcon } from
|
|
5
|
-
import styles from
|
|
6
|
-
const PUBLISH_LABEL =
|
|
2
|
+
import { FormCheckbox } from "../FormCheckbox";
|
|
3
|
+
import Tooltip from "../../Tooltip";
|
|
4
|
+
import { QuestionCircleIcon } from "../../../lib/assets/icons/QuestionCircleIcon";
|
|
5
|
+
import styles from "./styles.module.scss";
|
|
6
|
+
const PUBLISH_LABEL = "Publish after translation";
|
|
7
7
|
const PUBLISH_TOOLTIP = /*#__PURE__*/ _jsxs(_Fragment, {
|
|
8
8
|
children: [
|
|
9
9
|
"When enabled, translated documents will be published immediately.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FormCheckboxPublish } from
|
|
1
|
+
export { FormCheckboxPublish } from "./FormCheckboxPublish";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactElement } from
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
2
|
type FormSelectProps = {
|
|
3
3
|
name: string;
|
|
4
4
|
required?: boolean;
|
|
@@ -10,10 +10,10 @@ type FormSelectProps = {
|
|
|
10
10
|
description?: string;
|
|
11
11
|
placeholder?: string;
|
|
12
12
|
disabled?: boolean;
|
|
13
|
-
size?:
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
size?: "sm" | "md" | "lg";
|
|
14
|
+
"aria-label"?: string;
|
|
15
|
+
"aria-labelledby"?: string;
|
|
16
16
|
className?: string;
|
|
17
17
|
};
|
|
18
|
-
export default function FormSelect({ name, required, options, label, description, disabled, size, placeholder,
|
|
18
|
+
export default function FormSelect({ name, required, options, label, description, disabled, size, placeholder, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, className, }: FormSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useId } from
|
|
3
|
-
import { useController } from
|
|
4
|
-
import Description from
|
|
5
|
-
import Label from
|
|
6
|
-
import Select from
|
|
7
|
-
export default function FormSelect({ name, required, options, label, description, disabled, size, placeholder,
|
|
2
|
+
import { useId } from "react";
|
|
3
|
+
import { useController } from "react-hook-form";
|
|
4
|
+
import Description from "../../Description";
|
|
5
|
+
import Label from "../../Label";
|
|
6
|
+
import Select from "../../Select";
|
|
7
|
+
export default function FormSelect({ name, required, options, label, description, disabled, size, placeholder, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, className }) {
|
|
8
8
|
const formControl = useController({
|
|
9
9
|
name,
|
|
10
10
|
rules: {
|
|
@@ -19,16 +19,16 @@ export default function FormSelect({ name, required, options, label, description
|
|
|
19
19
|
}
|
|
20
20
|
if (ariaLabelledby) {
|
|
21
21
|
return {
|
|
22
|
-
|
|
22
|
+
"aria-labelledby": ariaLabelledby
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
if (ariaLabel) {
|
|
26
26
|
return {
|
|
27
|
-
|
|
27
|
+
"aria-label": ariaLabel
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
return {
|
|
31
|
-
|
|
31
|
+
"aria-label": "Select option"
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
const selectElement = /*#__PURE__*/ _jsxs(Select, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from "./FormSelect";
|
|
@@ -4,7 +4,7 @@ type FormSelectProps = {
|
|
|
4
4
|
label?: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
|
-
size?:
|
|
7
|
+
size?: "sm" | "md" | "lg";
|
|
8
8
|
className?: string;
|
|
9
9
|
};
|
|
10
10
|
export default function FormSelectLocale({ name, required, label, description, disabled, size, className, }: FormSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useLocaleOptions } from
|
|
3
|
-
import FormSelect from
|
|
2
|
+
import { useLocaleOptions } from "../../../lib/payload/hooks/useLocaleOptions";
|
|
3
|
+
import FormSelect from "../FormSelect";
|
|
4
4
|
export default function FormSelectLocale({ name, required, label, description, disabled, size, className }) {
|
|
5
5
|
const localeOptions = useLocaleOptions();
|
|
6
6
|
return /*#__PURE__*/ _jsx(FormSelect, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from "./FormSelectLocale";
|
|
@@ -10,9 +10,9 @@ type FormSelectStrategyProps = {
|
|
|
10
10
|
required?: boolean;
|
|
11
11
|
description?: string;
|
|
12
12
|
disabled?: boolean;
|
|
13
|
-
size?:
|
|
13
|
+
size?: "sm" | "md" | "lg";
|
|
14
14
|
className?: string;
|
|
15
15
|
};
|
|
16
16
|
export declare function FormSelectStrategy({ name, required, description, disabled, size, className, }: FormSelectStrategyProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export type TranslationStrategy = (typeof STRATEGY_OPTIONS)[number][
|
|
17
|
+
export type TranslationStrategy = (typeof STRATEGY_OPTIONS)[number]["value"];
|
|
18
18
|
export {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import FormSelect from
|
|
3
|
-
import Tooltip from
|
|
4
|
-
import { QuestionCircleIcon } from
|
|
5
|
-
import styles from
|
|
2
|
+
import FormSelect from "../FormSelect";
|
|
3
|
+
import Tooltip from "../../Tooltip";
|
|
4
|
+
import { QuestionCircleIcon } from "../../../lib/assets/icons/QuestionCircleIcon";
|
|
5
|
+
import styles from "./styles.module.scss";
|
|
6
6
|
const STRATEGY_OPTIONS = [
|
|
7
7
|
{
|
|
8
|
-
value:
|
|
9
|
-
label:
|
|
8
|
+
value: "overwrite",
|
|
9
|
+
label: "Overwrite"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
|
-
value:
|
|
13
|
-
label:
|
|
12
|
+
value: "skip_existing",
|
|
13
|
+
label: "Skip existing"
|
|
14
14
|
}
|
|
15
15
|
];
|
|
16
|
-
const STRATEGY_LABEL =
|
|
16
|
+
const STRATEGY_LABEL = "Update mode";
|
|
17
17
|
const STRATEGY_TOOLTIP = /*#__PURE__*/ _jsxs(_Fragment, {
|
|
18
18
|
children: [
|
|
19
19
|
/*#__PURE__*/ _jsx("strong", {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { FormSelectStrategy } from
|
|
2
|
-
export type { TranslationStrategy } from
|
|
1
|
+
export { FormSelectStrategy } from "./FormSelectStrategy";
|
|
2
|
+
export type { TranslationStrategy } from "./FormSelectStrategy";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const PACKAGE_NAME =
|
|
1
|
+
const PACKAGE_NAME = "@focus-reactive/payload-plugin-translator";
|
|
2
2
|
/**
|
|
3
3
|
* Creates a full path to a client component for Payload's import map.
|
|
4
4
|
* @param relativePath - Path relative to the client folder (e.g., 'widgets/translate-document/ui/TranslateDocument.server')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { BulkDocumentTranslationDashboard } from
|
|
1
|
+
export { BulkDocumentTranslationDashboard } from "./ui/BulkTranslationDashboard.export";
|
package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AccessGuard } from
|
|
2
|
-
import type { RawPayloadComponentExport } from
|
|
1
|
+
import type { AccessGuard } from "../../../../types/AccessGuard";
|
|
2
|
+
import type { RawPayloadComponentExport } from "../../../../types/PayloadComponentExport";
|
|
3
3
|
export declare class BulkDocumentTranslationDashboard implements RawPayloadComponentExport {
|
|
4
4
|
readonly access: AccessGuard;
|
|
5
5
|
serverProps?: object | Record<string, any> | undefined;
|
package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AnyAccessGuard } from
|
|
2
|
-
import { clientComponentPath } from
|
|
1
|
+
import { AnyAccessGuard } from "../../../../server/shared";
|
|
2
|
+
import { clientComponentPath } from "../../../shared/utils/componentPath";
|
|
3
3
|
export class BulkDocumentTranslationDashboard {
|
|
4
4
|
access;
|
|
5
5
|
serverProps;
|
|
6
6
|
constructor(access = new AnyAccessGuard()){
|
|
7
7
|
this.access = access;
|
|
8
|
-
this.path = clientComponentPath(
|
|
8
|
+
this.path = clientComponentPath("widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server");
|
|
9
9
|
this.serverProps = {
|
|
10
10
|
access
|
|
11
11
|
};
|