favesalon-embed 1.0.5 → 1.0.7

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 (53) 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/change-password-form.entry.js +81 -0
  4. package/dist/favesalon-embed/chat-box.entry.js +1 -1
  5. package/dist/favesalon-embed/chat-button.entry.js +43 -12
  6. package/dist/favesalon-embed/chat-form.entry.js +1 -1
  7. package/dist/favesalon-embed/chat-messages.entry.js +1 -1
  8. package/dist/favesalon-embed/chat-rooms.entry.js +1 -1
  9. package/dist/favesalon-embed/favesalon-embed.esm.js +1 -1
  10. package/dist/favesalon-embed/login-form.entry.js +67 -0
  11. package/dist/favesalon-embed/notify-sounds.entry.js +1 -1
  12. package/dist/favesalon-embed/register-form.entry.js +88 -0
  13. package/dist/favesalon-embed/reset-password-form.entry.js +47 -0
  14. package/dist/favesalon-embed/salon-booking.entry.js +1 -1
  15. package/dist/favesalon-embed/salon-gift-card.entry.js +1 -1
  16. package/dist/favesalon-embed/salon-info.entry.js +1 -1
  17. package/dist/favesalon-embed/salon-latest-reviews.entry.js +19 -3
  18. package/dist/favesalon-embed/salon-latest-styles.entry.js +14 -7
  19. package/dist/favesalon-embed/salon-locations.entry.js +1 -1
  20. package/dist/favesalon-embed/salon-lookbook.entry.js +16 -4
  21. package/dist/favesalon-embed/salon-reviews.entry.js +18 -4
  22. package/dist/favesalon-embed/salon-schedules.entry.js +1 -1
  23. package/dist/favesalon-embed/salon-services.entry.js +23 -11
  24. package/dist/favesalon-embed/salon-stylists.entry.js +1 -1
  25. package/dist/favesalon-embed/{services-260ea6eb.js → services-d71be591.js} +36 -0
  26. package/dist/favesalon-embed/style-detail.entry.js +26 -8
  27. package/dist/favesalon-embed/user-avatar.entry.js +3 -1
  28. package/dist/favesalon-embed/user-form.entry.js +44 -0
  29. package/dist/types/components/activate-form/activate-form.d.ts +12 -0
  30. package/dist/types/components/change-password-form/change-password-form.d.ts +12 -0
  31. package/dist/types/components/chat-button/index.d.ts +6 -2
  32. package/dist/types/components/login-form/login-form.d.ts +10 -0
  33. package/dist/types/components/register-form/register-form.d.ts +13 -0
  34. package/dist/types/components/reset-password-form/reset-password-form.d.ts +9 -0
  35. package/dist/types/components/user-form/user-form.d.ts +7 -0
  36. package/dist/types/components.d.ts +106 -2
  37. package/dist/types/services/services.d.ts +16 -0
  38. package/dist/types/types/user.d.ts +6 -0
  39. package/package.json +1 -1
  40. package/dist/favesalon-embed/services-122dcf73.js +0 -23886
  41. package/dist/favesalon-embed/services-23eda072.js +0 -23877
  42. package/dist/favesalon-embed/services-243eef47.js +0 -23880
  43. package/dist/favesalon-embed/services-27607998.js +0 -23886
  44. package/dist/favesalon-embed/services-46b2f0aa.js +0 -23867
  45. package/dist/favesalon-embed/services-65a8cf4a.js +0 -23887
  46. package/dist/favesalon-embed/services-8f52210f.js +0 -23880
  47. package/dist/favesalon-embed/services-de32365e.js +0 -23880
  48. package/dist/favesalon-embed/services-e9cfcd2b.js +0 -23885
  49. package/dist/favesalon-embed/services-f7278483.js +0 -23880
  50. package/dist/favesalon-embed/services-f9872bea.js +0 -23880
  51. package/dist/favesalon-embed/utils-2c19db45.js +0 -25
  52. package/dist/favesalon-embed/utils-89c2cff2.js +0 -32
  53. 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 };