favesalon-embed 1.0.17 → 1.0.19
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/custom-elements/index.d.ts +30 -0
- package/dist/favesalon-embed/buy-giftcard-form.entry.js +94 -48
- package/dist/favesalon-embed/buy-giftcard-verification.entry.js +17 -3779
- package/dist/favesalon-embed/favesalon-embed.css +0 -20
- package/dist/favesalon-embed/favesalon-embed.esm.js +1 -1
- package/dist/favesalon-embed/icon-checked.entry.js +19 -0
- package/dist/favesalon-embed/icon-date.entry.js +19 -0
- package/dist/favesalon-embed/icon-loading.entry.js +19 -0
- package/dist/favesalon-embed/icon-location-marker.entry.js +19 -0
- package/dist/favesalon-embed/icon-phone.entry.js +19 -0
- package/dist/favesalon-embed/inputmask-afacb9e0.js +3777 -0
- package/dist/favesalon-embed/wizard-existing-user.entry.js +29 -7
- package/dist/favesalon-embed/wizard-new-user.entry.js +28 -6
- package/dist/types/components/buy-giftcard-form/buy-giftcard-form.d.ts +2 -0
- package/dist/types/components/icon-checked/icon-checked.d.ts +4 -0
- package/dist/types/components/icon-date/icon-date.d.ts +4 -0
- package/dist/types/components/icon-loading/icon-loading.d.ts +4 -0
- package/dist/types/components/icon-location-marker/icon-location-marker.d.ts +4 -0
- package/dist/types/components/icon-phone/icon-phone.d.ts +4 -0
- package/dist/types/components.d.ts +75 -0
- package/package.json +1 -1
- package/dist/favesalon-embed/services-09264f42.js +0 -24132
- package/dist/favesalon-embed/services-1406013d.js +0 -24132
- package/dist/favesalon-embed/services-9a686ade.js +0 -24122
- package/dist/favesalon-embed/services-c2c81c88.js +0 -24131
- package/dist/favesalon-embed/services-ef32efdc.js +0 -24132
- package/dist/favesalon-embed/utils-00e4ed17.js +0 -33
- package/dist/favesalon-embed/utils-daaa9ecc.js +0 -34
- package/dist/favesalon-embed/utils-e6e3f132.js +0 -33
- package/dist/favesalon-embed/utils-fd30fb29.js +0 -32
|
@@ -74,8 +74,8 @@ const WizardExistingUser = class {
|
|
|
74
74
|
fontWeight: '600',
|
|
75
75
|
} }, "Phone verification code sent!"), h("div", { style: {
|
|
76
76
|
marginTop: '4px',
|
|
77
|
-
} }, "You should receive a text message within 30 seconds")), h("div", { style: { marginBottom: '24px' } }, h("input", { type: "text", value: this.activatCode, onInput: (evt) => this.activatCode = evt.target.value, style: {
|
|
78
|
-
border: `1px solid ${Colors.
|
|
77
|
+
} }, "You should receive a text message within 30 seconds")), h("div", { style: { marginBottom: '24px' } }, h("input", { type: "text", placeholder: "Enter Code", value: this.activatCode, disabled: this.isSubmitting, onInput: (evt) => this.activatCode = evt.target.value, style: {
|
|
78
|
+
border: `1px solid ${Colors.Gray03}`,
|
|
79
79
|
backgroundColor: Colors.White,
|
|
80
80
|
borderRadius: '8px',
|
|
81
81
|
padding: '8px 16px',
|
|
@@ -83,9 +83,13 @@ const WizardExistingUser = class {
|
|
|
83
83
|
width: '100%',
|
|
84
84
|
fontSize: '22px',
|
|
85
85
|
fontWeight: '700',
|
|
86
|
+
...this.isSubmitting ? {
|
|
87
|
+
borderColor: Colors.Gray03,
|
|
88
|
+
backgroundColor: Colors.Gray03,
|
|
89
|
+
} : {},
|
|
86
90
|
} })), h("div", null, h("button", { type: "button", disabled: this.isSubmitting, style: {
|
|
87
91
|
border: `1px solid ${Colors.Secondary}`,
|
|
88
|
-
|
|
92
|
+
backgroundColor: Colors.Secondary,
|
|
89
93
|
color: Colors.White,
|
|
90
94
|
borderRadius: '8px',
|
|
91
95
|
cursor: 'pointer',
|
|
@@ -95,8 +99,13 @@ const WizardExistingUser = class {
|
|
|
95
99
|
paddingRight: '24px',
|
|
96
100
|
height: '48px',
|
|
97
101
|
width: '100%',
|
|
98
|
-
|
|
99
|
-
|
|
102
|
+
...this.isSubmitting ? {
|
|
103
|
+
color: Colors.Black,
|
|
104
|
+
borderColor: Colors.Gray03,
|
|
105
|
+
backgroundColor: Colors.Gray03,
|
|
106
|
+
} : {},
|
|
107
|
+
}, onClick: () => this.activateAccount() }, "Submit ", this.isSubmitting && (h("span", { style: { marginLeft: '4px' } }, h("icon-loading", null))))), h("div", { style: { marginTop: '16px' } }, h("button", { type: "button", disabled: this.isSubmitting, style: {
|
|
108
|
+
border: `1px solid ${Colors.Gray03}`,
|
|
100
109
|
background: Colors.White,
|
|
101
110
|
color: Colors.TextColor,
|
|
102
111
|
borderRadius: '8px',
|
|
@@ -106,6 +115,10 @@ const WizardExistingUser = class {
|
|
|
106
115
|
paddingRight: '24px',
|
|
107
116
|
height: '48px',
|
|
108
117
|
width: '100%',
|
|
118
|
+
...this.isSubmitting ? {
|
|
119
|
+
borderColor: Colors.Gray03,
|
|
120
|
+
backgroundColor: Colors.Gray03,
|
|
121
|
+
} : {},
|
|
109
122
|
}, onClick: () => this.sendLoginCode(true) }, "Did not get the code?"))));
|
|
110
123
|
}
|
|
111
124
|
return (h("div", { class: "wizard-existing-user" }, this.errorMessage && (h("div", { style: {
|
|
@@ -127,9 +140,13 @@ const WizardExistingUser = class {
|
|
|
127
140
|
paddingRight: '24px',
|
|
128
141
|
height: '48px',
|
|
129
142
|
marginRight: '16px',
|
|
143
|
+
...this.isSubmitting ? {
|
|
144
|
+
borderColor: Colors.Gray03,
|
|
145
|
+
backgroundColor: Colors.Gray03,
|
|
146
|
+
} : {},
|
|
130
147
|
}, onClick: () => this.onClose() }, "Cancel"), h("button", { type: "button", disabled: this.isSubmitting, style: {
|
|
131
148
|
border: `1px solid ${Colors.Secondary}`,
|
|
132
|
-
|
|
149
|
+
backgroundColor: Colors.Secondary,
|
|
133
150
|
color: Colors.White,
|
|
134
151
|
borderRadius: '8px',
|
|
135
152
|
cursor: 'pointer',
|
|
@@ -138,7 +155,12 @@ const WizardExistingUser = class {
|
|
|
138
155
|
paddingLeft: '24px',
|
|
139
156
|
paddingRight: '24px',
|
|
140
157
|
height: '48px',
|
|
141
|
-
|
|
158
|
+
...this.isSubmitting ? {
|
|
159
|
+
color: Colors.Black,
|
|
160
|
+
borderColor: Colors.Gray03,
|
|
161
|
+
backgroundColor: Colors.Gray03,
|
|
162
|
+
} : {},
|
|
163
|
+
}, onClick: () => this.sendLoginCode() }, "Verify now ", this.isSubmitting && (h("span", { style: { marginLeft: '4px' } }, h("icon-loading", null)))))));
|
|
142
164
|
}
|
|
143
165
|
};
|
|
144
166
|
WizardExistingUser.style = wizardExistingUserCss;
|
|
@@ -106,8 +106,8 @@ const WizardNewUser = class {
|
|
|
106
106
|
fontWeight: '600',
|
|
107
107
|
} }, "Phone verification code sent!"), h("div", { style: {
|
|
108
108
|
marginTop: '4px',
|
|
109
|
-
} }, "You should receive a text message within 30 seconds")), h("div", { style: { marginBottom: '24px' } }, h("input", { type: "text", value: this.activatCode, onInput: (evt) => this.activatCode = evt.target.value, style: {
|
|
110
|
-
border: `1px solid ${Colors.
|
|
109
|
+
} }, "You should receive a text message within 30 seconds")), h("div", { style: { marginBottom: '24px' } }, h("input", { type: "text", placeholder: "Enter Code", value: this.activatCode, disabled: this.isSubmitting, onInput: (evt) => this.activatCode = evt.target.value, style: {
|
|
110
|
+
border: `1px solid ${Colors.Gray03}`,
|
|
111
111
|
backgroundColor: Colors.White,
|
|
112
112
|
borderRadius: '8px',
|
|
113
113
|
padding: '8px 16px',
|
|
@@ -115,9 +115,13 @@ const WizardNewUser = class {
|
|
|
115
115
|
width: '100%',
|
|
116
116
|
fontSize: '22px',
|
|
117
117
|
fontWeight: '700',
|
|
118
|
+
...this.isSubmitting ? {
|
|
119
|
+
borderColor: Colors.Gray03,
|
|
120
|
+
backgroundColor: Colors.Gray03,
|
|
121
|
+
} : {},
|
|
118
122
|
} })), h("div", null, h("button", { type: "button", disabled: this.isSubmitting, style: {
|
|
119
123
|
border: `1px solid ${Colors.Secondary}`,
|
|
120
|
-
|
|
124
|
+
backgroundColor: Colors.Secondary,
|
|
121
125
|
color: Colors.White,
|
|
122
126
|
borderRadius: '8px',
|
|
123
127
|
cursor: 'pointer',
|
|
@@ -127,7 +131,12 @@ const WizardNewUser = class {
|
|
|
127
131
|
paddingRight: '24px',
|
|
128
132
|
height: '48px',
|
|
129
133
|
width: '100%',
|
|
130
|
-
|
|
134
|
+
...this.isSubmitting ? {
|
|
135
|
+
color: Colors.Black,
|
|
136
|
+
borderColor: Colors.Gray03,
|
|
137
|
+
backgroundColor: Colors.Gray03,
|
|
138
|
+
} : {},
|
|
139
|
+
}, onClick: () => this.activateAccount() }, "Submit ", this.isSubmitting && (h("span", { style: { marginLeft: '4px' } }, h("icon-loading", null))))), h("div", { style: { marginTop: '16px' } }, h("button", { type: "button", disabled: this.isSubmitting, style: {
|
|
131
140
|
border: `1px solid ${Colors.Gray02}`,
|
|
132
141
|
background: Colors.White,
|
|
133
142
|
color: Colors.TextColor,
|
|
@@ -138,6 +147,10 @@ const WizardNewUser = class {
|
|
|
138
147
|
paddingRight: '24px',
|
|
139
148
|
height: '48px',
|
|
140
149
|
width: '100%',
|
|
150
|
+
...this.isSubmitting ? {
|
|
151
|
+
borderColor: Colors.Gray03,
|
|
152
|
+
backgroundColor: Colors.Gray03,
|
|
153
|
+
} : {},
|
|
141
154
|
}, onClick: () => this.sendLoginCode(true) }, "Did not get the code?"))));
|
|
142
155
|
}
|
|
143
156
|
return (h("div", { class: "wizard-new-user" }, this.errorMessage && (h("div", { style: {
|
|
@@ -159,9 +172,13 @@ const WizardNewUser = class {
|
|
|
159
172
|
paddingRight: '24px',
|
|
160
173
|
height: '48px',
|
|
161
174
|
marginRight: '16px',
|
|
175
|
+
...this.isSubmitting ? {
|
|
176
|
+
borderColor: Colors.Gray03,
|
|
177
|
+
backgroundColor: Colors.Gray03,
|
|
178
|
+
} : {},
|
|
162
179
|
}, onClick: () => this.onClose() }, "Cancel"), h("button", { type: "button", disabled: this.isSubmitting, style: {
|
|
163
180
|
border: `1px solid ${Colors.Secondary}`,
|
|
164
|
-
|
|
181
|
+
backgroundColor: Colors.Secondary,
|
|
165
182
|
color: Colors.White,
|
|
166
183
|
borderRadius: '8px',
|
|
167
184
|
cursor: 'pointer',
|
|
@@ -170,7 +187,12 @@ const WizardNewUser = class {
|
|
|
170
187
|
paddingLeft: '24px',
|
|
171
188
|
paddingRight: '24px',
|
|
172
189
|
height: '48px',
|
|
173
|
-
|
|
190
|
+
...this.isSubmitting ? {
|
|
191
|
+
color: Colors.Black,
|
|
192
|
+
borderColor: Colors.Gray03,
|
|
193
|
+
backgroundColor: Colors.Gray03,
|
|
194
|
+
} : {},
|
|
195
|
+
}, onClick: () => this.verifyAccount() }, "Verify now ", this.isSubmitting && (h("span", { style: { marginLeft: '4px' } }, h("icon-loading", null)))))));
|
|
174
196
|
}
|
|
175
197
|
};
|
|
176
198
|
WizardNewUser.style = wizardNewUserCss;
|
|
@@ -72,6 +72,21 @@ export namespace Components {
|
|
|
72
72
|
"locationAddress"?: string;
|
|
73
73
|
"locationName"?: string;
|
|
74
74
|
}
|
|
75
|
+
interface IconChecked {
|
|
76
|
+
"size": number;
|
|
77
|
+
}
|
|
78
|
+
interface IconDate {
|
|
79
|
+
"size": number;
|
|
80
|
+
}
|
|
81
|
+
interface IconLoading {
|
|
82
|
+
"size": number;
|
|
83
|
+
}
|
|
84
|
+
interface IconLocationMarker {
|
|
85
|
+
"size": number;
|
|
86
|
+
}
|
|
87
|
+
interface IconPhone {
|
|
88
|
+
"size": number;
|
|
89
|
+
}
|
|
75
90
|
interface LoginForm {
|
|
76
91
|
"onSubmit": (evt: any) => Promise<void>;
|
|
77
92
|
"onSuccess": (user: User) => void;
|
|
@@ -263,6 +278,36 @@ declare global {
|
|
|
263
278
|
prototype: HTMLGoogleMapElement;
|
|
264
279
|
new (): HTMLGoogleMapElement;
|
|
265
280
|
};
|
|
281
|
+
interface HTMLIconCheckedElement extends Components.IconChecked, HTMLStencilElement {
|
|
282
|
+
}
|
|
283
|
+
var HTMLIconCheckedElement: {
|
|
284
|
+
prototype: HTMLIconCheckedElement;
|
|
285
|
+
new (): HTMLIconCheckedElement;
|
|
286
|
+
};
|
|
287
|
+
interface HTMLIconDateElement extends Components.IconDate, HTMLStencilElement {
|
|
288
|
+
}
|
|
289
|
+
var HTMLIconDateElement: {
|
|
290
|
+
prototype: HTMLIconDateElement;
|
|
291
|
+
new (): HTMLIconDateElement;
|
|
292
|
+
};
|
|
293
|
+
interface HTMLIconLoadingElement extends Components.IconLoading, HTMLStencilElement {
|
|
294
|
+
}
|
|
295
|
+
var HTMLIconLoadingElement: {
|
|
296
|
+
prototype: HTMLIconLoadingElement;
|
|
297
|
+
new (): HTMLIconLoadingElement;
|
|
298
|
+
};
|
|
299
|
+
interface HTMLIconLocationMarkerElement extends Components.IconLocationMarker, HTMLStencilElement {
|
|
300
|
+
}
|
|
301
|
+
var HTMLIconLocationMarkerElement: {
|
|
302
|
+
prototype: HTMLIconLocationMarkerElement;
|
|
303
|
+
new (): HTMLIconLocationMarkerElement;
|
|
304
|
+
};
|
|
305
|
+
interface HTMLIconPhoneElement extends Components.IconPhone, HTMLStencilElement {
|
|
306
|
+
}
|
|
307
|
+
var HTMLIconPhoneElement: {
|
|
308
|
+
prototype: HTMLIconPhoneElement;
|
|
309
|
+
new (): HTMLIconPhoneElement;
|
|
310
|
+
};
|
|
266
311
|
interface HTMLLoginFormElement extends Components.LoginForm, HTMLStencilElement {
|
|
267
312
|
}
|
|
268
313
|
var HTMLLoginFormElement: {
|
|
@@ -419,6 +464,11 @@ declare global {
|
|
|
419
464
|
"chat-rooms": HTMLChatRoomsElement;
|
|
420
465
|
"credit-card-types": HTMLCreditCardTypesElement;
|
|
421
466
|
"google-map": HTMLGoogleMapElement;
|
|
467
|
+
"icon-checked": HTMLIconCheckedElement;
|
|
468
|
+
"icon-date": HTMLIconDateElement;
|
|
469
|
+
"icon-loading": HTMLIconLoadingElement;
|
|
470
|
+
"icon-location-marker": HTMLIconLocationMarkerElement;
|
|
471
|
+
"icon-phone": HTMLIconPhoneElement;
|
|
422
472
|
"login-form": HTMLLoginFormElement;
|
|
423
473
|
"notify-sounds": HTMLNotifySoundsElement;
|
|
424
474
|
"powered-by-favesalon": HTMLPoweredByFavesalonElement;
|
|
@@ -501,6 +551,21 @@ declare namespace LocalJSX {
|
|
|
501
551
|
"locationAddress"?: string;
|
|
502
552
|
"locationName"?: string;
|
|
503
553
|
}
|
|
554
|
+
interface IconChecked {
|
|
555
|
+
"size"?: number;
|
|
556
|
+
}
|
|
557
|
+
interface IconDate {
|
|
558
|
+
"size"?: number;
|
|
559
|
+
}
|
|
560
|
+
interface IconLoading {
|
|
561
|
+
"size"?: number;
|
|
562
|
+
}
|
|
563
|
+
interface IconLocationMarker {
|
|
564
|
+
"size"?: number;
|
|
565
|
+
}
|
|
566
|
+
interface IconPhone {
|
|
567
|
+
"size"?: number;
|
|
568
|
+
}
|
|
504
569
|
interface LoginForm {
|
|
505
570
|
"onSuccess"?: (user: User) => void;
|
|
506
571
|
}
|
|
@@ -620,6 +685,11 @@ declare namespace LocalJSX {
|
|
|
620
685
|
"chat-rooms": ChatRooms;
|
|
621
686
|
"credit-card-types": CreditCardTypes;
|
|
622
687
|
"google-map": GoogleMap;
|
|
688
|
+
"icon-checked": IconChecked;
|
|
689
|
+
"icon-date": IconDate;
|
|
690
|
+
"icon-loading": IconLoading;
|
|
691
|
+
"icon-location-marker": IconLocationMarker;
|
|
692
|
+
"icon-phone": IconPhone;
|
|
623
693
|
"login-form": LoginForm;
|
|
624
694
|
"notify-sounds": NotifySounds;
|
|
625
695
|
"powered-by-favesalon": PoweredByFavesalon;
|
|
@@ -661,6 +731,11 @@ declare module "@stencil/core" {
|
|
|
661
731
|
"chat-rooms": LocalJSX.ChatRooms & JSXBase.HTMLAttributes<HTMLChatRoomsElement>;
|
|
662
732
|
"credit-card-types": LocalJSX.CreditCardTypes & JSXBase.HTMLAttributes<HTMLCreditCardTypesElement>;
|
|
663
733
|
"google-map": LocalJSX.GoogleMap & JSXBase.HTMLAttributes<HTMLGoogleMapElement>;
|
|
734
|
+
"icon-checked": LocalJSX.IconChecked & JSXBase.HTMLAttributes<HTMLIconCheckedElement>;
|
|
735
|
+
"icon-date": LocalJSX.IconDate & JSXBase.HTMLAttributes<HTMLIconDateElement>;
|
|
736
|
+
"icon-loading": LocalJSX.IconLoading & JSXBase.HTMLAttributes<HTMLIconLoadingElement>;
|
|
737
|
+
"icon-location-marker": LocalJSX.IconLocationMarker & JSXBase.HTMLAttributes<HTMLIconLocationMarkerElement>;
|
|
738
|
+
"icon-phone": LocalJSX.IconPhone & JSXBase.HTMLAttributes<HTMLIconPhoneElement>;
|
|
664
739
|
"login-form": LocalJSX.LoginForm & JSXBase.HTMLAttributes<HTMLLoginFormElement>;
|
|
665
740
|
"notify-sounds": LocalJSX.NotifySounds & JSXBase.HTMLAttributes<HTMLNotifySoundsElement>;
|
|
666
741
|
"powered-by-favesalon": LocalJSX.PoweredByFavesalon & JSXBase.HTMLAttributes<HTMLPoweredByFavesalonElement>;
|