@swan-admin/swan-web-component 1.0.53 → 1.0.54
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.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/index.d.mts +0 -146
- package/dist/index.d.ts +0 -146
package/package.json
CHANGED
package/dist/index.d.mts
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import React$1 from 'react';
|
|
2
|
-
|
|
3
|
-
declare enum GenderType {
|
|
4
|
-
Male = "male",
|
|
5
|
-
Female = "female"
|
|
6
|
-
}
|
|
7
|
-
declare enum PreferredLanguage {
|
|
8
|
-
English = "English",
|
|
9
|
-
Hindi = "Hindi",
|
|
10
|
-
German = "German",
|
|
11
|
-
French = "French",
|
|
12
|
-
Spanish = "Spanish",
|
|
13
|
-
Arabic = "Arabic",
|
|
14
|
-
Italian = "Italian"
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface Step {
|
|
18
|
-
type: StepType;
|
|
19
|
-
value?: any;
|
|
20
|
-
order?: number;
|
|
21
|
-
isVisible?: boolean;
|
|
22
|
-
onStepComplete?: (value: any) => Promise<void> | void;
|
|
23
|
-
}
|
|
24
|
-
type StepType = "email" | "name" | "height" | "gender";
|
|
25
|
-
type PreferredLanguageType = `${PreferredLanguage}`;
|
|
26
|
-
interface StyleConfig {
|
|
27
|
-
base?: {
|
|
28
|
-
brandColor?: string;
|
|
29
|
-
backgroundColor?: string;
|
|
30
|
-
primaryColor?: string;
|
|
31
|
-
secondaryColor?: string;
|
|
32
|
-
baseTextColor?: string;
|
|
33
|
-
baseFontSize?: string;
|
|
34
|
-
baseFontFamily?: string;
|
|
35
|
-
};
|
|
36
|
-
logo?: {
|
|
37
|
-
logoWidth?: string;
|
|
38
|
-
logoHeight?: string;
|
|
39
|
-
};
|
|
40
|
-
heading?: {
|
|
41
|
-
headingColor?: string;
|
|
42
|
-
headingFontSize?: string;
|
|
43
|
-
headingFontWeight?: string;
|
|
44
|
-
headingFontFamily?: string;
|
|
45
|
-
};
|
|
46
|
-
subheading?: {
|
|
47
|
-
subheadingColor?: string;
|
|
48
|
-
subheadingFontSize?: string;
|
|
49
|
-
subheadingFontWeight?: string;
|
|
50
|
-
subheadingFontFamily?: string;
|
|
51
|
-
};
|
|
52
|
-
button?: {
|
|
53
|
-
buttonBackground?: string;
|
|
54
|
-
buttonDisabledBackground?: string;
|
|
55
|
-
buttonDisabledTextColor?: string;
|
|
56
|
-
buttonTextColor?: string;
|
|
57
|
-
buttonFontSize?: string;
|
|
58
|
-
buttonFontFamily?: string;
|
|
59
|
-
};
|
|
60
|
-
input?: {
|
|
61
|
-
inputBackgroundColor?: string;
|
|
62
|
-
inputTextColor?: string;
|
|
63
|
-
inputPlaceholderColor?: string;
|
|
64
|
-
inputBorderColor?: string;
|
|
65
|
-
inputFontSize?: string;
|
|
66
|
-
inputFontWeight?: string;
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
interface OnboardingProps {
|
|
70
|
-
steps: Step[];
|
|
71
|
-
config?: Config;
|
|
72
|
-
onComplete?: (values: Record<string, any>) => void;
|
|
73
|
-
language: PreferredLanguage;
|
|
74
|
-
}
|
|
75
|
-
interface Config {
|
|
76
|
-
style?: StyleConfig;
|
|
77
|
-
logo?: string;
|
|
78
|
-
loader?: string;
|
|
79
|
-
language?: PreferredLanguageType;
|
|
80
|
-
}
|
|
81
|
-
interface FocalLengthOuput {
|
|
82
|
-
brandName: string;
|
|
83
|
-
modelName: string;
|
|
84
|
-
focalLength: number;
|
|
85
|
-
}
|
|
86
|
-
interface FocalLengthProps {
|
|
87
|
-
onComplete?: (value: FocalLengthOuput) => Promise<void> | void;
|
|
88
|
-
initialValue?: any;
|
|
89
|
-
config?: Config;
|
|
90
|
-
}
|
|
91
|
-
interface sectionsType {
|
|
92
|
-
full: "full";
|
|
93
|
-
body: "body";
|
|
94
|
-
face: "face";
|
|
95
|
-
}
|
|
96
|
-
interface EducationalProps {
|
|
97
|
-
gender?: GenderType;
|
|
98
|
-
sections?: sectionsType[keyof sectionsType][];
|
|
99
|
-
config?: Config;
|
|
100
|
-
onComplete?: () => void;
|
|
101
|
-
}
|
|
102
|
-
interface BodyScanProps {
|
|
103
|
-
userDetails: UserDetails;
|
|
104
|
-
language: PreferredLanguage;
|
|
105
|
-
config?: any;
|
|
106
|
-
onScanSuccess?: (data: any) => void;
|
|
107
|
-
onRetry?: () => void;
|
|
108
|
-
onComplete?: () => void;
|
|
109
|
-
onScanError: (errorDetails: any) => void;
|
|
110
|
-
}
|
|
111
|
-
interface UserDetails {
|
|
112
|
-
email: string;
|
|
113
|
-
userName?: string;
|
|
114
|
-
shopDomain: string;
|
|
115
|
-
gender: GenderType;
|
|
116
|
-
heightInCm: number;
|
|
117
|
-
scanType: string;
|
|
118
|
-
deviceFocalLength: number;
|
|
119
|
-
deviceModelName: string;
|
|
120
|
-
callbackUrl?: string;
|
|
121
|
-
}
|
|
122
|
-
interface FaceScanMetaData {
|
|
123
|
-
email: string;
|
|
124
|
-
shopDomain: string;
|
|
125
|
-
gender: GenderType;
|
|
126
|
-
deviceFocalLength: number;
|
|
127
|
-
}
|
|
128
|
-
interface FaceScanProps {
|
|
129
|
-
userDetails: FaceScanMetaData;
|
|
130
|
-
onComplete?: (data: any) => void;
|
|
131
|
-
onScanError?: (data: any) => void;
|
|
132
|
-
onRetry?: () => void;
|
|
133
|
-
config?: any;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
declare const Onboarding: React$1.FC<OnboardingProps>;
|
|
137
|
-
|
|
138
|
-
declare const FocalLength: React$1.FC<FocalLengthProps>;
|
|
139
|
-
|
|
140
|
-
declare const Educational: React.FC<EducationalProps>;
|
|
141
|
-
|
|
142
|
-
declare const BodyScan: React.FC<BodyScanProps>;
|
|
143
|
-
|
|
144
|
-
declare const FaceScan: React.FC<FaceScanProps>;
|
|
145
|
-
|
|
146
|
-
export { BodyScan, Educational, type EducationalProps, FaceScan, FocalLength, type FocalLengthProps, GenderType, Onboarding, type OnboardingProps, PreferredLanguage };
|
package/dist/index.d.ts
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import React$1 from 'react';
|
|
2
|
-
|
|
3
|
-
declare enum GenderType {
|
|
4
|
-
Male = "male",
|
|
5
|
-
Female = "female"
|
|
6
|
-
}
|
|
7
|
-
declare enum PreferredLanguage {
|
|
8
|
-
English = "English",
|
|
9
|
-
Hindi = "Hindi",
|
|
10
|
-
German = "German",
|
|
11
|
-
French = "French",
|
|
12
|
-
Spanish = "Spanish",
|
|
13
|
-
Arabic = "Arabic",
|
|
14
|
-
Italian = "Italian"
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface Step {
|
|
18
|
-
type: StepType;
|
|
19
|
-
value?: any;
|
|
20
|
-
order?: number;
|
|
21
|
-
isVisible?: boolean;
|
|
22
|
-
onStepComplete?: (value: any) => Promise<void> | void;
|
|
23
|
-
}
|
|
24
|
-
type StepType = "email" | "name" | "height" | "gender";
|
|
25
|
-
type PreferredLanguageType = `${PreferredLanguage}`;
|
|
26
|
-
interface StyleConfig {
|
|
27
|
-
base?: {
|
|
28
|
-
brandColor?: string;
|
|
29
|
-
backgroundColor?: string;
|
|
30
|
-
primaryColor?: string;
|
|
31
|
-
secondaryColor?: string;
|
|
32
|
-
baseTextColor?: string;
|
|
33
|
-
baseFontSize?: string;
|
|
34
|
-
baseFontFamily?: string;
|
|
35
|
-
};
|
|
36
|
-
logo?: {
|
|
37
|
-
logoWidth?: string;
|
|
38
|
-
logoHeight?: string;
|
|
39
|
-
};
|
|
40
|
-
heading?: {
|
|
41
|
-
headingColor?: string;
|
|
42
|
-
headingFontSize?: string;
|
|
43
|
-
headingFontWeight?: string;
|
|
44
|
-
headingFontFamily?: string;
|
|
45
|
-
};
|
|
46
|
-
subheading?: {
|
|
47
|
-
subheadingColor?: string;
|
|
48
|
-
subheadingFontSize?: string;
|
|
49
|
-
subheadingFontWeight?: string;
|
|
50
|
-
subheadingFontFamily?: string;
|
|
51
|
-
};
|
|
52
|
-
button?: {
|
|
53
|
-
buttonBackground?: string;
|
|
54
|
-
buttonDisabledBackground?: string;
|
|
55
|
-
buttonDisabledTextColor?: string;
|
|
56
|
-
buttonTextColor?: string;
|
|
57
|
-
buttonFontSize?: string;
|
|
58
|
-
buttonFontFamily?: string;
|
|
59
|
-
};
|
|
60
|
-
input?: {
|
|
61
|
-
inputBackgroundColor?: string;
|
|
62
|
-
inputTextColor?: string;
|
|
63
|
-
inputPlaceholderColor?: string;
|
|
64
|
-
inputBorderColor?: string;
|
|
65
|
-
inputFontSize?: string;
|
|
66
|
-
inputFontWeight?: string;
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
interface OnboardingProps {
|
|
70
|
-
steps: Step[];
|
|
71
|
-
config?: Config;
|
|
72
|
-
onComplete?: (values: Record<string, any>) => void;
|
|
73
|
-
language: PreferredLanguage;
|
|
74
|
-
}
|
|
75
|
-
interface Config {
|
|
76
|
-
style?: StyleConfig;
|
|
77
|
-
logo?: string;
|
|
78
|
-
loader?: string;
|
|
79
|
-
language?: PreferredLanguageType;
|
|
80
|
-
}
|
|
81
|
-
interface FocalLengthOuput {
|
|
82
|
-
brandName: string;
|
|
83
|
-
modelName: string;
|
|
84
|
-
focalLength: number;
|
|
85
|
-
}
|
|
86
|
-
interface FocalLengthProps {
|
|
87
|
-
onComplete?: (value: FocalLengthOuput) => Promise<void> | void;
|
|
88
|
-
initialValue?: any;
|
|
89
|
-
config?: Config;
|
|
90
|
-
}
|
|
91
|
-
interface sectionsType {
|
|
92
|
-
full: "full";
|
|
93
|
-
body: "body";
|
|
94
|
-
face: "face";
|
|
95
|
-
}
|
|
96
|
-
interface EducationalProps {
|
|
97
|
-
gender?: GenderType;
|
|
98
|
-
sections?: sectionsType[keyof sectionsType][];
|
|
99
|
-
config?: Config;
|
|
100
|
-
onComplete?: () => void;
|
|
101
|
-
}
|
|
102
|
-
interface BodyScanProps {
|
|
103
|
-
userDetails: UserDetails;
|
|
104
|
-
language: PreferredLanguage;
|
|
105
|
-
config?: any;
|
|
106
|
-
onScanSuccess?: (data: any) => void;
|
|
107
|
-
onRetry?: () => void;
|
|
108
|
-
onComplete?: () => void;
|
|
109
|
-
onScanError: (errorDetails: any) => void;
|
|
110
|
-
}
|
|
111
|
-
interface UserDetails {
|
|
112
|
-
email: string;
|
|
113
|
-
userName?: string;
|
|
114
|
-
shopDomain: string;
|
|
115
|
-
gender: GenderType;
|
|
116
|
-
heightInCm: number;
|
|
117
|
-
scanType: string;
|
|
118
|
-
deviceFocalLength: number;
|
|
119
|
-
deviceModelName: string;
|
|
120
|
-
callbackUrl?: string;
|
|
121
|
-
}
|
|
122
|
-
interface FaceScanMetaData {
|
|
123
|
-
email: string;
|
|
124
|
-
shopDomain: string;
|
|
125
|
-
gender: GenderType;
|
|
126
|
-
deviceFocalLength: number;
|
|
127
|
-
}
|
|
128
|
-
interface FaceScanProps {
|
|
129
|
-
userDetails: FaceScanMetaData;
|
|
130
|
-
onComplete?: (data: any) => void;
|
|
131
|
-
onScanError?: (data: any) => void;
|
|
132
|
-
onRetry?: () => void;
|
|
133
|
-
config?: any;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
declare const Onboarding: React$1.FC<OnboardingProps>;
|
|
137
|
-
|
|
138
|
-
declare const FocalLength: React$1.FC<FocalLengthProps>;
|
|
139
|
-
|
|
140
|
-
declare const Educational: React.FC<EducationalProps>;
|
|
141
|
-
|
|
142
|
-
declare const BodyScan: React.FC<BodyScanProps>;
|
|
143
|
-
|
|
144
|
-
declare const FaceScan: React.FC<FaceScanProps>;
|
|
145
|
-
|
|
146
|
-
export { BodyScan, Educational, type EducationalProps, FaceScan, FocalLength, type FocalLengthProps, GenderType, Onboarding, type OnboardingProps, PreferredLanguage };
|