favesalon-embed 1.0.4 → 1.0.5
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 +6 -0
- package/dist/{cjs/_commonjsHelpers-5cfcba41.js → favesalon-embed/_commonjsHelpers-a4f66ccd.js} +14 -6
- package/dist/favesalon-embed/app-globals-74127f4b.js +7 -0
- package/dist/favesalon-embed/chat-box.entry.js +55 -0
- package/dist/{esm → favesalon-embed}/chat-button.entry.js +4 -4
- package/dist/favesalon-embed/chat-form.entry.js +39 -0
- package/dist/favesalon-embed/chat-messages.entry.js +71 -0
- package/dist/favesalon-embed/chat-rooms.entry.js +111 -0
- package/dist/favesalon-embed/css-shim-b7d3d95f.js +4 -0
- package/dist/favesalon-embed/dom-64053c71.js +73 -0
- package/dist/favesalon-embed/favesalon-embed.css +114 -1
- package/dist/favesalon-embed/favesalon-embed.esm.js +148 -1
- package/dist/{esm → favesalon-embed}/google-map.entry.js +1 -1
- package/dist/{esm/index-a1c7583c.js → favesalon-embed/index-00b83e1c.js} +425 -15
- package/dist/favesalon-embed/index-888e99e3.js +3371 -0
- package/dist/favesalon-embed/index.esm.js +1 -0
- package/dist/{esm/chat-box_5.entry.js → favesalon-embed/lodash-d5526b38.js} +27 -243
- package/dist/{cjs/chat-button.cjs.entry.js → favesalon-embed/notify-sounds.entry.js} +20 -44
- package/dist/favesalon-embed/relativeTime-268e64b0.js +7 -0
- package/dist/{esm → favesalon-embed}/salon-booking-modal.entry.js +1 -1
- package/dist/{esm → favesalon-embed}/salon-booking.entry.js +3 -3
- package/dist/{esm → favesalon-embed}/salon-gift-card-modal.entry.js +1 -1
- package/dist/{esm → favesalon-embed}/salon-gift-card.entry.js +3 -3
- package/dist/{esm → favesalon-embed}/salon-info.entry.js +3 -3
- package/dist/{esm → favesalon-embed}/salon-latest-reviews.entry.js +4 -4
- package/dist/{collection/components/salon-latest-styles/index.js → favesalon-embed/salon-latest-styles.entry.js} +14 -99
- package/dist/{collection/components/salon-locations/index.js → favesalon-embed/salon-locations.entry.js} +15 -95
- package/dist/{esm → favesalon-embed}/salon-lookbook.entry.js +3 -3
- package/dist/{esm → favesalon-embed}/salon-ranking.entry.js +1 -1
- package/dist/{esm → favesalon-embed}/salon-reviews.entry.js +3 -3
- package/dist/{collection/components/salon-schedules/index.js → favesalon-embed/salon-schedules.entry.js} +14 -95
- package/dist/{esm → favesalon-embed}/salon-services.entry.js +3 -3
- package/dist/{esm → favesalon-embed}/salon-stylists.entry.js +3 -3
- package/dist/favesalon-embed/services-122dcf73.js +23886 -0
- package/dist/{cjs/services-d1bdf299.js → favesalon-embed/services-23eda072.js} +2487 -104
- package/dist/favesalon-embed/services-243eef47.js +23880 -0
- package/dist/favesalon-embed/services-260ea6eb.js +23883 -0
- package/dist/favesalon-embed/services-27607998.js +23886 -0
- package/dist/{esm/services-257442e2.js → favesalon-embed/services-46b2f0aa.js} +2482 -101
- package/dist/favesalon-embed/services-65a8cf4a.js +23887 -0
- package/dist/favesalon-embed/services-8f52210f.js +23880 -0
- package/dist/favesalon-embed/services-de32365e.js +23880 -0
- package/dist/favesalon-embed/services-e9cfcd2b.js +23885 -0
- package/dist/favesalon-embed/services-f7278483.js +23880 -0
- package/dist/favesalon-embed/services-f9872bea.js +23880 -0
- package/dist/favesalon-embed/shadow-css-98135883.js +387 -0
- package/dist/{esm → favesalon-embed}/style-detail.entry.js +4 -4
- package/dist/favesalon-embed/user-avatar.entry.js +50 -0
- package/dist/{esm/utils-e97485e0.js → favesalon-embed/utils-2c19db45.js} +6 -0
- package/dist/{collection/utils/utils.js → favesalon-embed/utils-89c2cff2.js} +14 -5
- package/dist/{cjs/utils-c5a33b3c.js → favesalon-embed/utils-e226fa04.js} +14 -5
- package/dist/favesalon-embed/utils-fd30fb29.js +32 -0
- package/dist/types/components/chat-box/index.d.ts +1 -0
- package/dist/types/components/chat-button/notify-sounds.d.ts +5 -0
- package/dist/types/components/chat-rooms/index.d.ts +6 -0
- package/dist/types/components.d.ts +21 -0
- package/dist/types/services/services.d.ts +1 -0
- package/dist/types/types/chat.d.ts +1 -0
- package/dist/types/types/user.d.ts +10 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/chat-box_5.cjs.entry.js +0 -17439
- package/dist/cjs/colors-38421769.js +0 -69
- package/dist/cjs/favesalon-embed.cjs.js +0 -23
- package/dist/cjs/google-map.cjs.entry.js +0 -52
- package/dist/cjs/index-7f190886.js +0 -4396
- package/dist/cjs/index-dd8176c4.js +0 -1531
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -22
- package/dist/cjs/relativeTime-3721080d.js +0 -9
- package/dist/cjs/salon-booking-modal.cjs.entry.js +0 -30
- package/dist/cjs/salon-booking.cjs.entry.js +0 -51
- package/dist/cjs/salon-gift-card-modal.cjs.entry.js +0 -29
- package/dist/cjs/salon-gift-card.cjs.entry.js +0 -51
- package/dist/cjs/salon-info.cjs.entry.js +0 -33
- package/dist/cjs/salon-latest-reviews.cjs.entry.js +0 -97
- package/dist/cjs/salon-latest-styles_3.cjs.entry.js +0 -241
- package/dist/cjs/salon-lookbook.cjs.entry.js +0 -222
- package/dist/cjs/salon-ranking.cjs.entry.js +0 -60
- package/dist/cjs/salon-reviews.cjs.entry.js +0 -193
- package/dist/cjs/salon-services.cjs.entry.js +0 -81
- package/dist/cjs/salon-stylists.cjs.entry.js +0 -118
- package/dist/cjs/style-detail.cjs.entry.js +0 -312
- package/dist/collection/collection-manifest.json +0 -33
- package/dist/collection/components/chat-box/index.css +0 -105
- package/dist/collection/components/chat-box/index.js +0 -138
- package/dist/collection/components/chat-button/index.css +0 -101
- package/dist/collection/components/chat-button/index.js +0 -155
- package/dist/collection/components/chat-form/index.css +0 -40
- package/dist/collection/components/chat-form/index.js +0 -79
- package/dist/collection/components/chat-messages/index.css +0 -48
- package/dist/collection/components/chat-messages/index.js +0 -142
- package/dist/collection/components/chat-rooms/index.css +0 -102
- package/dist/collection/components/chat-rooms/index.js +0 -157
- package/dist/collection/components/google-map/assets/map--placeholder.jpeg +0 -0
- package/dist/collection/components/google-map/index.css +0 -5
- package/dist/collection/components/google-map/index.js +0 -90
- package/dist/collection/components/salon-booking/index.css +0 -30
- package/dist/collection/components/salon-booking/index.js +0 -126
- package/dist/collection/components/salon-booking/salon-booking-modal.js +0 -92
- package/dist/collection/components/salon-gift-card/index.css +0 -30
- package/dist/collection/components/salon-gift-card/index.js +0 -126
- package/dist/collection/components/salon-gift-card/salon-gift-card-modal.js +0 -73
- package/dist/collection/components/salon-info/index.css +0 -1
- package/dist/collection/components/salon-info/index.js +0 -77
- package/dist/collection/components/salon-latest-reviews/index.css +0 -11
- package/dist/collection/components/salon-latest-reviews/index.js +0 -163
- package/dist/collection/components/salon-latest-styles/index.css +0 -12
- package/dist/collection/components/salon-locations/index.css +0 -24
- package/dist/collection/components/salon-lookbook/index.css +0 -15
- package/dist/collection/components/salon-lookbook/index.js +0 -368
- package/dist/collection/components/salon-ranking/index.css +0 -3
- package/dist/collection/components/salon-ranking/index.js +0 -117
- package/dist/collection/components/salon-reviews/index.css +0 -18
- package/dist/collection/components/salon-reviews/index.js +0 -249
- package/dist/collection/components/salon-schedules/index.css +0 -18
- package/dist/collection/components/salon-services/index.css +0 -1
- package/dist/collection/components/salon-services/index.js +0 -146
- package/dist/collection/components/salon-stylists/index.css +0 -43
- package/dist/collection/components/salon-stylists/index.js +0 -184
- package/dist/collection/components/style-detail/index.css +0 -76
- package/dist/collection/components/style-detail/index.js +0 -386
- package/dist/collection/components/user-avatar/index.css +0 -0
- package/dist/collection/components/user-avatar/index.js +0 -159
- package/dist/collection/constants/colors.js +0 -65
- package/dist/collection/global/global.js +0 -0
- package/dist/collection/index.js +0 -1
- package/dist/collection/mocks/users.js +0 -10
- package/dist/collection/services/services.js +0 -295
- package/dist/collection/types/chat.js +0 -23
- package/dist/collection/types/common.js +0 -11
- package/dist/collection/types/review.js +0 -39
- package/dist/collection/types/salon.js +0 -58
- package/dist/collection/types/service.js +0 -24
- package/dist/collection/types/style.js +0 -128
- package/dist/collection/types/stylist.js +0 -30
- package/dist/collection/types/user.js +0 -10
- package/dist/custom-elements/index.js +0 -44974
- package/dist/esm/_commonjsHelpers-66ac50f5.js +0 -32
- package/dist/esm/favesalon-embed.js +0 -18
- package/dist/esm/index-0494771f.js +0 -1504
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -18
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/relativeTime-baa50aa2.js +0 -7
- package/dist/esm/salon-latest-styles_3.entry.js +0 -235
- package/dist/favesalon-embed/p-05a1c88a.entry.js +0 -1
- package/dist/favesalon-embed/p-0acf0447.entry.js +0 -1
- package/dist/favesalon-embed/p-0bc4f624.js +0 -1
- package/dist/favesalon-embed/p-1af1515f.entry.js +0 -1
- package/dist/favesalon-embed/p-1cba5fc9.entry.js +0 -1
- package/dist/favesalon-embed/p-39a4ef15.entry.js +0 -1
- package/dist/favesalon-embed/p-3e2cb05b.entry.js +0 -1
- package/dist/favesalon-embed/p-47e646f8.js +0 -1
- package/dist/favesalon-embed/p-487b311f.entry.js +0 -1
- package/dist/favesalon-embed/p-55387c2f.entry.js +0 -1
- package/dist/favesalon-embed/p-566f05b4.entry.js +0 -1
- package/dist/favesalon-embed/p-862a0de0.entry.js +0 -1
- package/dist/favesalon-embed/p-9fe0cbeb.js +0 -2
- package/dist/favesalon-embed/p-a33331cc.js +0 -1
- package/dist/favesalon-embed/p-aeeb7b5f.entry.js +0 -1
- package/dist/favesalon-embed/p-b08e5b54.js +0 -6
- package/dist/favesalon-embed/p-b5cca5fc.entry.js +0 -1
- package/dist/favesalon-embed/p-c7fb7af5.js +0 -1580
- package/dist/favesalon-embed/p-ccab56d8.js +0 -1
- package/dist/favesalon-embed/p-d6e13053.entry.js +0 -1
- package/dist/favesalon-embed/p-dee42d34.entry.js +0 -1
- package/dist/favesalon-embed/p-e661ca1d.entry.js +0 -1
- package/dist/favesalon-embed/p-eeceab9c.entry.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- /package/dist/{esm → favesalon-embed}/colors-ea36347a.js +0 -0
|
@@ -12,6 +12,7 @@ export namespace Components {
|
|
|
12
12
|
"accessToken": string;
|
|
13
13
|
"fetchData": () => Promise<void>;
|
|
14
14
|
"primaryColor": string;
|
|
15
|
+
"salonId": string;
|
|
15
16
|
"senderId": string;
|
|
16
17
|
}
|
|
17
18
|
interface ChatButton {
|
|
@@ -32,15 +33,20 @@ export namespace Components {
|
|
|
32
33
|
"sender": User;
|
|
33
34
|
}
|
|
34
35
|
interface ChatRooms {
|
|
36
|
+
"accessToken": string;
|
|
35
37
|
"activeRoom": ChatRoom;
|
|
36
38
|
"chatRooms": ChatRoom[];
|
|
39
|
+
"clients": User[];
|
|
37
40
|
"onClickRoom": (chatRoom: ChatRoom) => void;
|
|
41
|
+
"salonId": number;
|
|
38
42
|
"senderId": number;
|
|
39
43
|
}
|
|
40
44
|
interface GoogleMap {
|
|
41
45
|
"locationAddress"?: string;
|
|
42
46
|
"locationName"?: string;
|
|
43
47
|
}
|
|
48
|
+
interface NotifySounds {
|
|
49
|
+
}
|
|
44
50
|
interface SalonBooking {
|
|
45
51
|
"buttonClass": string;
|
|
46
52
|
"buttonText": string;
|
|
@@ -168,6 +174,12 @@ declare global {
|
|
|
168
174
|
prototype: HTMLGoogleMapElement;
|
|
169
175
|
new (): HTMLGoogleMapElement;
|
|
170
176
|
};
|
|
177
|
+
interface HTMLNotifySoundsElement extends Components.NotifySounds, HTMLStencilElement {
|
|
178
|
+
}
|
|
179
|
+
var HTMLNotifySoundsElement: {
|
|
180
|
+
prototype: HTMLNotifySoundsElement;
|
|
181
|
+
new (): HTMLNotifySoundsElement;
|
|
182
|
+
};
|
|
171
183
|
interface HTMLSalonBookingElement extends Components.SalonBooking, HTMLStencilElement {
|
|
172
184
|
}
|
|
173
185
|
var HTMLSalonBookingElement: {
|
|
@@ -271,6 +283,7 @@ declare global {
|
|
|
271
283
|
"chat-messages": HTMLChatMessagesElement;
|
|
272
284
|
"chat-rooms": HTMLChatRoomsElement;
|
|
273
285
|
"google-map": HTMLGoogleMapElement;
|
|
286
|
+
"notify-sounds": HTMLNotifySoundsElement;
|
|
274
287
|
"salon-booking": HTMLSalonBookingElement;
|
|
275
288
|
"salon-booking-modal": HTMLSalonBookingModalElement;
|
|
276
289
|
"salon-gift-card": HTMLSalonGiftCardElement;
|
|
@@ -293,6 +306,7 @@ declare namespace LocalJSX {
|
|
|
293
306
|
interface ChatBox {
|
|
294
307
|
"accessToken"?: string;
|
|
295
308
|
"primaryColor"?: string;
|
|
309
|
+
"salonId"?: string;
|
|
296
310
|
"senderId"?: string;
|
|
297
311
|
}
|
|
298
312
|
interface ChatButton {
|
|
@@ -312,15 +326,20 @@ declare namespace LocalJSX {
|
|
|
312
326
|
"sender"?: User;
|
|
313
327
|
}
|
|
314
328
|
interface ChatRooms {
|
|
329
|
+
"accessToken"?: string;
|
|
315
330
|
"activeRoom"?: ChatRoom;
|
|
316
331
|
"chatRooms"?: ChatRoom[];
|
|
332
|
+
"clients"?: User[];
|
|
317
333
|
"onClickRoom"?: (chatRoom: ChatRoom) => void;
|
|
334
|
+
"salonId"?: number;
|
|
318
335
|
"senderId"?: number;
|
|
319
336
|
}
|
|
320
337
|
interface GoogleMap {
|
|
321
338
|
"locationAddress"?: string;
|
|
322
339
|
"locationName"?: string;
|
|
323
340
|
}
|
|
341
|
+
interface NotifySounds {
|
|
342
|
+
}
|
|
324
343
|
interface SalonBooking {
|
|
325
344
|
"buttonClass"?: string;
|
|
326
345
|
"buttonText"?: string;
|
|
@@ -404,6 +423,7 @@ declare namespace LocalJSX {
|
|
|
404
423
|
"chat-messages": ChatMessages;
|
|
405
424
|
"chat-rooms": ChatRooms;
|
|
406
425
|
"google-map": GoogleMap;
|
|
426
|
+
"notify-sounds": NotifySounds;
|
|
407
427
|
"salon-booking": SalonBooking;
|
|
408
428
|
"salon-booking-modal": SalonBookingModal;
|
|
409
429
|
"salon-gift-card": SalonGiftCard;
|
|
@@ -432,6 +452,7 @@ declare module "@stencil/core" {
|
|
|
432
452
|
"chat-messages": LocalJSX.ChatMessages & JSXBase.HTMLAttributes<HTMLChatMessagesElement>;
|
|
433
453
|
"chat-rooms": LocalJSX.ChatRooms & JSXBase.HTMLAttributes<HTMLChatRoomsElement>;
|
|
434
454
|
"google-map": LocalJSX.GoogleMap & JSXBase.HTMLAttributes<HTMLGoogleMapElement>;
|
|
455
|
+
"notify-sounds": LocalJSX.NotifySounds & JSXBase.HTMLAttributes<HTMLNotifySoundsElement>;
|
|
435
456
|
"salon-booking": LocalJSX.SalonBooking & JSXBase.HTMLAttributes<HTMLSalonBookingElement>;
|
|
436
457
|
"salon-booking-modal": LocalJSX.SalonBookingModal & JSXBase.HTMLAttributes<HTMLSalonBookingModalElement>;
|
|
437
458
|
"salon-gift-card": LocalJSX.SalonGiftCard & JSXBase.HTMLAttributes<HTMLSalonGiftCardElement>;
|
|
@@ -4,6 +4,7 @@ export interface User {
|
|
|
4
4
|
firstName: string;
|
|
5
5
|
lastName: string;
|
|
6
6
|
avatar: string;
|
|
7
|
+
mobilePhone: string;
|
|
7
8
|
}
|
|
8
9
|
export declare function createUser(blob: any): {
|
|
9
10
|
id: any;
|
|
@@ -11,4 +12,13 @@ export declare function createUser(blob: any): {
|
|
|
11
12
|
lastName: any;
|
|
12
13
|
fullName: any;
|
|
13
14
|
avatar: any;
|
|
15
|
+
mobilePhone: any;
|
|
16
|
+
};
|
|
17
|
+
export declare function createUserFromChatRoom(blob: any): {
|
|
18
|
+
id: any;
|
|
19
|
+
firstName: any;
|
|
20
|
+
lastName: any;
|
|
21
|
+
fullName: any;
|
|
22
|
+
avatar: any;
|
|
23
|
+
mobilePhone: any;
|
|
14
24
|
};
|
|
@@ -4,3 +4,4 @@ export declare function format(first: string, middle: string, last: string): str
|
|
|
4
4
|
export declare function formatWebsiteUrl(website: string): string;
|
|
5
5
|
export declare function formatFullAddress(salon: Salon): string;
|
|
6
6
|
export declare function getRatingText(): string[];
|
|
7
|
+
export declare function formatPhoneNumber(phone: string): string;
|