favesalon-embed 1.0.5 → 1.0.6

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 (57) hide show
  1. package/dist/custom-elements/index.d.ts +36 -0
  2. package/dist/favesalon-embed/activate-form.entry.js +70 -0
  3. package/dist/favesalon-embed/app-globals-f954a22f.js +7 -0
  4. package/dist/favesalon-embed/change-password-form.entry.js +81 -0
  5. package/dist/favesalon-embed/chat-box.entry.js +1 -1
  6. package/dist/favesalon-embed/chat-button.entry.js +34 -11
  7. package/dist/favesalon-embed/chat-form.entry.js +1 -1
  8. package/dist/favesalon-embed/chat-messages.entry.js +1 -1
  9. package/dist/favesalon-embed/chat-rooms.entry.js +1 -1
  10. package/dist/favesalon-embed/favesalon-embed.esm.js +1 -1
  11. package/dist/favesalon-embed/index-a229b3b5.js +3371 -0
  12. package/dist/favesalon-embed/login-form.entry.js +67 -0
  13. package/dist/favesalon-embed/register-form.entry.js +88 -0
  14. package/dist/favesalon-embed/reset-password-form.entry.js +47 -0
  15. package/dist/favesalon-embed/salon-booking.entry.js +1 -1
  16. package/dist/favesalon-embed/salon-gift-card.entry.js +1 -1
  17. package/dist/favesalon-embed/salon-info.entry.js +1 -1
  18. package/dist/favesalon-embed/salon-latest-reviews.entry.js +19 -3
  19. package/dist/favesalon-embed/salon-latest-styles.entry.js +14 -7
  20. package/dist/favesalon-embed/salon-locations.entry.js +1 -1
  21. package/dist/favesalon-embed/salon-lookbook.entry.js +16 -4
  22. package/dist/favesalon-embed/salon-reviews.entry.js +18 -4
  23. package/dist/favesalon-embed/salon-schedules.entry.js +1 -1
  24. package/dist/favesalon-embed/salon-services.entry.js +23 -11
  25. package/dist/favesalon-embed/salon-stylists.entry.js +1 -1
  26. package/dist/favesalon-embed/{services-260ea6eb.js → services-5a4c43a6.js} +23 -0
  27. package/dist/favesalon-embed/{services-65a8cf4a.js → services-d71be591.js} +51 -19
  28. package/dist/favesalon-embed/style-detail.entry.js +26 -8
  29. package/dist/favesalon-embed/user-avatar.entry.js +3 -1
  30. package/dist/favesalon-embed/user-form.entry.js +44 -0
  31. package/dist/types/components/activate-form/activate-form.d.ts +12 -0
  32. package/dist/types/components/activate-form/test/activate-form.e2e.d.ts +1 -0
  33. package/dist/types/components/activate-form/test/activate-form.spec.d.ts +1 -0
  34. package/dist/types/components/change-password-form/change-password-form.d.ts +12 -0
  35. package/dist/types/components/chat-button/index.d.ts +6 -2
  36. package/dist/types/components/login-form/login-form.d.ts +10 -0
  37. package/dist/types/components/register-form/register-form.d.ts +13 -0
  38. package/dist/types/components/reset-password-form/reset-password-form.d.ts +9 -0
  39. package/dist/types/components/user-form/user-form.d.ts +7 -0
  40. package/dist/types/components.d.ts +106 -2
  41. package/dist/types/services/services.d.ts +16 -0
  42. package/dist/types/types/user.d.ts +6 -0
  43. package/dist/types/utils/utils.spec.d.ts +1 -0
  44. package/package.json +1 -1
  45. package/dist/favesalon-embed/services-122dcf73.js +0 -23886
  46. package/dist/favesalon-embed/services-23eda072.js +0 -23877
  47. package/dist/favesalon-embed/services-243eef47.js +0 -23880
  48. package/dist/favesalon-embed/services-27607998.js +0 -23886
  49. package/dist/favesalon-embed/services-46b2f0aa.js +0 -23867
  50. package/dist/favesalon-embed/services-8f52210f.js +0 -23880
  51. package/dist/favesalon-embed/services-de32365e.js +0 -23880
  52. package/dist/favesalon-embed/services-e9cfcd2b.js +0 -23885
  53. package/dist/favesalon-embed/services-f7278483.js +0 -23880
  54. package/dist/favesalon-embed/services-f9872bea.js +0 -23880
  55. package/dist/favesalon-embed/utils-2c19db45.js +0 -25
  56. package/dist/favesalon-embed/utils-89c2cff2.js +0 -32
  57. package/dist/favesalon-embed/utils-e226fa04.js +0 -32
@@ -1,25 +0,0 @@
1
- function wait(time = 1000) {
2
- return new Promise(resolve => setTimeout(() => resolve({}), time));
3
- }
4
- function format(first, middle, last) {
5
- return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
6
- }
7
- function formatWebsiteUrl(website) {
8
- return !!website ? website.indexOf('http') > -1 ? website : `http://${website}` : null;
9
- }
10
- function formatFullAddress(salon) {
11
- const { businessAddress, city, state, zipcode, } = salon || {};
12
- const stateFields = [state, zipcode].filter(field => !!field);
13
- if (businessAddress) {
14
- return [businessAddress, city]
15
- .filter(field => !!field)
16
- .concat(stateFields.length > 0 ? [stateFields.join(' ')] : [])
17
- .join(', ');
18
- }
19
- return null;
20
- }
21
- function getRatingText() {
22
- return ['', 'Poor', 'Sufficient', 'Average', 'Well', 'Very good'];
23
- }
24
-
25
- export { formatFullAddress as a, formatWebsiteUrl as f, getRatingText as g };
@@ -1,32 +0,0 @@
1
- function wait(time = 1000) {
2
- return new Promise(resolve => setTimeout(() => resolve({}), time));
3
- }
4
- function format(first, middle, last) {
5
- return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
6
- }
7
- function formatWebsiteUrl(website) {
8
- return !!website ? website.indexOf('http') > -1 ? website : `http://${website}` : null;
9
- }
10
- function formatFullAddress(salon) {
11
- const { businessAddress, city, state, zipcode, } = salon || {};
12
- const stateFields = [state, zipcode].filter(field => !!field);
13
- if (businessAddress) {
14
- return [businessAddress, city]
15
- .filter(field => !!field)
16
- .concat(stateFields.length > 0 ? [stateFields.join(' ')] : [])
17
- .join(', ');
18
- }
19
- return null;
20
- }
21
- function getRatingText() {
22
- return ['', 'Poor', 'Sufficient', 'Average', 'Well', 'Very good'];
23
- }
24
- function formatPhoneNumber(phone) {
25
- return String(phone)
26
- .replace('(', '')
27
- .replace(')', '')
28
- .replace('-', '')
29
- .replaceAll(' ', '');
30
- }
31
-
32
- export { formatFullAddress as a, formatWebsiteUrl as f, getRatingText as g };
@@ -1,32 +0,0 @@
1
- function wait(time = 1000) {
2
- return new Promise(resolve => setTimeout(() => resolve({}), time));
3
- }
4
- function format(first, middle, last) {
5
- return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
6
- }
7
- function formatWebsiteUrl(website) {
8
- return !!website ? website.indexOf('http') > -1 ? website : `http://${website}` : null;
9
- }
10
- function formatFullAddress(salon) {
11
- const { businessAddress, city, state, zipcode, } = salon || {};
12
- const stateFields = [state, zipcode].filter(field => !!field);
13
- if (businessAddress) {
14
- return [businessAddress, city]
15
- .filter(field => !!field)
16
- .concat(stateFields.length > 0 ? [stateFields.join(' ')] : [])
17
- .join(', ');
18
- }
19
- return null;
20
- }
21
- function getRatingText() {
22
- return ['', 'Poor', 'Sufficient', 'Average', 'Well', 'Very good'];
23
- }
24
- function formatPhoneNumber(phone) {
25
- return String(phone || '')
26
- .replace('(', '')
27
- .replace(')', '')
28
- .replace('-', '')
29
- .replaceAll(' ', '');
30
- }
31
-
32
- export { formatFullAddress as a, formatWebsiteUrl as f, getRatingText as g };