zakeke-configurator-react 0.1.260 → 0.1.261
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/declarations/3D/src/Interfaces/ITryOn.d.ts +76 -76
- package/dist/declarations/composer/Module/src/components/customizer.d.ts +9 -9
- package/dist/declarations/composer/Module/src/components/sceneViewer.d.ts +5 -5
- package/dist/declarations/composer/Module/src/components/tryon/tryOnFrame.d.ts +10 -10
- package/dist/declarations/composer/Module/src/components/tryon/tryOnModels.d.ts +69 -69
- package/dist/declarations/composer/Module/src/components/tryon/tryOnProviders/tryOnMazing.d.ts +57 -57
- package/dist/declarations/composer/Module/src/components/tryon/tryOnViewer.d.ts +41 -41
- package/dist/declarations/composer/Module/src/environment.d.ts +345 -345
- package/dist/declarations/composer/Module/src/exceptions.d.ts +19 -19
- package/dist/declarations/composer/Module/src/fontsManager.d.ts +75 -75
- package/dist/declarations/composer/Module/src/hooks/tryonContext.d.ts +11 -11
- package/dist/declarations/composer/Module/src/hooks/useZakeke.d.ts +9 -9
- package/dist/declarations/composer/Module/src/imageUploadTask.d.ts +19 -19
- package/dist/declarations/composer/Module/src/index.d.ts +10 -10
- package/dist/declarations/composer/Module/src/integrations/Helpers.d.ts +2 -2
- package/dist/declarations/composer/Module/src/integrations/Integration.d.ts +24 -24
- package/dist/declarations/composer/Module/src/integrations/generic.d.ts +16 -16
- package/dist/declarations/composer/Module/src/integrations/preview.d.ts +16 -16
- package/dist/declarations/composer/Module/src/state/boot.d.ts +8 -8
- package/dist/declarations/composer/Module/src/state/createProviderValue.d.ts +3 -3
- package/dist/declarations/composer/Module/src/state/provider.d.ts +16 -16
- package/dist/declarations/composer/Module/src/state/reducer.d.ts +3 -3
- package/dist/declarations/composer/Module/src/state/state.d.ts +7 -7
- package/dist/declarations/libs/pricingRuleBase/DesignPriceCalculatorRuleBased.d.ts +80 -80
- package/dist/declarations/libs/pricingRuleBase/pricing_model.graphql.d.ts +40 -40
- package/dist/declarations/utils/rectangle.d.ts +14 -14
- package/dist/globals0.js +1 -1
- package/dist/globals1.js +1 -1
- package/dist/index.js +1023 -2062
- package/package.json +1 -1
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import { Nullable } from "../types";
|
|
2
|
-
export declare enum TryOnType {
|
|
3
|
-
NotSelected = 0,
|
|
4
|
-
Eyewear = 1,
|
|
5
|
-
Shoes = 2,
|
|
6
|
-
Jewelry = 3,
|
|
7
|
-
Headwear = 4,
|
|
8
|
-
Watches = 5
|
|
9
|
-
}
|
|
10
|
-
export interface TryOnProduct {
|
|
11
|
-
productID: number;
|
|
12
|
-
typeID: number;
|
|
13
|
-
providerID: number;
|
|
14
|
-
settings: string;
|
|
15
|
-
}
|
|
16
|
-
export declare enum TryOnProvider {
|
|
17
|
-
NotSelected = 0,
|
|
18
|
-
Mazing = 1,
|
|
19
|
-
Banuba = 2
|
|
20
|
-
}
|
|
21
|
-
export interface TryOnTypeSettings {
|
|
22
|
-
try_on: boolean;
|
|
23
|
-
pd?: boolean;
|
|
24
|
-
active: boolean;
|
|
25
|
-
}
|
|
26
|
-
export declare enum TryOnSettingsType {
|
|
27
|
-
VirtualTryOn = "try_on",
|
|
28
|
-
GlassPupillaryDistanceTool = "pd",
|
|
29
|
-
StyleButton = "styleButton",
|
|
30
|
-
MandatoryPupillaryDistance = "mandatoryPD"
|
|
31
|
-
}
|
|
32
|
-
export interface TryOnButtonCustomization {
|
|
33
|
-
image: Nullable<string>;
|
|
34
|
-
textLabel: Nullable<string>;
|
|
35
|
-
textColor: Nullable<string>;
|
|
36
|
-
backgroundColor: Nullable<string>;
|
|
37
|
-
borderColor: Nullable<string>;
|
|
38
|
-
borderWidth: number;
|
|
39
|
-
borderRadius: number;
|
|
40
|
-
}
|
|
41
|
-
export interface TryOnSettings {
|
|
42
|
-
type: TryOnType;
|
|
43
|
-
styleButton: "single" | "multiple";
|
|
44
|
-
buttonCustomizations: TryOnButtonCustomization[];
|
|
45
|
-
typeSettings: TryOnTypeSettings;
|
|
46
|
-
}
|
|
47
|
-
export declare enum TryOnFineTuningMazingEnvironment {
|
|
48
|
-
Neutral = "neutral.hdr",
|
|
49
|
-
Light = "light.hdr",
|
|
50
|
-
Bright = "bright.hdr",
|
|
51
|
-
Studio = "studio.hdr",
|
|
52
|
-
Court = "court.hdr",
|
|
53
|
-
Blurred_Studio = "startup.hdr"
|
|
54
|
-
}
|
|
55
|
-
export interface TryOnFineTuningSettings {
|
|
56
|
-
scale: number;
|
|
57
|
-
position: {
|
|
58
|
-
x: number;
|
|
59
|
-
y: number;
|
|
60
|
-
z: number;
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
export interface TryOnFineTuningMazingSettings extends TryOnFineTuningSettings {
|
|
64
|
-
temple: boolean;
|
|
65
|
-
environment: TryOnFineTuningMazingEnvironment;
|
|
66
|
-
}
|
|
67
|
-
export interface ProductTryOn {
|
|
68
|
-
productID: number;
|
|
69
|
-
typeID: TryOnType;
|
|
70
|
-
providerID: number;
|
|
71
|
-
settings?: string;
|
|
72
|
-
}
|
|
73
|
-
export interface FineTuningProviderData {
|
|
74
|
-
mesh?: Blob;
|
|
75
|
-
settings?: TryOnFineTuningSettings;
|
|
76
|
-
}
|
|
1
|
+
import { Nullable } from "../types";
|
|
2
|
+
export declare enum TryOnType {
|
|
3
|
+
NotSelected = 0,
|
|
4
|
+
Eyewear = 1,
|
|
5
|
+
Shoes = 2,
|
|
6
|
+
Jewelry = 3,
|
|
7
|
+
Headwear = 4,
|
|
8
|
+
Watches = 5
|
|
9
|
+
}
|
|
10
|
+
export interface TryOnProduct {
|
|
11
|
+
productID: number;
|
|
12
|
+
typeID: number;
|
|
13
|
+
providerID: number;
|
|
14
|
+
settings: string;
|
|
15
|
+
}
|
|
16
|
+
export declare enum TryOnProvider {
|
|
17
|
+
NotSelected = 0,
|
|
18
|
+
Mazing = 1,
|
|
19
|
+
Banuba = 2
|
|
20
|
+
}
|
|
21
|
+
export interface TryOnTypeSettings {
|
|
22
|
+
try_on: boolean;
|
|
23
|
+
pd?: boolean;
|
|
24
|
+
active: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare enum TryOnSettingsType {
|
|
27
|
+
VirtualTryOn = "try_on",
|
|
28
|
+
GlassPupillaryDistanceTool = "pd",
|
|
29
|
+
StyleButton = "styleButton",
|
|
30
|
+
MandatoryPupillaryDistance = "mandatoryPD"
|
|
31
|
+
}
|
|
32
|
+
export interface TryOnButtonCustomization {
|
|
33
|
+
image: Nullable<string>;
|
|
34
|
+
textLabel: Nullable<string>;
|
|
35
|
+
textColor: Nullable<string>;
|
|
36
|
+
backgroundColor: Nullable<string>;
|
|
37
|
+
borderColor: Nullable<string>;
|
|
38
|
+
borderWidth: number;
|
|
39
|
+
borderRadius: number;
|
|
40
|
+
}
|
|
41
|
+
export interface TryOnSettings {
|
|
42
|
+
type: TryOnType;
|
|
43
|
+
styleButton: "single" | "multiple";
|
|
44
|
+
buttonCustomizations: TryOnButtonCustomization[];
|
|
45
|
+
typeSettings: TryOnTypeSettings;
|
|
46
|
+
}
|
|
47
|
+
export declare enum TryOnFineTuningMazingEnvironment {
|
|
48
|
+
Neutral = "neutral.hdr",
|
|
49
|
+
Light = "light.hdr",
|
|
50
|
+
Bright = "bright.hdr",
|
|
51
|
+
Studio = "studio.hdr",
|
|
52
|
+
Court = "court.hdr",
|
|
53
|
+
Blurred_Studio = "startup.hdr"
|
|
54
|
+
}
|
|
55
|
+
export interface TryOnFineTuningSettings {
|
|
56
|
+
scale: number;
|
|
57
|
+
position: {
|
|
58
|
+
x: number;
|
|
59
|
+
y: number;
|
|
60
|
+
z: number;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export interface TryOnFineTuningMazingSettings extends TryOnFineTuningSettings {
|
|
64
|
+
temple: boolean;
|
|
65
|
+
environment: TryOnFineTuningMazingEnvironment;
|
|
66
|
+
}
|
|
67
|
+
export interface ProductTryOn {
|
|
68
|
+
productID: number;
|
|
69
|
+
typeID: TryOnType;
|
|
70
|
+
providerID: number;
|
|
71
|
+
settings?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface FineTuningProviderData {
|
|
74
|
+
mesh?: Blob;
|
|
75
|
+
settings?: TryOnFineTuningSettings;
|
|
76
|
+
}
|
|
@@ -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,5 +1,5 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
export declare const ZakekeViewer: FunctionComponent<{
|
|
3
|
-
backgroundColor?: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
}>;
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
export declare const ZakekeViewer: FunctionComponent<{
|
|
3
|
+
backgroundColor?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}>;
|
|
@@ -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;
|
package/dist/declarations/composer/Module/src/components/tryon/tryOnProviders/tryOnMazing.d.ts
CHANGED
|
@@ -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>;
|