favesalon-embed 1.0.20 → 1.0.22

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 (37) hide show
  1. package/dist/favesalon-embed/activate-form.entry.js +1 -1
  2. package/dist/favesalon-embed/buy-giftcard-form.entry.js +1 -1
  3. package/dist/favesalon-embed/buy-giftcard-verification.entry.js +3 -3
  4. package/dist/favesalon-embed/change-password-form.entry.js +1 -1
  5. package/dist/favesalon-embed/chat-box.entry.js +2 -2
  6. package/dist/favesalon-embed/chat-button.entry.js +2 -2
  7. package/dist/favesalon-embed/chat-form.entry.js +29 -7
  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/login-form.entry.js +1 -1
  12. package/dist/favesalon-embed/register-form.entry.js +1 -1
  13. package/dist/favesalon-embed/reset-password-form.entry.js +1 -1
  14. package/dist/favesalon-embed/salon-info.entry.js +1 -1
  15. package/dist/favesalon-embed/salon-latest-reviews.entry.js +1 -1
  16. package/dist/favesalon-embed/salon-latest-styles.entry.js +1 -1
  17. package/dist/favesalon-embed/salon-locations.entry.js +1 -1
  18. package/dist/favesalon-embed/salon-lookbook.entry.js +1 -1
  19. package/dist/favesalon-embed/salon-reviews.entry.js +1 -1
  20. package/dist/favesalon-embed/salon-schedules.entry.js +1 -1
  21. package/dist/favesalon-embed/salon-services.entry.js +1 -1
  22. package/dist/favesalon-embed/salon-stylists.entry.js +1 -1
  23. package/dist/favesalon-embed/services-42acb174.js +24127 -0
  24. package/dist/favesalon-embed/services-9e44a982.js +24127 -0
  25. package/dist/favesalon-embed/style-detail.entry.js +1 -1
  26. package/dist/favesalon-embed/wizard-existing-user.entry.js +1 -1
  27. package/dist/favesalon-embed/wizard-new-user.entry.js +1 -1
  28. package/dist/types/components/chat-form/index.d.ts +6 -2
  29. package/dist/types/components.d.ts +6 -4
  30. package/dist/types/services/services.d.ts +1 -0
  31. package/package.json +1 -1
  32. package/loader/cdn.js +0 -3
  33. package/loader/index.cjs.js +0 -3
  34. package/loader/index.d.ts +0 -21
  35. package/loader/index.es2017.js +0 -3
  36. package/loader/index.js +0 -4
  37. package/loader/package.json +0 -11
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-888e99e3.js';
2
- import { d as dayjs_min, H as HttpService, j as isVideoMedia, c as getSalonImage, f as shortDateYearFormat } from './services-82948efc.js';
2
+ import { d as dayjs_min, H as HttpService, j as isVideoMedia, c as getSalonImage, f as shortDateYearFormat } from './services-42acb174.js';
3
3
  import { r as relativeTime } from './relativeTime-15477f02.js';
4
4
  import { C as Colors } from './colors-ea36347a.js';
5
5
  import './_commonjsHelpers-9bc404fc.js';
@@ -1,5 +1,5 @@
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
+ import { H as HttpService, g as get_1 } from './services-42acb174.js';
3
3
  import { C as Colors } from './colors-ea36347a.js';
4
4
  import './_commonjsHelpers-9bc404fc.js';
5
5
 
@@ -1,5 +1,5 @@
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
+ import { H as HttpService, g as get_1 } from './services-42acb174.js';
3
3
  import { C as Colors } from './colors-ea36347a.js';
4
4
  import './_commonjsHelpers-9bc404fc.js';
5
5
 
@@ -1,6 +1,10 @@
1
+ import { User } from '../../types/user';
2
+ import { ChatRoom } from '../../types/chat';
1
3
  export declare class ChatForm {
2
- senderId: number;
3
- chatRoomId: string;
4
+ accessToken: string;
5
+ sender: User;
6
+ chatRoom: ChatRoom;
7
+ private sendNotification;
4
8
  private updateChatroomInfo;
5
9
  private onSubmitMessage;
6
10
  render(): any;
@@ -49,8 +49,9 @@ export namespace Components {
49
49
  "senderId"?: string;
50
50
  }
51
51
  interface ChatForm {
52
- "chatRoomId": string;
53
- "senderId": number;
52
+ "accessToken": string;
53
+ "chatRoom": ChatRoom;
54
+ "sender": User;
54
55
  }
55
56
  interface ChatMessages {
56
57
  "chatRoomId": string;
@@ -537,8 +538,9 @@ declare namespace LocalJSX {
537
538
  "senderId"?: string;
538
539
  }
539
540
  interface ChatForm {
540
- "chatRoomId"?: string;
541
- "senderId"?: number;
541
+ "accessToken"?: string;
542
+ "chatRoom"?: ChatRoom;
543
+ "sender"?: User;
542
544
  }
543
545
  interface ChatMessages {
544
546
  "chatRoomId"?: string;
@@ -88,6 +88,7 @@ declare class HttpService {
88
88
  senderId: any;
89
89
  timestamp: number;
90
90
  }>;
91
+ sendNotification(options: any, accessToken: any): Promise<import("axios").AxiosResponse<any>>;
91
92
  loginByPhoneCode(options: any): Promise<{
92
93
  id: any;
93
94
  firstName: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "favesalon-embed",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "Favesalon Embed",
5
5
  "author": "Trung Luu <trung@favesalon.com> (https://favesalon.com)",
6
6
  "main": "dist/index.cjs.js",
package/loader/cdn.js DELETED
@@ -1,3 +0,0 @@
1
-
2
- module.exports = require('../dist/cjs/loader.cjs.js');
3
- module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -1,3 +0,0 @@
1
-
2
- module.exports = require('../dist/cjs/loader.cjs.js');
3
- module.exports.applyPolyfills = function() { return Promise.resolve() };
package/loader/index.d.ts DELETED
@@ -1,21 +0,0 @@
1
- export * from '../dist/types/components';
2
- export interface CustomElementsDefineOptions {
3
- exclude?: string[];
4
- resourcesUrl?: string;
5
- syncQueue?: boolean;
6
- jmp?: (c: Function) => any;
7
- raf?: (c: FrameRequestCallback) => number;
8
- ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
9
- rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
10
- }
11
- export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
12
- export declare function applyPolyfills(): Promise<void>;
13
-
14
- /**
15
- * Used to specify a nonce value that corresponds with an application's CSP.
16
- * When set, the nonce will be added to all dynamically created script and style tags at runtime.
17
- * Alternatively, the nonce value can be set on a meta tag in the DOM head
18
- * (<meta name="csp-nonce" content="{ nonce value here }" />) which
19
- * will result in the same behavior.
20
- */
21
- export declare function setNonce(nonce: string): void;
@@ -1,3 +0,0 @@
1
-
2
- export * from '../dist/esm/polyfills/index.js';
3
- export * from '../dist/esm/loader.js';
package/loader/index.js DELETED
@@ -1,4 +0,0 @@
1
-
2
- (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
3
- export * from '../dist/esm/polyfills/index.js';
4
- export * from '../dist/esm/loader.js';
@@ -1,11 +0,0 @@
1
- {
2
- "name": "favesalon-embed-loader",
3
- "private": true,
4
- "typings": "./index.d.ts",
5
- "module": "./index.js",
6
- "main": "./index.cjs.js",
7
- "jsnext:main": "./index.es2017.js",
8
- "es2015": "./index.es2017.js",
9
- "es2017": "./index.es2017.js",
10
- "unpkg": "./cdn.js"
11
- }