favesalon-embed 1.0.15 → 1.0.17

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.
Files changed (56) hide show
  1. package/dist/custom-elements/index.d.ts +36 -0
  2. package/dist/favesalon-embed/{_commonjsHelpers-a4f66ccd.js → _commonjsHelpers-9bc404fc.js} +1 -1
  3. package/dist/favesalon-embed/activate-form.entry.js +10 -3
  4. package/dist/favesalon-embed/buy-giftcard-form.entry.js +1025 -0
  5. package/dist/favesalon-embed/buy-giftcard-verification.entry.js +3937 -0
  6. package/dist/favesalon-embed/change-password-form.entry.js +10 -3
  7. package/dist/favesalon-embed/chat-box.entry.js +2 -2
  8. package/dist/favesalon-embed/chat-button.entry.js +2 -2
  9. package/dist/favesalon-embed/chat-form.entry.js +2 -2
  10. package/dist/favesalon-embed/chat-messages.entry.js +4 -4
  11. package/dist/favesalon-embed/chat-rooms.entry.js +4 -4
  12. package/dist/favesalon-embed/credit-card-types.entry.js +16 -0
  13. package/dist/favesalon-embed/favesalon-embed.css +20 -0
  14. package/dist/favesalon-embed/favesalon-embed.esm.js +1 -1
  15. package/dist/favesalon-embed/{index-00b83e1c.js → index-ac52896a.js} +1 -1
  16. package/dist/favesalon-embed/{lodash-d5526b38.js → lodash-b4fe554a.js} +1 -1
  17. package/dist/favesalon-embed/login-form.entry.js +2 -2
  18. package/dist/favesalon-embed/powered-by-favesalon.entry.js +16 -0
  19. package/dist/favesalon-embed/register-form.entry.js +10 -4
  20. package/dist/favesalon-embed/{relativeTime-268e64b0.js → relativeTime-15477f02.js} +1 -1
  21. package/dist/favesalon-embed/reset-password-form.entry.js +10 -3
  22. package/dist/favesalon-embed/salon-booking.entry.js +2 -2
  23. package/dist/favesalon-embed/salon-gift-card.entry.js +2 -2
  24. package/dist/favesalon-embed/salon-info.entry.js +2 -2
  25. package/dist/favesalon-embed/salon-latest-reviews.entry.js +3 -3
  26. package/dist/favesalon-embed/salon-latest-styles.entry.js +2 -2
  27. package/dist/favesalon-embed/salon-locations.entry.js +3 -3
  28. package/dist/favesalon-embed/salon-lookbook.entry.js +2 -2
  29. package/dist/favesalon-embed/salon-reviews.entry.js +2 -2
  30. package/dist/favesalon-embed/salon-schedules.entry.js +2 -2
  31. package/dist/favesalon-embed/salon-services.entry.js +2 -2
  32. package/dist/favesalon-embed/salon-stylists.entry.js +2 -2
  33. package/dist/favesalon-embed/services-09264f42.js +24132 -0
  34. package/dist/favesalon-embed/services-1406013d.js +24132 -0
  35. package/dist/favesalon-embed/services-82948efc.js +24123 -0
  36. package/dist/favesalon-embed/{services-ece4767f.js → services-9a686ade.js} +318 -125
  37. package/dist/favesalon-embed/services-c2c81c88.js +24131 -0
  38. package/dist/favesalon-embed/services-ef32efdc.js +24132 -0
  39. package/dist/favesalon-embed/style-detail.entry.js +3 -3
  40. package/dist/favesalon-embed/utils-00e4ed17.js +33 -0
  41. package/dist/favesalon-embed/utils-359c37f7.js +33 -0
  42. package/dist/favesalon-embed/utils-daaa9ecc.js +34 -0
  43. package/dist/favesalon-embed/utils-e6e3f132.js +33 -0
  44. package/dist/favesalon-embed/wizard-existing-user.entry.js +146 -0
  45. package/dist/favesalon-embed/wizard-new-user.entry.js +178 -0
  46. package/dist/types/components/buy-giftcard-form/buy-giftcard-form.d.ts +57 -0
  47. package/dist/types/components/buy-giftcard-verification/buy-giftcard-verification.d.ts +23 -0
  48. package/dist/types/components/credit-card-types/credit-card-types.d.ts +4 -0
  49. package/dist/types/components/powered-by-favesalon/powered-by-favesalon.d.ts +4 -0
  50. package/dist/types/components/wizard-existing-user/wizard-existing-user.d.ts +19 -0
  51. package/dist/types/components/wizard-new-user/wizard-new-user.d.ts +23 -0
  52. package/dist/types/components.d.ts +108 -0
  53. package/dist/types/services/services.d.ts +55 -0
  54. package/dist/types/types/giftcard.d.ts +13 -0
  55. package/dist/types/types/salon.d.ts +1 -0
  56. package/package.json +4 -1
@@ -8,6 +8,18 @@ export const ActivateForm: {
8
8
  new (): ActivateForm;
9
9
  };
10
10
 
11
+ interface BuyGiftcardForm extends Components.BuyGiftcardForm, HTMLElement {}
12
+ export const BuyGiftcardForm: {
13
+ prototype: BuyGiftcardForm;
14
+ new (): BuyGiftcardForm;
15
+ };
16
+
17
+ interface BuyGiftcardVerification extends Components.BuyGiftcardVerification, HTMLElement {}
18
+ export const BuyGiftcardVerification: {
19
+ prototype: BuyGiftcardVerification;
20
+ new (): BuyGiftcardVerification;
21
+ };
22
+
11
23
  interface ChangePasswordForm extends Components.ChangePasswordForm, HTMLElement {}
12
24
  export const ChangePasswordForm: {
13
25
  prototype: ChangePasswordForm;
@@ -44,6 +56,12 @@ export const ChatRooms: {
44
56
  new (): ChatRooms;
45
57
  };
46
58
 
59
+ interface CreditCardTypes extends Components.CreditCardTypes, HTMLElement {}
60
+ export const CreditCardTypes: {
61
+ prototype: CreditCardTypes;
62
+ new (): CreditCardTypes;
63
+ };
64
+
47
65
  interface GoogleMap extends Components.GoogleMap, HTMLElement {}
48
66
  export const GoogleMap: {
49
67
  prototype: GoogleMap;
@@ -62,6 +80,12 @@ export const NotifySounds: {
62
80
  new (): NotifySounds;
63
81
  };
64
82
 
83
+ interface PoweredByFavesalon extends Components.PoweredByFavesalon, HTMLElement {}
84
+ export const PoweredByFavesalon: {
85
+ prototype: PoweredByFavesalon;
86
+ new (): PoweredByFavesalon;
87
+ };
88
+
65
89
  interface RegisterForm extends Components.RegisterForm, HTMLElement {}
66
90
  export const RegisterForm: {
67
91
  prototype: RegisterForm;
@@ -176,6 +200,18 @@ export const UserForm: {
176
200
  new (): UserForm;
177
201
  };
178
202
 
203
+ interface WizardExistingUser extends Components.WizardExistingUser, HTMLElement {}
204
+ export const WizardExistingUser: {
205
+ prototype: WizardExistingUser;
206
+ new (): WizardExistingUser;
207
+ };
208
+
209
+ interface WizardNewUser extends Components.WizardNewUser, HTMLElement {}
210
+ export const WizardNewUser: {
211
+ prototype: WizardNewUser;
212
+ new (): WizardNewUser;
213
+ };
214
+
179
215
  /**
180
216
  * Utility to define all custom elements within this package using the tag name provided in the component's source.
181
217
  * When defining each custom element, it will also check it's safe to define by:
@@ -41,4 +41,4 @@ function commonjsRequire () {
41
41
  throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
42
42
  }
43
43
 
44
- export { createCommonjsModule as a, getAugmentedNamespace as b, commonjsGlobal as c, getDefaultExportFromCjs as g };
44
+ export { commonjsGlobal as a, getAugmentedNamespace as b, createCommonjsModule as c, getDefaultExportFromCjs as g };
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h } from './index-888e99e3.js';
2
+ import { H as HttpService, g as get_1 } from './services-82948efc.js';
2
3
  import { C as Colors } from './colors-ea36347a.js';
3
- import { H as HttpService } from './services-ece4767f.js';
4
- import './_commonjsHelpers-a4f66ccd.js';
4
+ import './_commonjsHelpers-9bc404fc.js';
5
5
 
6
6
  const activateFormCss = ".form--user-activate-account .form--login-label{cursor:pointer;display:block;margin-bottom:6px}.form--user-activate-account input,.form--user-activate-account button{border:1px solid #cecece;box-sizing:border-box;display:inline-block;width:100%;padding:4px 11px;min-height:40px;-moz-transition:all 0.3s;-webkit-transition:all 0.3s;transition:all 0.3s;-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px}.form--user-activate-account button{background-color:#001529;border:1px solid #001529;color:#fff;cursor:pointer}.form--user-activate-account button.btn--default{background-color:#fff;border:1px solid #F5F5F5;color:#141414}.form--user-activate-account button:disabled{background-color:#cecece;border:1px solid #cecece;color:#212121}";
7
7
 
@@ -47,7 +47,14 @@ const ActivateForm = class {
47
47
  await HttpService().resendActivateCode(this.username);
48
48
  }
49
49
  catch (e) {
50
- this.error = e.message || `Something went wrong when sending the confirm code`;
50
+ let errorMessage = e.message;
51
+ if (!errorMessage) {
52
+ const twilioErrorMessages = get_1(e, 'response.data.data.twilio_error', []);
53
+ if (twilioErrorMessages.length > 0) {
54
+ errorMessage = twilioErrorMessages[0].note || `Failed to send activate code to your phone. Please try again or contact us for assistance`;
55
+ }
56
+ }
57
+ this.error = errorMessage || `Something went wrong when sending the confirm code`;
51
58
  }
52
59
  }
53
60
  render() {