@neurodyn/react-ai-try-on 0.0.3 → 0.0.4
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/index.d.ts +2 -0
- package/dist/index.js +6 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ declare const resources: {
|
|
|
52
52
|
readonly download: "Download";
|
|
53
53
|
readonly errorBadge: "Little error";
|
|
54
54
|
readonly errorDifferentPhoto: "Change photo";
|
|
55
|
+
readonly errorFileTooLarge: "File is too large. Maximum file size is 10 MB";
|
|
55
56
|
readonly errorGuidance: "Try again with a different photo. Make sure it shows your full body.";
|
|
56
57
|
readonly errorRetry: "Try again";
|
|
57
58
|
readonly errorSubtitle: "It happens — let's try again";
|
|
@@ -164,6 +165,7 @@ declare const resources: {
|
|
|
164
165
|
readonly download: "Скачать";
|
|
165
166
|
readonly errorBadge: "Небольшая ошибка";
|
|
166
167
|
readonly errorDifferentPhoto: "Изменить фото";
|
|
168
|
+
readonly errorFileTooLarge: "Файл слишком большой. Максимальный размер файла — 10 МБ";
|
|
167
169
|
readonly errorGuidance: "Попробуйте другое фото. Убедитесь, что вы видны в полный рост.";
|
|
168
170
|
readonly errorRetry: "Попробовать снова";
|
|
169
171
|
readonly errorSubtitle: "Так бывает — попробуем еще раз";
|
package/dist/index.js
CHANGED
|
@@ -10161,6 +10161,7 @@ const ns1 = {
|
|
|
10161
10161
|
download: 'Download',
|
|
10162
10162
|
errorBadge: 'Little error',
|
|
10163
10163
|
errorDifferentPhoto: 'Change photo',
|
|
10164
|
+
errorFileTooLarge: 'File is too large. Maximum file size is 10 MB',
|
|
10164
10165
|
errorGuidance: 'Try again with a different photo. Make sure it shows your full body.',
|
|
10165
10166
|
errorRetry: 'Try again',
|
|
10166
10167
|
errorSubtitle: 'It happens — let\'s try again',
|
|
@@ -10271,6 +10272,7 @@ const ru_ns1 = {
|
|
|
10271
10272
|
download: 'Скачать',
|
|
10272
10273
|
errorBadge: 'Небольшая ошибка',
|
|
10273
10274
|
errorDifferentPhoto: 'Изменить фото',
|
|
10275
|
+
errorFileTooLarge: 'Файл слишком большой. Максимальный размер файла — 10 МБ',
|
|
10274
10276
|
errorGuidance: 'Попробуйте другое фото. Убедитесь, что вы видны в полный рост.',
|
|
10275
10277
|
errorRetry: 'Попробовать снова',
|
|
10276
10278
|
errorSubtitle: 'Так бывает — попробуем еще раз',
|
|
@@ -19091,11 +19093,12 @@ function ProcessingScreen({ view }) {
|
|
|
19091
19093
|
}
|
|
19092
19094
|
function ErrorScreen({ view }) {
|
|
19093
19095
|
const { t } = useTranslation();
|
|
19096
|
+
const isFileTooLarge = 'upload-validation' === view.error.kind && 'file-too-large' === view.error.code;
|
|
19094
19097
|
return /*#__PURE__*/ jsxs(ScreenLayout, {
|
|
19095
|
-
title: t('errorTitle'),
|
|
19096
|
-
subtitle: t('errorSubtitle'),
|
|
19098
|
+
title: t(isFileTooLarge ? 'errorFileTooLarge' : 'errorTitle'),
|
|
19099
|
+
subtitle: isFileTooLarge ? void 0 : t('errorSubtitle'),
|
|
19097
19100
|
children: [
|
|
19098
|
-
/*#__PURE__*/ jsxs(TryOnImagePanel, {
|
|
19101
|
+
!isFileTooLarge && /*#__PURE__*/ jsxs(TryOnImagePanel, {
|
|
19099
19102
|
className: "mt-3",
|
|
19100
19103
|
children: [
|
|
19101
19104
|
/*#__PURE__*/ jsx_runtime_jsx(BlurredPhotoBackdrop, {
|