@primestyleai/tryon 4.4.0 → 4.6.0
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/api-client.d.ts +2 -2
- package/dist/i18n.d.ts +20 -0
- package/dist/index-J6U0-q_3.js +2638 -0
- package/dist/index.d.ts +2 -1
- package/dist/locales/ar.d.ts +2 -0
- package/dist/locales/da.d.ts +2 -0
- package/dist/locales/de.d.ts +2 -0
- package/dist/locales/es.d.ts +2 -0
- package/dist/locales/fi.d.ts +2 -0
- package/dist/locales/fr.d.ts +2 -0
- package/dist/locales/index.d.ts +1 -0
- package/dist/locales/it.d.ts +2 -0
- package/dist/locales/ja.d.ts +2 -0
- package/dist/locales/ko.d.ts +2 -0
- package/dist/locales/nb.d.ts +2 -0
- package/dist/locales/nl.d.ts +2 -0
- package/dist/locales/pl.d.ts +2 -0
- package/dist/locales/pt.d.ts +2 -0
- package/dist/locales/ru.d.ts +2 -0
- package/dist/locales/sv.d.ts +2 -0
- package/dist/locales/th.d.ts +2 -0
- package/dist/locales/tr.d.ts +2 -0
- package/dist/locales/vi.d.ts +2 -0
- package/dist/locales/zh.d.ts +2 -0
- package/dist/pose-detect.d.ts +62 -16
- package/dist/primestyle-tryon.css +1 -0
- package/dist/primestyle-tryon.js +14 -3
- package/dist/react/PrimeStyleTryon.d.ts +2 -0
- package/dist/react/PrimeStyleTryonInner.d.ts +2 -0
- package/dist/react/assets/body-illustrations-png.d.ts +36 -0
- package/dist/react/assets/body-illustrations.d.ts +36 -0
- package/dist/react/components/DrawerPanel.d.ts +13 -0
- package/dist/react/components/FullChartOverlay.d.ts +1 -0
- package/dist/react/components/InputRow.d.ts +9 -0
- package/dist/react/components/LangSwitcher.d.ts +4 -0
- package/dist/react/components/ProfileDetailModal.d.ts +10 -0
- package/dist/react/components/ProfileEditView.d.ts +8 -0
- package/dist/react/components/Stepper.d.ts +5 -0
- package/dist/react/components/UnitToggle.d.ts +8 -0
- package/dist/react/constants.d.ts +17 -0
- package/dist/react/icons.d.ts +64 -0
- package/dist/react/index.d.ts +3 -35
- package/dist/react/index.js +6330 -2394
- package/dist/react/styles.d.ts +1 -0
- package/dist/react/types.d.ts +106 -0
- package/dist/react/utils/classnames.d.ts +1 -0
- package/dist/react/utils/locale.d.ts +3 -0
- package/dist/react/utils/storage.d.ts +3 -0
- package/dist/react/utils/units.d.ts +6 -0
- package/dist/react/views/BodyProfileView.d.ts +41 -0
- package/dist/react/views/ErrorView.d.ts +8 -0
- package/dist/react/views/EstimationReviewView.d.ts +21 -0
- package/dist/react/views/HeightPickerView.d.ts +8 -0
- package/dist/react/views/ProcessingView.d.ts +11 -0
- package/dist/react/views/QuizView.d.ts +9 -0
- package/dist/react/views/ResultView.d.ts +4 -0
- package/dist/react/views/SizeResultView.d.ts +27 -0
- package/dist/react/views/SizingChoiceView.d.ts +37 -0
- package/dist/react/views/UploadView.d.ts +14 -0
- package/dist/react/views/WeightPickerView.d.ts +8 -0
- package/dist/react/views/WelcomeView.d.ts +7 -0
- package/dist/sizing/fit-compute.d.ts +15 -0
- package/dist/sizing/normalizer.d.ts +9 -33
- package/dist/types.d.ts +41 -0
- package/package.json +4 -3
- package/dist/index-CZHknuGH.js +0 -2993
package/dist/api-client.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { TryOnResponse, TryOnStatus } from "./types";
|
|
1
|
+
import type { TryOnResponse, TryOnStatus, FitAreaInfo } from "./types";
|
|
2
2
|
export declare class ApiClient {
|
|
3
3
|
private apiKey;
|
|
4
4
|
private baseUrl;
|
|
5
5
|
constructor(apiKey: string, apiUrl?: string);
|
|
6
6
|
private get headers();
|
|
7
|
-
submitTryOn(modelImage: string, garmentImage: string): Promise<TryOnResponse>;
|
|
7
|
+
submitTryOn(modelImage: string, garmentImage: string, fitInfo?: FitAreaInfo[]): Promise<TryOnResponse>;
|
|
8
8
|
getStatus(jobId: string): Promise<TryOnStatus>;
|
|
9
9
|
getStreamUrl(): string;
|
|
10
10
|
}
|
package/dist/i18n.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* i18n — lightweight pass-through translation module.
|
|
3
|
+
*
|
|
4
|
+
* English keys are used as-is (the key IS the English text).
|
|
5
|
+
* Additional languages can be registered at runtime via `registerLocale()`.
|
|
6
|
+
*/
|
|
7
|
+
export type TranslateFn = (key: string) => string;
|
|
8
|
+
export declare function registerLocale(code: string, translations: Record<string, string>): void;
|
|
9
|
+
/**
|
|
10
|
+
* Create a translate function for a given locale.
|
|
11
|
+
* For "en" (or when no locale pack is registered), the key itself is the English text.
|
|
12
|
+
*/
|
|
13
|
+
export declare function createT(locale?: string): TranslateFn;
|
|
14
|
+
/**
|
|
15
|
+
* Detect the best locale from the browser environment.
|
|
16
|
+
*/
|
|
17
|
+
export declare function detectLanguage(): string;
|
|
18
|
+
export declare const SUPPORTED_LOCALES: string[];
|
|
19
|
+
export declare const LOCALE_LABELS: Record<string, string>;
|
|
20
|
+
export declare const TRANSLATION_KEYS: string[];
|