@swan-admin/swan-web-component 1.0.101 → 1.0.103
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/BodyScan-C4sgcyIH.js +2 -0
- package/dist/BodyScan-C4sgcyIH.js.map +1 -0
- package/dist/BodyScan-CYHSL6Tj.js +2 -0
- package/dist/BodyScan-CYHSL6Tj.js.map +1 -0
- package/dist/FaceScan-Cgis7rhD.js +2 -0
- package/dist/FaceScan-Cgis7rhD.js.map +1 -0
- package/dist/FaceScan-ChAn2cB2.js +2 -0
- package/dist/FaceScan-ChAn2cB2.js.map +1 -0
- package/dist/LoadingScreen-B0wN1CQk.js +2 -0
- package/dist/LoadingScreen-B0wN1CQk.js.map +1 -0
- package/dist/LoadingScreen-Dc0DGpTP.js +2 -0
- package/dist/LoadingScreen-Dc0DGpTP.js.map +1 -0
- package/dist/bodyScan.d.ts +2 -2
- package/dist/bodyScan.js +1 -1
- package/dist/bodyScan.mjs +1 -1
- package/dist/faceScan.d.ts +2 -2
- package/dist/faceScan.js +1 -1
- package/dist/faceScan.mjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces-BMY9hY_p.d.ts +163 -0
- package/package.json +1 -1
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
declare enum GenderType {
|
|
2
|
+
Male = "male",
|
|
3
|
+
Female = "female"
|
|
4
|
+
}
|
|
5
|
+
declare enum PreferredLanguage {
|
|
6
|
+
English = "English",
|
|
7
|
+
Hindi = "Hindi",
|
|
8
|
+
German = "German",
|
|
9
|
+
French = "French",
|
|
10
|
+
Spanish = "Spanish",
|
|
11
|
+
Arabic = "Arabic",
|
|
12
|
+
Italian = "Italian"
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface Step {
|
|
16
|
+
type: StepType;
|
|
17
|
+
value?: any;
|
|
18
|
+
order?: number;
|
|
19
|
+
isVisible?: boolean;
|
|
20
|
+
onStepComplete?: (value: any) => Promise<void> | void;
|
|
21
|
+
}
|
|
22
|
+
type Gender = "male" | "female";
|
|
23
|
+
type StepType = "email" | "name" | "height" | "gender";
|
|
24
|
+
type PreferredLanguageType = `${PreferredLanguage}`;
|
|
25
|
+
interface StyleConfig {
|
|
26
|
+
base?: {
|
|
27
|
+
brandColor?: string;
|
|
28
|
+
backgroundColor?: string;
|
|
29
|
+
primaryColor?: string;
|
|
30
|
+
secondaryColor?: string;
|
|
31
|
+
baseTextColor?: string;
|
|
32
|
+
baseFontSize?: string;
|
|
33
|
+
baseFontFamily?: string;
|
|
34
|
+
};
|
|
35
|
+
logo?: {
|
|
36
|
+
logoWidth?: string;
|
|
37
|
+
logoHeight?: string;
|
|
38
|
+
};
|
|
39
|
+
heading?: {
|
|
40
|
+
headingColor?: string;
|
|
41
|
+
headingFontSize?: string;
|
|
42
|
+
headingFontWeight?: string;
|
|
43
|
+
headingFontFamily?: string;
|
|
44
|
+
};
|
|
45
|
+
subheading?: {
|
|
46
|
+
subheadingColor?: string;
|
|
47
|
+
subheadingFontSize?: string;
|
|
48
|
+
subheadingFontWeight?: string;
|
|
49
|
+
subheadingFontFamily?: string;
|
|
50
|
+
};
|
|
51
|
+
button?: {
|
|
52
|
+
buttonBackground?: string;
|
|
53
|
+
buttonDisabledBackground?: string;
|
|
54
|
+
buttonDisabledTextColor?: string;
|
|
55
|
+
buttonTextColor?: string;
|
|
56
|
+
buttonFontSize?: string;
|
|
57
|
+
buttonFontFamily?: string;
|
|
58
|
+
buttonBorderRadius?: string;
|
|
59
|
+
priority?: {
|
|
60
|
+
buttonBackground?: string;
|
|
61
|
+
buttonTextColor?: string;
|
|
62
|
+
buttonDisabledTextColor?: string;
|
|
63
|
+
justify?: string;
|
|
64
|
+
padding?: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
input?: {
|
|
68
|
+
inputBackgroundColor?: string;
|
|
69
|
+
inputTextColor?: string;
|
|
70
|
+
inputPlaceholderColor?: string;
|
|
71
|
+
inputBorderColor?: string;
|
|
72
|
+
inputFontSize?: string;
|
|
73
|
+
inputFontWeight?: string;
|
|
74
|
+
inputBorderRadius?: string;
|
|
75
|
+
inputErrorColor?: string;
|
|
76
|
+
inputErrorFontSize?: string;
|
|
77
|
+
priority?: {
|
|
78
|
+
inputBackgroundColor?: string;
|
|
79
|
+
inputTextColor?: string;
|
|
80
|
+
inputBackgroundColorSelect?: string;
|
|
81
|
+
inputBackgroundColorSelectTextColor?: string;
|
|
82
|
+
inputPlaceholderColor?: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
angleDetector?: {
|
|
86
|
+
successAngleBackground?: string;
|
|
87
|
+
successAngleLowBackground?: string;
|
|
88
|
+
successAngleTextLightColor?: string;
|
|
89
|
+
successAngleTextDarkColor?: string;
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
interface OnboardingProps {
|
|
93
|
+
steps: Step[];
|
|
94
|
+
config?: Config;
|
|
95
|
+
onComplete?: (values: Record<string, any>) => void;
|
|
96
|
+
}
|
|
97
|
+
interface Config {
|
|
98
|
+
style?: StyleConfig;
|
|
99
|
+
logo?: string;
|
|
100
|
+
loader?: string;
|
|
101
|
+
language?: PreferredLanguageType;
|
|
102
|
+
}
|
|
103
|
+
interface FocalLengthOuput {
|
|
104
|
+
brandName: string;
|
|
105
|
+
modelName: string;
|
|
106
|
+
focalLength: number;
|
|
107
|
+
}
|
|
108
|
+
interface FocalLengthProps {
|
|
109
|
+
onComplete?: (value: FocalLengthOuput) => Promise<void> | void;
|
|
110
|
+
initialValue?: any;
|
|
111
|
+
config?: Config;
|
|
112
|
+
}
|
|
113
|
+
interface sectionsType {
|
|
114
|
+
full: "full";
|
|
115
|
+
body: "body";
|
|
116
|
+
face: "face";
|
|
117
|
+
}
|
|
118
|
+
interface EducationalProps {
|
|
119
|
+
gender?: GenderType;
|
|
120
|
+
sections?: sectionsType[keyof sectionsType][];
|
|
121
|
+
config?: Config;
|
|
122
|
+
onComplete?: () => void;
|
|
123
|
+
}
|
|
124
|
+
interface BodyScanProps {
|
|
125
|
+
userDetails: UserDetails;
|
|
126
|
+
config?: Config;
|
|
127
|
+
onRetry?: () => void;
|
|
128
|
+
onScanSuccess?: () => void;
|
|
129
|
+
onScanError: (errorDetails: any) => void;
|
|
130
|
+
isError?: boolean;
|
|
131
|
+
isSuccess?: boolean;
|
|
132
|
+
}
|
|
133
|
+
interface UserDetails {
|
|
134
|
+
email: string;
|
|
135
|
+
userName?: string;
|
|
136
|
+
shopDomain: string;
|
|
137
|
+
gender: Gender;
|
|
138
|
+
heightInCm: number;
|
|
139
|
+
scanType: string;
|
|
140
|
+
deviceFocalLength: number;
|
|
141
|
+
deviceModelName: string;
|
|
142
|
+
callbackUrl?: string;
|
|
143
|
+
}
|
|
144
|
+
interface FaceScanMetaData {
|
|
145
|
+
email: string;
|
|
146
|
+
shopDomain: string;
|
|
147
|
+
gender: Gender;
|
|
148
|
+
deviceFocalLength: number;
|
|
149
|
+
callbackUrl?: string;
|
|
150
|
+
}
|
|
151
|
+
interface FaceScanProps {
|
|
152
|
+
userDetails: FaceScanMetaData;
|
|
153
|
+
onScanSuccess?: (data: any) => void;
|
|
154
|
+
onScanError?: (data: any) => void;
|
|
155
|
+
onRetry?: () => void;
|
|
156
|
+
config?: Config;
|
|
157
|
+
isError?: boolean;
|
|
158
|
+
isSuccess?: boolean;
|
|
159
|
+
onUpload?: () => void;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export { GenderType as G, PreferredLanguage as P };
|
|
163
|
+
export type { BodyScanProps as B, Config as C, EducationalProps as E, FocalLengthProps as F, OnboardingProps as O, Step as S, UserDetails as U, StyleConfig as a, FaceScanProps as b, FaceScanMetaData as c };
|