@swan-admin/swan-web-component 1.0.56 → 1.0.60
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.mts +39 -1
- package/dist/index.d.ts +39 -1
- package/dist/index.js +14 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/index.css +0 -2
package/dist/index.d.mts
CHANGED
|
@@ -97,6 +97,40 @@ interface EducationalProps {
|
|
|
97
97
|
config?: any;
|
|
98
98
|
onComplete?: () => void;
|
|
99
99
|
}
|
|
100
|
+
interface BodyScanProps {
|
|
101
|
+
userDetails: UserDetails;
|
|
102
|
+
language?: PreferredLanguage;
|
|
103
|
+
config?: any;
|
|
104
|
+
onScanSuccess?: (data: any) => void;
|
|
105
|
+
onRetry?: () => void;
|
|
106
|
+
onComplete?: () => void;
|
|
107
|
+
onScanError: (errorDetails: any) => void;
|
|
108
|
+
}
|
|
109
|
+
interface UserDetails {
|
|
110
|
+
email: string;
|
|
111
|
+
userName?: string;
|
|
112
|
+
shopDomain: string;
|
|
113
|
+
gender: Gender;
|
|
114
|
+
heightInCm: number;
|
|
115
|
+
scanType: string;
|
|
116
|
+
deviceFocalLength: number;
|
|
117
|
+
deviceModelName: string;
|
|
118
|
+
callbackUrl?: string;
|
|
119
|
+
}
|
|
120
|
+
interface FaceScanMetaData {
|
|
121
|
+
email: string;
|
|
122
|
+
shopDomain: string;
|
|
123
|
+
gender: Gender;
|
|
124
|
+
deviceFocalLength: number;
|
|
125
|
+
callbackUrl?: string;
|
|
126
|
+
}
|
|
127
|
+
interface FaceScanProps {
|
|
128
|
+
userDetails: FaceScanMetaData;
|
|
129
|
+
onComplete?: (data: any) => void;
|
|
130
|
+
onScanError?: (data: any) => void;
|
|
131
|
+
onRetry?: () => void;
|
|
132
|
+
config?: any;
|
|
133
|
+
}
|
|
100
134
|
|
|
101
135
|
declare const Onboarding: React$1.FC<OnboardingProps>;
|
|
102
136
|
|
|
@@ -104,4 +138,8 @@ declare const FocalLength: React$1.FC<FocalLengthProps>;
|
|
|
104
138
|
|
|
105
139
|
declare const Educational: React.FC<EducationalProps>;
|
|
106
140
|
|
|
107
|
-
|
|
141
|
+
declare const BodyScan: React.FC<BodyScanProps>;
|
|
142
|
+
|
|
143
|
+
declare const FaceScan: React.FC<FaceScanProps>;
|
|
144
|
+
|
|
145
|
+
export { BodyScan, type BodyScanProps, Educational, type EducationalProps, FaceScan, type FaceScanProps, FocalLength, type FocalLengthProps, GenderType, Onboarding, type OnboardingProps, PreferredLanguage };
|
package/dist/index.d.ts
CHANGED
|
@@ -97,6 +97,40 @@ interface EducationalProps {
|
|
|
97
97
|
config?: any;
|
|
98
98
|
onComplete?: () => void;
|
|
99
99
|
}
|
|
100
|
+
interface BodyScanProps {
|
|
101
|
+
userDetails: UserDetails;
|
|
102
|
+
language?: PreferredLanguage;
|
|
103
|
+
config?: any;
|
|
104
|
+
onScanSuccess?: (data: any) => void;
|
|
105
|
+
onRetry?: () => void;
|
|
106
|
+
onComplete?: () => void;
|
|
107
|
+
onScanError: (errorDetails: any) => void;
|
|
108
|
+
}
|
|
109
|
+
interface UserDetails {
|
|
110
|
+
email: string;
|
|
111
|
+
userName?: string;
|
|
112
|
+
shopDomain: string;
|
|
113
|
+
gender: Gender;
|
|
114
|
+
heightInCm: number;
|
|
115
|
+
scanType: string;
|
|
116
|
+
deviceFocalLength: number;
|
|
117
|
+
deviceModelName: string;
|
|
118
|
+
callbackUrl?: string;
|
|
119
|
+
}
|
|
120
|
+
interface FaceScanMetaData {
|
|
121
|
+
email: string;
|
|
122
|
+
shopDomain: string;
|
|
123
|
+
gender: Gender;
|
|
124
|
+
deviceFocalLength: number;
|
|
125
|
+
callbackUrl?: string;
|
|
126
|
+
}
|
|
127
|
+
interface FaceScanProps {
|
|
128
|
+
userDetails: FaceScanMetaData;
|
|
129
|
+
onComplete?: (data: any) => void;
|
|
130
|
+
onScanError?: (data: any) => void;
|
|
131
|
+
onRetry?: () => void;
|
|
132
|
+
config?: any;
|
|
133
|
+
}
|
|
100
134
|
|
|
101
135
|
declare const Onboarding: React$1.FC<OnboardingProps>;
|
|
102
136
|
|
|
@@ -104,4 +138,8 @@ declare const FocalLength: React$1.FC<FocalLengthProps>;
|
|
|
104
138
|
|
|
105
139
|
declare const Educational: React.FC<EducationalProps>;
|
|
106
140
|
|
|
107
|
-
|
|
141
|
+
declare const BodyScan: React.FC<BodyScanProps>;
|
|
142
|
+
|
|
143
|
+
declare const FaceScan: React.FC<FaceScanProps>;
|
|
144
|
+
|
|
145
|
+
export { BodyScan, type BodyScanProps, Educational, type EducationalProps, FaceScan, type FaceScanProps, FocalLength, type FocalLengthProps, GenderType, Onboarding, type OnboardingProps, PreferredLanguage };
|