zakeke-configurator-react 0.1.271 → 0.1.273-prod

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.
Files changed (27) hide show
  1. package/dist/declarations/composer/Module/src/api.d.ts +3 -3
  2. package/dist/declarations/composer/Module/src/components/customizer.d.ts +9 -9
  3. package/dist/declarations/composer/Module/src/components/debug/debugPanel.d.ts +6 -6
  4. package/dist/declarations/composer/Module/src/components/tryon/tryOnFrame.d.ts +10 -10
  5. package/dist/declarations/composer/Module/src/components/tryon/tryOnModels.d.ts +69 -69
  6. package/dist/declarations/composer/Module/src/components/tryon/tryOnProviders/tryOnBanuba.d.ts +22 -22
  7. package/dist/declarations/composer/Module/src/components/tryon/tryOnProviders/tryOnMazing.d.ts +57 -57
  8. package/dist/declarations/composer/Module/src/components/tryon/tryOnViewer.d.ts +41 -41
  9. package/dist/declarations/composer/Module/src/exceptions.d.ts +19 -19
  10. package/dist/declarations/composer/Module/src/fontsManager.d.ts +75 -75
  11. package/dist/declarations/composer/Module/src/helpers.d.ts +58 -58
  12. package/dist/declarations/composer/Module/src/hooks/tryonContext.d.ts +11 -11
  13. package/dist/declarations/composer/Module/src/hooks/useZakeke.d.ts +9 -9
  14. package/dist/declarations/composer/Module/src/index.d.ts +10 -10
  15. package/dist/declarations/composer/Module/src/integrations/Helpers.d.ts +2 -2
  16. package/dist/declarations/composer/Module/src/integrations/Integration.d.ts +24 -24
  17. package/dist/declarations/composer/Module/src/integrations/generic.d.ts +16 -16
  18. package/dist/declarations/composer/Module/src/integrations/preview.d.ts +16 -16
  19. package/dist/declarations/composer/Module/src/state/boot.d.ts +8 -8
  20. package/dist/declarations/composer/Module/src/state/createProviderValue.d.ts +3 -3
  21. package/dist/declarations/composer/Module/src/state/provider.d.ts +16 -16
  22. package/dist/declarations/composer/Module/src/state/reducer.d.ts +3 -3
  23. package/dist/declarations/libs/pricingRuleBase/DesignPriceCalculatorRuleBased.d.ts +80 -80
  24. package/dist/declarations/libs/pricingRuleBase/pricing_model.graphql.d.ts +40 -40
  25. package/dist/declarations/utils/rectangle.d.ts +14 -14
  26. package/dist/index.js +2049 -2049
  27. package/package.json +1 -1
@@ -1,3 +1,3 @@
1
- import { AxiosInstance } from 'axios';
2
- export declare let axiosApi: AxiosInstance;
3
- export declare function setupApi(culture: string, token: string): void;
1
+ import { AxiosInstance } from 'axios';
2
+ export declare let axiosApi: AxiosInstance;
3
+ export declare function setupApi(culture: string, token: string): void;
@@ -1,9 +1,9 @@
1
- import * as React from 'react';
2
- interface ExposedMethods {
3
- zoomIn: () => void;
4
- zoomOut: () => void;
5
- }
6
- export declare const ZakekeDesigner: React.ForwardRefExoticComponent<{
7
- areaId: number;
8
- } & React.RefAttributes<ExposedMethods>>;
9
- export {};
1
+ import * as React from 'react';
2
+ interface ExposedMethods {
3
+ zoomIn: () => void;
4
+ zoomOut: () => void;
5
+ }
6
+ export declare const ZakekeDesigner: React.ForwardRefExoticComponent<{
7
+ areaId: number;
8
+ } & React.RefAttributes<ExposedMethods>>;
9
+ export {};
@@ -1,6 +1,6 @@
1
- import { FunctionComponent } from 'react';
2
- import { ZakekeEnvironment } from 'src/environment';
3
- export declare const DebugPanel: FunctionComponent<{
4
- className?: string;
5
- env: ZakekeEnvironment;
6
- }>;
1
+ import { FunctionComponent } from 'react';
2
+ import { ZakekeEnvironment } from 'src/environment';
3
+ export declare const DebugPanel: FunctionComponent<{
4
+ className?: string;
5
+ env: ZakekeEnvironment;
6
+ }>;
@@ -1,10 +1,10 @@
1
- import React, { FunctionComponent } from 'react';
2
- export interface TryOnFrameProps {
3
- className?: string;
4
- providerUrl: string;
5
- providerTitle: string;
6
- outMessageHandler: (e: MessageEvent<any>) => void;
7
- onReady?: (w: Window) => void;
8
- children?: React.ReactNode;
9
- }
10
- export declare const TryOnFrame: FunctionComponent<TryOnFrameProps>;
1
+ import React, { FunctionComponent } from 'react';
2
+ export interface TryOnFrameProps {
3
+ className?: string;
4
+ providerUrl: string;
5
+ providerTitle: string;
6
+ outMessageHandler: (e: MessageEvent<any>) => void;
7
+ onReady?: (w: Window) => void;
8
+ children?: React.ReactNode;
9
+ }
10
+ export declare const TryOnFrame: FunctionComponent<TryOnFrameProps>;
@@ -1,69 +1,69 @@
1
- import { TryOnProvider, TryOnGenericFineTuningSettings, TryOnProduct, TryOnSeller, TryOnFineTuningSettings } from '../../models';
2
- import { MazingPupillaryDistanceStateReceivedMessageType, MazingTryOnReceivedMessageType } from './tryOnProviders/tryOnMazing';
3
- export declare enum TryOnMode {
4
- TryOn = 1,
5
- PDTool = 2
6
- }
7
- export interface TryOnData {
8
- product?: TryOnProduct;
9
- customer?: TryOnSeller;
10
- provider?: TryOnProvider;
11
- mode?: TryOnMode;
12
- obj?: Blob | null;
13
- settings?: TryOnGenericFineTuningSettings;
14
- }
15
- export interface TryOnProviderExchangeData {
16
- type: TryOnProvidersTypeUnion;
17
- value: any;
18
- }
19
- export type TryOnProvidersTypeUnion = MazingTryOnReceivedMessageType | MazingPupillaryDistanceStateReceivedMessageType;
20
- export type ValueOf<T> = T[keyof T];
21
- export declare const TryOnBaseProviderReceivedMessage: {
22
- readonly Start: "";
23
- readonly WaitingAuthentication: "WAITING_AUTH";
24
- readonly AuthSuccessful: "AUTH_SUCCESS";
25
- readonly AuthError: "AUTH_ERROR";
26
- readonly WebcamError: "WEBCAM_ERROR";
27
- };
28
- export declare const TryOnBaseProviderResponseMessage: {};
29
- export declare const PupillaryDistanceBaseProviderReceivedMessage: {
30
- readonly Start: "";
31
- readonly WaitingAuthentication: "WAITING_AUTH";
32
- readonly AuthSuccessful: "AUTH_SUCCESS";
33
- readonly AuthError: "AUTH_ERROR";
34
- };
35
- export declare const PupillaryDistanceBaseProviderResponseMessage: {};
36
- export interface ZakekeTryOnExposedMethods {
37
- closeFrame?: () => void;
38
- takeScreenshot?: () => void;
39
- startPupillaryDistance?: (time: number) => void;
40
- switchToPDTool?: () => void;
41
- switchToTryOn?: () => void;
42
- mode?: TryOnMode;
43
- changeMode?: (mode: TryOnMode) => void;
44
- visible?: boolean;
45
- setVisible?: (visible: boolean) => void;
46
- }
47
- export interface TryOnProviderProps {
48
- className?: string;
49
- obj: Blob;
50
- product: TryOnProduct;
51
- customer: TryOnSeller;
52
- fineTuningSettings?: TryOnFineTuningSettings;
53
- onReady?: () => void;
54
- onLoaded?: () => void;
55
- onClose?: () => void;
56
- onPDUpdated?: (pd: number) => void;
57
- onWebcamError: () => void;
58
- }
59
- export interface PupillaryDistanceProviderProps {
60
- className?: string;
61
- product: TryOnProduct;
62
- customer: TryOnSeller;
63
- onReady?: () => void;
64
- onLoaded?: () => void;
65
- onPDUpdated?: (pd: number) => void;
66
- onClose?: () => void;
67
- onWebcamError: () => void;
68
- }
69
- export declare function parseJSON(json: string): any;
1
+ import { TryOnProvider, TryOnGenericFineTuningSettings, TryOnProduct, TryOnSeller, TryOnFineTuningSettings } from '../../models';
2
+ import { MazingPupillaryDistanceStateReceivedMessageType, MazingTryOnReceivedMessageType } from './tryOnProviders/tryOnMazing';
3
+ export declare enum TryOnMode {
4
+ TryOn = 1,
5
+ PDTool = 2
6
+ }
7
+ export interface TryOnData {
8
+ product?: TryOnProduct;
9
+ customer?: TryOnSeller;
10
+ provider?: TryOnProvider;
11
+ mode?: TryOnMode;
12
+ obj?: Blob | null;
13
+ settings?: TryOnGenericFineTuningSettings;
14
+ }
15
+ export interface TryOnProviderExchangeData {
16
+ type: TryOnProvidersTypeUnion;
17
+ value: any;
18
+ }
19
+ export type TryOnProvidersTypeUnion = MazingTryOnReceivedMessageType | MazingPupillaryDistanceStateReceivedMessageType;
20
+ export type ValueOf<T> = T[keyof T];
21
+ export declare const TryOnBaseProviderReceivedMessage: {
22
+ readonly Start: "";
23
+ readonly WaitingAuthentication: "WAITING_AUTH";
24
+ readonly AuthSuccessful: "AUTH_SUCCESS";
25
+ readonly AuthError: "AUTH_ERROR";
26
+ readonly WebcamError: "WEBCAM_ERROR";
27
+ };
28
+ export declare const TryOnBaseProviderResponseMessage: {};
29
+ export declare const PupillaryDistanceBaseProviderReceivedMessage: {
30
+ readonly Start: "";
31
+ readonly WaitingAuthentication: "WAITING_AUTH";
32
+ readonly AuthSuccessful: "AUTH_SUCCESS";
33
+ readonly AuthError: "AUTH_ERROR";
34
+ };
35
+ export declare const PupillaryDistanceBaseProviderResponseMessage: {};
36
+ export interface ZakekeTryOnExposedMethods {
37
+ closeFrame?: () => void;
38
+ takeScreenshot?: () => void;
39
+ startPupillaryDistance?: (time: number) => void;
40
+ switchToPDTool?: () => void;
41
+ switchToTryOn?: () => void;
42
+ mode?: TryOnMode;
43
+ changeMode?: (mode: TryOnMode) => void;
44
+ visible?: boolean;
45
+ setVisible?: (visible: boolean) => void;
46
+ }
47
+ export interface TryOnProviderProps {
48
+ className?: string;
49
+ obj: Blob;
50
+ product: TryOnProduct;
51
+ customer: TryOnSeller;
52
+ fineTuningSettings?: TryOnFineTuningSettings;
53
+ onReady?: () => void;
54
+ onLoaded?: () => void;
55
+ onClose?: () => void;
56
+ onPDUpdated?: (pd: number) => void;
57
+ onWebcamError: () => void;
58
+ }
59
+ export interface PupillaryDistanceProviderProps {
60
+ className?: string;
61
+ product: TryOnProduct;
62
+ customer: TryOnSeller;
63
+ onReady?: () => void;
64
+ onLoaded?: () => void;
65
+ onPDUpdated?: (pd: number) => void;
66
+ onClose?: () => void;
67
+ onWebcamError: () => void;
68
+ }
69
+ export declare function parseJSON(json: string): any;
@@ -1,22 +1,22 @@
1
- import { FunctionComponent } from 'react';
2
- import { TryOnProviderProps, ValueOf } from '../tryOnModels';
3
- export declare const BanubaTryOnReceivedMessage: {
4
- readonly WaitingAuthentication: "WAITING_AUTH";
5
- readonly TryOnLoaded: "MODEL_LOADED";
6
- readonly ScreenShotTaken: "SCREENSHOT_TAKEN";
7
- readonly WebcamStopped: "WEBCAM_STOPPED";
8
- readonly Start: "";
9
- readonly AuthSuccessful: "AUTH_SUCCESS";
10
- readonly AuthError: "AUTH_ERROR";
11
- readonly WebcamError: "WEBCAM_ERROR";
12
- };
13
- export type BanubaTryOnReceivedMessageType = ValueOf<typeof BanubaTryOnReceivedMessage>;
14
- export declare const BanubaTryOnResponseMessage: {
15
- readonly StartAuthenticationTryOn: "AUTH";
16
- readonly LoadTryOn: "LOAD_MODEL";
17
- readonly LoadHands: "LOAD_HANDS";
18
- readonly TakeScreenshot: "TAKE_SCREENSHOT";
19
- readonly StopWebcam: "STOP_WEBCAM";
20
- };
21
- export type BanubaTryOnResponseMessageType = ValueOf<typeof BanubaTryOnResponseMessage>;
22
- export declare const BanubaTryOn: FunctionComponent<TryOnProviderProps>;
1
+ import { FunctionComponent } from 'react';
2
+ import { TryOnProviderProps, ValueOf } from '../tryOnModels';
3
+ export declare const BanubaTryOnReceivedMessage: {
4
+ readonly WaitingAuthentication: "WAITING_AUTH";
5
+ readonly TryOnLoaded: "MODEL_LOADED";
6
+ readonly ScreenShotTaken: "SCREENSHOT_TAKEN";
7
+ readonly WebcamStopped: "WEBCAM_STOPPED";
8
+ readonly Start: "";
9
+ readonly AuthSuccessful: "AUTH_SUCCESS";
10
+ readonly AuthError: "AUTH_ERROR";
11
+ readonly WebcamError: "WEBCAM_ERROR";
12
+ };
13
+ export type BanubaTryOnReceivedMessageType = ValueOf<typeof BanubaTryOnReceivedMessage>;
14
+ export declare const BanubaTryOnResponseMessage: {
15
+ readonly StartAuthenticationTryOn: "AUTH";
16
+ readonly LoadTryOn: "LOAD_MODEL";
17
+ readonly LoadHands: "LOAD_HANDS";
18
+ readonly TakeScreenshot: "TAKE_SCREENSHOT";
19
+ readonly StopWebcam: "STOP_WEBCAM";
20
+ };
21
+ export type BanubaTryOnResponseMessageType = ValueOf<typeof BanubaTryOnResponseMessage>;
22
+ export declare const BanubaTryOn: FunctionComponent<TryOnProviderProps>;
@@ -1,57 +1,57 @@
1
- import { FunctionComponent } from 'react';
2
- import { PupillaryDistanceProviderProps, TryOnProviderProps, ValueOf } from '../tryOnModels';
3
- export declare const MazingTryOnReceivedMessage: {
4
- readonly WaitingAuthentication: "WAITING_AUTH";
5
- readonly TryOnLoaded: "MODEL_LOADED";
6
- readonly ScreenShotTaken: "SCREENSHOT_TAKEN";
7
- readonly WebcamStopped: "WEBCAM_STOPPED";
8
- readonly Start: "";
9
- readonly AuthSuccessful: "AUTH_SUCCESS";
10
- readonly AuthError: "AUTH_ERROR";
11
- readonly WebcamError: "WEBCAM_ERROR";
12
- };
13
- export type MazingTryOnReceivedMessageType = ValueOf<typeof MazingTryOnReceivedMessage>;
14
- export declare const MazingTryOnResponseMessage: {
15
- readonly StartAuthenticationTryOn: "AUTH_TRY_ON";
16
- readonly LoadTryOn: "LOAD_MODEL";
17
- readonly TakeScreenshot: "TAKE_SCREENSHOT";
18
- readonly StopWebcam: "STOP_WEBCAM";
19
- };
20
- export type MazingTryOnResponseMessageType = ValueOf<typeof MazingTryOnResponseMessage>;
21
- declare const MazingPupillaryDistanceBaseStateReceivedMessage: {
22
- readonly PDLoaded: "PD_LOADED";
23
- readonly PDUpdated: "NEW_PD";
24
- readonly PDDataNotFoundError: "PD_ERROR";
25
- readonly WebcamError: "WEBCAM_ERROR";
26
- readonly PDCountdown: "PD_COUNTDOWN";
27
- readonly WebcamStopped: "WEBCAM_STOPPED";
28
- };
29
- export declare const MazingPupillaryDistanceStateReceivedMessage: {
30
- readonly PDLoaded: "PD_LOADED";
31
- readonly PDUpdated: "NEW_PD";
32
- readonly PDDataNotFoundError: "PD_ERROR";
33
- readonly WebcamError: "WEBCAM_ERROR";
34
- readonly PDCountdown: "PD_COUNTDOWN";
35
- readonly WebcamStopped: "WEBCAM_STOPPED";
36
- readonly Start: "";
37
- readonly WaitingAuthentication: "WAITING_AUTH";
38
- readonly AuthSuccessful: "AUTH_SUCCESS";
39
- readonly AuthError: "AUTH_ERROR";
40
- };
41
- export type MazingPupillaryDistanceStateReceivedMessageType = ValueOf<typeof MazingPupillaryDistanceBaseStateReceivedMessage>;
42
- declare const MazingPupillaryDistanceBaseResponseMessage: {
43
- readonly StartAuthenticationPD: "AUTH_TRY_ON";
44
- readonly LoadPD: "LOAD_PD";
45
- readonly StartPD: "START_PD";
46
- readonly StopWebcam: "STOP_WEBCAM";
47
- };
48
- export declare const MazingPupillaryDistanceResponseMessage: {
49
- readonly StartAuthenticationPD: "AUTH_TRY_ON";
50
- readonly LoadPD: "LOAD_PD";
51
- readonly StartPD: "START_PD";
52
- readonly StopWebcam: "STOP_WEBCAM";
53
- };
54
- export type MazingPupillaryDistanceResponseMessageType = ValueOf<typeof MazingPupillaryDistanceBaseResponseMessage>;
55
- export declare const MazingTryOn: FunctionComponent<TryOnProviderProps>;
56
- export declare const MazingPupillaryDistance: FunctionComponent<PupillaryDistanceProviderProps>;
57
- export {};
1
+ import { FunctionComponent } from 'react';
2
+ import { PupillaryDistanceProviderProps, TryOnProviderProps, ValueOf } from '../tryOnModels';
3
+ export declare const MazingTryOnReceivedMessage: {
4
+ readonly WaitingAuthentication: "WAITING_AUTH";
5
+ readonly TryOnLoaded: "MODEL_LOADED";
6
+ readonly ScreenShotTaken: "SCREENSHOT_TAKEN";
7
+ readonly WebcamStopped: "WEBCAM_STOPPED";
8
+ readonly Start: "";
9
+ readonly AuthSuccessful: "AUTH_SUCCESS";
10
+ readonly AuthError: "AUTH_ERROR";
11
+ readonly WebcamError: "WEBCAM_ERROR";
12
+ };
13
+ export type MazingTryOnReceivedMessageType = ValueOf<typeof MazingTryOnReceivedMessage>;
14
+ export declare const MazingTryOnResponseMessage: {
15
+ readonly StartAuthenticationTryOn: "AUTH_TRY_ON";
16
+ readonly LoadTryOn: "LOAD_MODEL";
17
+ readonly TakeScreenshot: "TAKE_SCREENSHOT";
18
+ readonly StopWebcam: "STOP_WEBCAM";
19
+ };
20
+ export type MazingTryOnResponseMessageType = ValueOf<typeof MazingTryOnResponseMessage>;
21
+ declare const MazingPupillaryDistanceBaseStateReceivedMessage: {
22
+ readonly PDLoaded: "PD_LOADED";
23
+ readonly PDUpdated: "NEW_PD";
24
+ readonly PDDataNotFoundError: "PD_ERROR";
25
+ readonly WebcamError: "WEBCAM_ERROR";
26
+ readonly PDCountdown: "PD_COUNTDOWN";
27
+ readonly WebcamStopped: "WEBCAM_STOPPED";
28
+ };
29
+ export declare const MazingPupillaryDistanceStateReceivedMessage: {
30
+ readonly PDLoaded: "PD_LOADED";
31
+ readonly PDUpdated: "NEW_PD";
32
+ readonly PDDataNotFoundError: "PD_ERROR";
33
+ readonly WebcamError: "WEBCAM_ERROR";
34
+ readonly PDCountdown: "PD_COUNTDOWN";
35
+ readonly WebcamStopped: "WEBCAM_STOPPED";
36
+ readonly Start: "";
37
+ readonly WaitingAuthentication: "WAITING_AUTH";
38
+ readonly AuthSuccessful: "AUTH_SUCCESS";
39
+ readonly AuthError: "AUTH_ERROR";
40
+ };
41
+ export type MazingPupillaryDistanceStateReceivedMessageType = ValueOf<typeof MazingPupillaryDistanceBaseStateReceivedMessage>;
42
+ declare const MazingPupillaryDistanceBaseResponseMessage: {
43
+ readonly StartAuthenticationPD: "AUTH_TRY_ON";
44
+ readonly LoadPD: "LOAD_PD";
45
+ readonly StartPD: "START_PD";
46
+ readonly StopWebcam: "STOP_WEBCAM";
47
+ };
48
+ export declare const MazingPupillaryDistanceResponseMessage: {
49
+ readonly StartAuthenticationPD: "AUTH_TRY_ON";
50
+ readonly LoadPD: "LOAD_PD";
51
+ readonly StartPD: "START_PD";
52
+ readonly StopWebcam: "STOP_WEBCAM";
53
+ };
54
+ export type MazingPupillaryDistanceResponseMessageType = ValueOf<typeof MazingPupillaryDistanceBaseResponseMessage>;
55
+ export declare const MazingTryOn: FunctionComponent<TryOnProviderProps>;
56
+ export declare const MazingPupillaryDistance: FunctionComponent<PupillaryDistanceProviderProps>;
57
+ export {};
@@ -1,41 +1,41 @@
1
- import React, { FunctionComponent } from 'react';
2
- import { TryOnGenericFineTuningSettings, TryOnProduct, TryOnProvider, TryOnSeller, TryOnType } from '../../models';
3
- import { ZakekeTryOnExposedMethods } from './tryOnModels';
4
- export interface ZakekeTryOnViewerProps {
5
- children?: React.ReactNode;
6
- className?: string;
7
- switchable?: boolean;
8
- onPDUpdated: (pd: number) => void;
9
- onReady?: () => void;
10
- onLoaded?: () => void;
11
- onClose: () => void;
12
- onWebcamError: () => void;
13
- }
14
- export declare const ZakekeTryOnViewer: React.ForwardRefExoticComponent<ZakekeTryOnViewerProps & React.RefAttributes<ZakekeTryOnExposedMethods>>;
15
- export interface TryOnViewProps {
16
- className?: string;
17
- provider: TryOnProvider;
18
- type: TryOnType;
19
- obj: Blob;
20
- settings?: TryOnGenericFineTuningSettings;
21
- product: TryOnProduct;
22
- customer: TryOnSeller;
23
- onReady?: () => void;
24
- onLoaded?: () => void;
25
- onClose: () => void;
26
- onPDUpdated?: (pd: number) => void;
27
- onWebcamError: () => void;
28
- }
29
- export declare const TryOnView: FunctionComponent<TryOnViewProps>;
30
- export interface PupillaryDistanceViewProps {
31
- className?: string;
32
- provider: TryOnProvider;
33
- product: TryOnProduct;
34
- customer: TryOnSeller;
35
- onReady?: () => void;
36
- onLoaded?: () => void;
37
- onPDUpdated?: (pd: number) => void;
38
- onClose: () => void;
39
- onWebcamError: () => void;
40
- }
41
- export declare const PupillaryDistanceView: FunctionComponent<PupillaryDistanceViewProps>;
1
+ import React, { FunctionComponent } from 'react';
2
+ import { TryOnGenericFineTuningSettings, TryOnProduct, TryOnProvider, TryOnSeller, TryOnType } from '../../models';
3
+ import { ZakekeTryOnExposedMethods } from './tryOnModels';
4
+ export interface ZakekeTryOnViewerProps {
5
+ children?: React.ReactNode;
6
+ className?: string;
7
+ switchable?: boolean;
8
+ onPDUpdated: (pd: number) => void;
9
+ onReady?: () => void;
10
+ onLoaded?: () => void;
11
+ onClose: () => void;
12
+ onWebcamError: () => void;
13
+ }
14
+ export declare const ZakekeTryOnViewer: React.ForwardRefExoticComponent<ZakekeTryOnViewerProps & React.RefAttributes<ZakekeTryOnExposedMethods>>;
15
+ export interface TryOnViewProps {
16
+ className?: string;
17
+ provider: TryOnProvider;
18
+ type: TryOnType;
19
+ obj: Blob;
20
+ settings?: TryOnGenericFineTuningSettings;
21
+ product: TryOnProduct;
22
+ customer: TryOnSeller;
23
+ onReady?: () => void;
24
+ onLoaded?: () => void;
25
+ onClose: () => void;
26
+ onPDUpdated?: (pd: number) => void;
27
+ onWebcamError: () => void;
28
+ }
29
+ export declare const TryOnView: FunctionComponent<TryOnViewProps>;
30
+ export interface PupillaryDistanceViewProps {
31
+ className?: string;
32
+ provider: TryOnProvider;
33
+ product: TryOnProduct;
34
+ customer: TryOnSeller;
35
+ onReady?: () => void;
36
+ onLoaded?: () => void;
37
+ onPDUpdated?: (pd: number) => void;
38
+ onClose: () => void;
39
+ onWebcamError: () => void;
40
+ }
41
+ export declare const PupillaryDistanceView: FunctionComponent<PupillaryDistanceViewProps>;
@@ -1,19 +1,19 @@
1
- import { Platform } from "./models";
2
- export declare class Exception {
3
- message: string;
4
- constructor(message: string);
5
- }
6
- export declare class ParametersParseFailException extends Exception {
7
- parameter: string;
8
- constructor(parameter: string);
9
- }
10
- export declare class UnsupportedPlatformException extends Exception {
11
- platform: Platform;
12
- constructor(platform: Platform);
13
- }
14
- export declare class UploadFailedExpection extends Exception {
15
- constructor();
16
- }
17
- export declare class NonSquarePixelException extends Exception {
18
- constructor();
19
- }
1
+ import { Platform } from "./models";
2
+ export declare class Exception {
3
+ message: string;
4
+ constructor(message: string);
5
+ }
6
+ export declare class ParametersParseFailException extends Exception {
7
+ parameter: string;
8
+ constructor(parameter: string);
9
+ }
10
+ export declare class UnsupportedPlatformException extends Exception {
11
+ platform: Platform;
12
+ constructor(platform: Platform);
13
+ }
14
+ export declare class UploadFailedExpection extends Exception {
15
+ constructor();
16
+ }
17
+ export declare class NonSquarePixelException extends Exception {
18
+ constructor();
19
+ }
@@ -1,75 +1,75 @@
1
- import { FontFamily, FontFamilyFace, TextSanitationResult } from '.';
2
- /**
3
- * Download a list of font families so that are available for the browser
4
- *
5
- * @param fontFamilies List of font families to download
6
- * @returns A promise that resolves when all fonts are downloaded
7
- */
8
- export declare function loadFonts(fontFamilies: FontFamily[]): Promise<void>;
9
- /**
10
- * Downlod all fonts used in a design
11
- *
12
- * @param design Design to load fonts for
13
- * @param downloadedFonts A list of downloaded fonts
14
- */
15
- export declare function downloadFontsOfDesign(design: MPlaza.Design, downloadedFonts: FontFamily[]): Promise<void>;
16
- /**
17
- * Remove invalid characters from the text.
18
- * Invalid characters include backspace (\x08) and null (\u0000) characters.
19
- *
20
- * @param text The text to remove invalid characters from
21
- * @returns The text without invalid characters
22
- */
23
- export declare function removeInvalidCharactersFromText(text: string): string;
24
- /**
25
- * Remove unsupported characters from the text.
26
- * Unsupported characters include characters that cannot be displayed or processed correctly.
27
- * @param face The font to check character support
28
- * @param text The text to remove unsupported characters from
29
- * @returns The text without unsupported characters
30
- */
31
- export declare function sanitizeString(face: FontFamilyFace, string: string): string;
32
- /**
33
- * Remove unsupported characters from the text and return a list of removed characters.
34
- * Unsupported characters include characters that cannot be displayed or processed correctly.
35
- * @param face The font to check character support
36
- * @param text The text to remove unsupported characters from
37
- * @returns The text without unsupported characters and a list of removed characters
38
- */
39
- export declare function sanitizeText(face: FontFamilyFace, text: string): TextSanitationResult;
40
- /**
41
- * Remove invalid characters from the text based on the font file.
42
- * Invalid characters include whitespace or characters that are not supported by the font.
43
- *
44
- * @param text The text to remove invalid characters from
45
- * @param fontFile The font file used to check character support
46
- * @returns The text without invalid characters
47
- */
48
- export declare function removeInvalidCharacters(text: string, fontFile: any): string;
49
- /**
50
- * Get the parsed file from a font
51
- *
52
- * @param face The font to get the parsed file from
53
- * @returns The parsed file
54
- */
55
- export declare function getParsedFileFromFont(face: FontFamilyFace): import("./models").FontFamilyFaceFiles | undefined;
56
- /**
57
- * Remove unsupported characters from the text.
58
- * Unsupported characters include characters that cannot be displayed or processed correctly.
59
- * @param text The text to remove unsupported characters from
60
- * @returns The text without unsupported characters
61
- */
62
- export declare function removeUnsupportedCharacters(text: string, currentFont: FontFamilyFace): string;
63
- /**
64
- * Remove textual emojis from the text.
65
- * Textual emojis include emojis that are made up of multiple characters.
66
- * @param text The text to remove textual emojis from
67
- * @returns The text without textual emojis
68
- */
69
- export declare function removeTextualEmojisFromText(text: string): string;
70
- /**
71
- * Remove emojis from the text.
72
- * @param text The text to remove emojis from
73
- * @returns The text without emojis
74
- */
75
- export declare function removeEmojisFromText(text: string): string;
1
+ import { FontFamily, FontFamilyFace, TextSanitationResult } from '.';
2
+ /**
3
+ * Download a list of font families so that are available for the browser
4
+ *
5
+ * @param fontFamilies List of font families to download
6
+ * @returns A promise that resolves when all fonts are downloaded
7
+ */
8
+ export declare function loadFonts(fontFamilies: FontFamily[]): Promise<void>;
9
+ /**
10
+ * Downlod all fonts used in a design
11
+ *
12
+ * @param design Design to load fonts for
13
+ * @param downloadedFonts A list of downloaded fonts
14
+ */
15
+ export declare function downloadFontsOfDesign(design: MPlaza.Design, downloadedFonts: FontFamily[]): Promise<void>;
16
+ /**
17
+ * Remove invalid characters from the text.
18
+ * Invalid characters include backspace (\x08) and null (\u0000) characters.
19
+ *
20
+ * @param text The text to remove invalid characters from
21
+ * @returns The text without invalid characters
22
+ */
23
+ export declare function removeInvalidCharactersFromText(text: string): string;
24
+ /**
25
+ * Remove unsupported characters from the text.
26
+ * Unsupported characters include characters that cannot be displayed or processed correctly.
27
+ * @param face The font to check character support
28
+ * @param text The text to remove unsupported characters from
29
+ * @returns The text without unsupported characters
30
+ */
31
+ export declare function sanitizeString(face: FontFamilyFace, string: string): string;
32
+ /**
33
+ * Remove unsupported characters from the text and return a list of removed characters.
34
+ * Unsupported characters include characters that cannot be displayed or processed correctly.
35
+ * @param face The font to check character support
36
+ * @param text The text to remove unsupported characters from
37
+ * @returns The text without unsupported characters and a list of removed characters
38
+ */
39
+ export declare function sanitizeText(face: FontFamilyFace, text: string): TextSanitationResult;
40
+ /**
41
+ * Remove invalid characters from the text based on the font file.
42
+ * Invalid characters include whitespace or characters that are not supported by the font.
43
+ *
44
+ * @param text The text to remove invalid characters from
45
+ * @param fontFile The font file used to check character support
46
+ * @returns The text without invalid characters
47
+ */
48
+ export declare function removeInvalidCharacters(text: string, fontFile: any): string;
49
+ /**
50
+ * Get the parsed file from a font
51
+ *
52
+ * @param face The font to get the parsed file from
53
+ * @returns The parsed file
54
+ */
55
+ export declare function getParsedFileFromFont(face: FontFamilyFace): import("./models").FontFamilyFaceFiles | undefined;
56
+ /**
57
+ * Remove unsupported characters from the text.
58
+ * Unsupported characters include characters that cannot be displayed or processed correctly.
59
+ * @param text The text to remove unsupported characters from
60
+ * @returns The text without unsupported characters
61
+ */
62
+ export declare function removeUnsupportedCharacters(text: string, currentFont: FontFamilyFace): string;
63
+ /**
64
+ * Remove textual emojis from the text.
65
+ * Textual emojis include emojis that are made up of multiple characters.
66
+ * @param text The text to remove textual emojis from
67
+ * @returns The text without textual emojis
68
+ */
69
+ export declare function removeTextualEmojisFromText(text: string): string;
70
+ /**
71
+ * Remove emojis from the text.
72
+ * @param text The text to remove emojis from
73
+ * @returns The text without emojis
74
+ */
75
+ export declare function removeEmojisFromText(text: string): string;