@meetelise/chat 1.25.1 → 1.25.2

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 (209) hide show
  1. package/coverage/lcov-report/index.html +1 -1
  2. package/coverage/lcov-report/index.js.html +1 -1
  3. package/package.json +1 -1
  4. package/.prettierignore +0 -2
  5. package/dist/src/MyPubnub.d.ts +0 -116
  6. package/dist/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section-styles.d.ts +0 -2
  7. package/dist/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section.d.ts +0 -20
  8. package/dist/src/WebComponent/FeeCalculator/components/fee-item/fee-item-styles.d.ts +0 -2
  9. package/dist/src/WebComponent/FeeCalculator/components/fee-item/fee-item.d.ts +0 -14
  10. package/dist/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector-styles.d.ts +0 -2
  11. package/dist/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector.d.ts +0 -17
  12. package/dist/src/WebComponent/FeeCalculator/components/index.d.ts +0 -3
  13. package/dist/src/WebComponent/FeeCalculator/components/promo-card/promo-card-styles.d.ts +0 -2
  14. package/dist/src/WebComponent/FeeCalculator/components/promo-card/promo-card.d.ts +0 -13
  15. package/dist/src/WebComponent/FeeCalculator/fee-calculator-styles.d.ts +0 -1
  16. package/dist/src/WebComponent/FeeCalculator/fee-calculator.d.ts +0 -31
  17. package/dist/src/WebComponent/FeeCalculator/index.d.ts +0 -2
  18. package/dist/src/WebComponent/FeeCalculator/model/building-fee.d.ts +0 -75
  19. package/dist/src/WebComponent/FeeCalculator/model/transaction-category.d.ts +0 -23
  20. package/dist/src/WebComponent/LeadSourceClient.d.ts +0 -46
  21. package/dist/src/WebComponent/OfficeHours.d.ts +0 -21
  22. package/dist/src/WebComponent/Scheduler/date-picker.d.ts +0 -28
  23. package/dist/src/WebComponent/Scheduler/time-picker.d.ts +0 -14
  24. package/dist/src/WebComponent/Scheduler/tour-scheduler.d.ts +0 -99
  25. package/dist/src/WebComponent/Scheduler/tour-type-option.d.ts +0 -13
  26. package/dist/src/WebComponent/Scheduler/tourSchedulerStyles.d.ts +0 -1
  27. package/dist/src/WebComponent/actions/InputStyles.d.ts +0 -1
  28. package/dist/src/WebComponent/actions/action-confirm-button.d.ts +0 -13
  29. package/dist/src/WebComponent/actions/call-us-window.d.ts +0 -37
  30. package/dist/src/WebComponent/actions/collapse-expand-button.d.ts +0 -8
  31. package/dist/src/WebComponent/actions/details-window.d.ts +0 -14
  32. package/dist/src/WebComponent/actions/email-us-window.d.ts +0 -46
  33. package/dist/src/WebComponent/actions/formatPhoneNumber.d.ts +0 -17
  34. package/dist/src/WebComponent/actions/minimize-expand-button.d.ts +0 -8
  35. package/dist/src/WebComponent/chat-additional-actions.d.ts +0 -28
  36. package/dist/src/WebComponent/health-chat.d.ts +0 -47
  37. package/dist/src/WebComponent/healthchat-styles.d.ts +0 -1
  38. package/dist/src/WebComponent/icons/ApplyOutlineIcon.d.ts +0 -2
  39. package/dist/src/WebComponent/icons/BookTourOutlineIcon.d.ts +0 -2
  40. package/dist/src/WebComponent/icons/CalculatorOutlineIcon.d.ts +0 -2
  41. package/dist/src/WebComponent/icons/ChatOutlineIcon.d.ts +0 -2
  42. package/dist/src/WebComponent/icons/ChevronLeftIcon.d.ts +0 -2
  43. package/dist/src/WebComponent/icons/ChevronRightIcon.d.ts +0 -2
  44. package/dist/src/WebComponent/icons/ContactResidentIcon.d.ts +0 -2
  45. package/dist/src/WebComponent/icons/DollarOutlineIcon.d.ts +0 -3
  46. package/dist/src/WebComponent/icons/EmailOutlineIcon.d.ts +0 -2
  47. package/dist/src/WebComponent/icons/HeyThereEmojiIcon.d.ts +0 -2
  48. package/dist/src/WebComponent/icons/PhoneOutlineIcon.d.ts +0 -2
  49. package/dist/src/WebComponent/icons/SendMessageIcon.d.ts +0 -3
  50. package/dist/src/WebComponent/icons/TourSelfGuidedIcon.d.ts +0 -2
  51. package/dist/src/WebComponent/icons/TourVirtuallyIcon.d.ts +0 -2
  52. package/dist/src/WebComponent/icons/TourWithAgentIcon.d.ts +0 -2
  53. package/dist/src/WebComponent/icons/XOutlineIcon.d.ts +0 -2
  54. package/dist/src/WebComponent/index.d.ts +0 -2
  55. package/dist/src/WebComponent/launcher/Launcher.d.ts +0 -98
  56. package/dist/src/WebComponent/launcher/launcherStyles.d.ts +0 -1
  57. package/dist/src/WebComponent/launcher/mobile-launcher.d.ts +0 -26
  58. package/dist/src/WebComponent/launcher/typeEmojiStyles.d.ts +0 -1
  59. package/dist/src/WebComponent/launcher/typeMiniStyles.d.ts +0 -1
  60. package/dist/src/WebComponent/launcher/typeMobileStyles.d.ts +0 -1
  61. package/dist/src/WebComponent/leasing-chat-styles.d.ts +0 -1
  62. package/dist/src/WebComponent/me-chat.d.ts +0 -91
  63. package/dist/src/WebComponent/me-select.d.ts +0 -24
  64. package/dist/src/WebComponent/mini-loader.d.ts +0 -5
  65. package/dist/src/WebComponent/pubnub-chat-styles.d.ts +0 -1
  66. package/dist/src/WebComponent/pubnub-chat.d.ts +0 -49
  67. package/dist/src/WebComponent/pubnub-media.d.ts +0 -14
  68. package/dist/src/WebComponent/pubnub-message-styles.d.ts +0 -1
  69. package/dist/src/WebComponent/pubnub-message.d.ts +0 -39
  70. package/dist/src/WebComponent/simple-launcher/simple-launcher-styles.d.ts +0 -1
  71. package/dist/src/WebComponent/simple-launcher/simple-launcher.d.ts +0 -12
  72. package/dist/src/WebComponent/utilities-chat.d.ts +0 -47
  73. package/dist/src/WebComponent/utilities-styles.d.ts +0 -1
  74. package/dist/src/WebComponent/utils.d.ts +0 -31
  75. package/dist/src/analytics.d.ts +0 -64
  76. package/dist/src/disclaimers.d.ts +0 -8
  77. package/dist/src/fetchBuildingABTestType.d.ts +0 -8
  78. package/dist/src/fetchBuildingInfo.d.ts +0 -57
  79. package/dist/src/fetchBuildingWebchatView.d.ts +0 -122
  80. package/dist/src/fetchFeatureFlag.d.ts +0 -14
  81. package/dist/src/fetchLeadSources.d.ts +0 -4
  82. package/dist/src/fetchPhoneNumberFromSource.d.ts +0 -6
  83. package/dist/src/getAvailabilities.d.ts +0 -44
  84. package/dist/src/getBuildingPhoneNumber.d.ts +0 -1
  85. package/dist/src/getShouldAllowScheduling.d.ts +0 -1
  86. package/dist/src/getShouldShowWebchat.d.ts +0 -3
  87. package/dist/src/getTimezoneString.d.ts +0 -1
  88. package/dist/src/globals.d.ts +0 -1
  89. package/dist/src/gtm.d.ts +0 -6
  90. package/dist/src/handleChatId.d.ts +0 -11
  91. package/dist/src/insertDNIIntoWebsite.d.ts +0 -5
  92. package/dist/src/insertLeadSourceIntoSchedulerLinks.d.ts +0 -4
  93. package/dist/src/main/MEChat.d.ts +0 -74
  94. package/dist/src/main/utils.d.ts +0 -2
  95. package/dist/src/postLeadSources.d.ts +0 -3
  96. package/dist/src/rentgrata.d.ts +0 -4
  97. package/dist/src/replaceSelectButtonsWithNewLink.d.ts +0 -5
  98. package/dist/src/services/fees/fetchBuildingFees.d.ts +0 -3
  99. package/dist/src/svgIcons.d.ts +0 -5
  100. package/dist/src/themes.d.ts +0 -5
  101. package/dist/src/types/rest-sdk.types.d.ts +0 -11
  102. package/dist/src/types/webchat-no-show-reason.d.ts +0 -1
  103. package/dist/src/utils.d.ts +0 -13
  104. package/public/demo/index.html +0 -347
  105. package/public/demo/secret.html +0 -63
  106. package/src/MyPubnub.ts +0 -792
  107. package/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section-styles.ts +0 -86
  108. package/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section.ts +0 -94
  109. package/src/WebComponent/FeeCalculator/components/fee-item/fee-item-styles.ts +0 -47
  110. package/src/WebComponent/FeeCalculator/components/fee-item/fee-item.ts +0 -50
  111. package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector-styles.ts +0 -46
  112. package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector.ts +0 -70
  113. package/src/WebComponent/FeeCalculator/components/index.ts +0 -3
  114. package/src/WebComponent/FeeCalculator/components/promo-card/promo-card-styles.ts +0 -39
  115. package/src/WebComponent/FeeCalculator/components/promo-card/promo-card.ts +0 -39
  116. package/src/WebComponent/FeeCalculator/fee-calculator-styles.ts +0 -280
  117. package/src/WebComponent/FeeCalculator/fee-calculator.ts +0 -256
  118. package/src/WebComponent/FeeCalculator/index.ts +0 -4
  119. package/src/WebComponent/FeeCalculator/model/building-fee.ts +0 -83
  120. package/src/WebComponent/FeeCalculator/model/transaction-category.ts +0 -23
  121. package/src/WebComponent/LeadSourceClient.ts +0 -332
  122. package/src/WebComponent/MEChat.css +0 -5
  123. package/src/WebComponent/OfficeHours.ts +0 -73
  124. package/src/WebComponent/Scheduler/date-picker.ts +0 -405
  125. package/src/WebComponent/Scheduler/time-picker.ts +0 -190
  126. package/src/WebComponent/Scheduler/tour-scheduler.ts +0 -1352
  127. package/src/WebComponent/Scheduler/tour-type-option.ts +0 -112
  128. package/src/WebComponent/Scheduler/tourSchedulerStyles.ts +0 -418
  129. package/src/WebComponent/actions/InputStyles.ts +0 -57
  130. package/src/WebComponent/actions/action-confirm-button.ts +0 -125
  131. package/src/WebComponent/actions/call-us-window.ts +0 -445
  132. package/src/WebComponent/actions/collapse-expand-button.ts +0 -65
  133. package/src/WebComponent/actions/details-window.ts +0 -150
  134. package/src/WebComponent/actions/email-us-window.ts +0 -555
  135. package/src/WebComponent/actions/formatPhoneNumber.ts +0 -72
  136. package/src/WebComponent/actions/minimize-expand-button.ts +0 -93
  137. package/src/WebComponent/chat-additional-actions.ts +0 -135
  138. package/src/WebComponent/health-chat.ts +0 -270
  139. package/src/WebComponent/healthchat-styles.ts +0 -119
  140. package/src/WebComponent/icons/ApplyOutlineIcon.ts +0 -22
  141. package/src/WebComponent/icons/BookTourOutlineIcon.ts +0 -13
  142. package/src/WebComponent/icons/CalculatorOutlineIcon.ts +0 -22
  143. package/src/WebComponent/icons/ChatOutlineIcon.ts +0 -10
  144. package/src/WebComponent/icons/ChevronLeftIcon.ts +0 -7
  145. package/src/WebComponent/icons/ChevronRightIcon.ts +0 -7
  146. package/src/WebComponent/icons/ContactResidentIcon.ts +0 -9
  147. package/src/WebComponent/icons/DollarOutlineIcon.ts +0 -18
  148. package/src/WebComponent/icons/EmailOutlineIcon.ts +0 -7
  149. package/src/WebComponent/icons/HeyThereEmojiIcon.ts +0 -12
  150. package/src/WebComponent/icons/PhoneOutlineIcon.ts +0 -7
  151. package/src/WebComponent/icons/SendMessageIcon.ts +0 -17
  152. package/src/WebComponent/icons/TourSelfGuidedIcon.ts +0 -17
  153. package/src/WebComponent/icons/TourVirtuallyIcon.ts +0 -17
  154. package/src/WebComponent/icons/TourWithAgentIcon.ts +0 -17
  155. package/src/WebComponent/icons/XOutlineIcon.ts +0 -8
  156. package/src/WebComponent/index.ts +0 -2
  157. package/src/WebComponent/launcher/Launcher.ts +0 -1193
  158. package/src/WebComponent/launcher/launcherStyles.ts +0 -500
  159. package/src/WebComponent/launcher/mobile-launcher.ts +0 -159
  160. package/src/WebComponent/launcher/typeEmojiStyles.ts +0 -161
  161. package/src/WebComponent/launcher/typeMiniStyles.ts +0 -60
  162. package/src/WebComponent/launcher/typeMobileStyles.ts +0 -50
  163. package/src/WebComponent/leasing-chat-styles.ts +0 -114
  164. package/src/WebComponent/me-chat.ts +0 -1257
  165. package/src/WebComponent/me-select.ts +0 -322
  166. package/src/WebComponent/mini-loader.ts +0 -28
  167. package/src/WebComponent/pubnub-chat-styles.ts +0 -204
  168. package/src/WebComponent/pubnub-chat.ts +0 -928
  169. package/src/WebComponent/pubnub-media.ts +0 -208
  170. package/src/WebComponent/pubnub-message-styles.ts +0 -54
  171. package/src/WebComponent/pubnub-message.ts +0 -431
  172. package/src/WebComponent/simple-launcher/simple-launcher-styles.ts +0 -34
  173. package/src/WebComponent/simple-launcher/simple-launcher.ts +0 -100
  174. package/src/WebComponent/utilities-chat.ts +0 -270
  175. package/src/WebComponent/utilities-styles.ts +0 -110
  176. package/src/WebComponent/utils.ts +0 -82
  177. package/src/analytics.ts +0 -217
  178. package/src/assetUrls.ts +0 -6
  179. package/src/disclaimers.ts +0 -58
  180. package/src/fetchBuildingABTestType.ts +0 -21
  181. package/src/fetchBuildingInfo.ts +0 -87
  182. package/src/fetchBuildingWebchatView.ts +0 -154
  183. package/src/fetchFeatureFlag.ts +0 -250
  184. package/src/fetchLeadSources.ts +0 -98
  185. package/src/fetchPhoneNumberFromSource.ts +0 -31
  186. package/src/fetchWebchatPreferences.ts +0 -54
  187. package/src/getAvailabilities.ts +0 -174
  188. package/src/getBuildingPhoneNumber.ts +0 -26
  189. package/src/getShouldAllowScheduling.ts +0 -16
  190. package/src/getShouldShowWebchat.ts +0 -114
  191. package/src/getTimezoneString.ts +0 -39
  192. package/src/globals.ts +0 -1
  193. package/src/gtm.ts +0 -17
  194. package/src/handleChatId.ts +0 -101
  195. package/src/insertDNIIntoWebsite.ts +0 -146
  196. package/src/insertLeadSourceIntoSchedulerLinks.ts +0 -71
  197. package/src/main/MEChat.test.ts +0 -110
  198. package/src/main/MEChat.ts +0 -404
  199. package/src/main/utils.ts +0 -70
  200. package/src/postLeadSources.ts +0 -44
  201. package/src/rentgrata.ts +0 -74
  202. package/src/replaceSelectButtonsWithNewLink.ts +0 -68
  203. package/src/services/fees/fetchBuildingFees.ts +0 -28
  204. package/src/svgIcons.ts +0 -14
  205. package/src/themes.ts +0 -65
  206. package/src/types/rest-sdk.types.ts +0 -13
  207. package/src/types/webchat-no-show-reason.ts +0 -6
  208. package/src/utils.ts +0 -121
  209. package/tsconfig.json +0 -84
@@ -95,7 +95,7 @@
95
95
  <div class='footer quiet pad2 space-top1 center small'>
96
96
  Code coverage generated by
97
97
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
98
- at Fri Mar 14 2025 15:14:24 GMT+0000 (Coordinated Universal Time)
98
+ at Fri Mar 14 2025 15:32:53 GMT+0000 (Coordinated Universal Time)
99
99
  </div>
100
100
  </div>
101
101
  <script src="prettify.js"></script>
@@ -17077,7 +17077,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
17077
17077
  <div class='footer quiet pad2 space-top1 center small'>
17078
17078
  Code coverage generated by
17079
17079
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
17080
- at Fri Mar 14 2025 15:14:24 GMT+0000 (Coordinated Universal Time)
17080
+ at Fri Mar 14 2025 15:32:53 GMT+0000 (Coordinated Universal Time)
17081
17081
  </div>
17082
17082
  </div>
17083
17083
  <script src="prettify.js"></script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.25.1",
3
+ "version": "1.25.2",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/MeetElise/chat-ui#readme",
package/.prettierignore DELETED
@@ -1,2 +0,0 @@
1
- dist
2
- coverage
@@ -1,116 +0,0 @@
1
- import Pubnub, { ListenerParameters, MessageEvent } from "pubnub";
2
- import { ChatStorageKey } from "./handleChatId";
3
- import LeadSourceClient from "./WebComponent/LeadSourceClient";
4
- import { WidgetType } from "./main/MEChat";
5
- import { BuildingWebchatView } from "./fetchBuildingWebchatView";
6
- interface TokenResponse {
7
- auth: {
8
- result: {
9
- token: string;
10
- };
11
- };
12
- keys: {
13
- subscribe_key: string;
14
- publish_key: string;
15
- };
16
- }
17
- declare enum MessageType {
18
- noReply = "no-reply",
19
- text = "text",
20
- media = "media"
21
- }
22
- interface RawPubnubMessage {
23
- channel: string;
24
- message: {
25
- text: string;
26
- customType: string;
27
- messageType?: MessageType;
28
- is_streaming?: boolean;
29
- is_done?: boolean;
30
- order?: number;
31
- stream_id?: string;
32
- media?: ChatMediaFile[];
33
- };
34
- publisher: string;
35
- subscription: string;
36
- timetoken: number;
37
- }
38
- export interface SimpleTextChatMessage {
39
- timestamp: number;
40
- message: string;
41
- isLeadMessage: boolean;
42
- chunks: {
43
- text: string;
44
- order: number;
45
- isDone: boolean;
46
- }[];
47
- type: SimpleMessageTypes.text;
48
- }
49
- interface ChatMediaFile {
50
- title: string | null;
51
- description: string | null;
52
- url: string | null;
53
- }
54
- export interface SimpleMediaChatMessage {
55
- timestamp: number;
56
- media: ChatMediaFile[];
57
- isLeadMessage: boolean;
58
- type: SimpleMessageTypes.media;
59
- }
60
- export declare type SimpleChatMessage = SimpleTextChatMessage | SimpleMediaChatMessage;
61
- export declare const isSimpleTextChatMessage: (message: SimpleChatMessage) => message is SimpleTextChatMessage;
62
- export declare const isSimpleMediaChatMessage: (message: SimpleChatMessage) => message is SimpleMediaChatMessage;
63
- export declare enum SimpleMessageTypes {
64
- text = "text",
65
- media = "media"
66
- }
67
- declare class MyPubnub {
68
- private apiHost;
69
- private leadSourceClient;
70
- private buildingWebchatView;
71
- private buildingSlug;
72
- private orgSlug;
73
- private eliseResponseTimeout;
74
- private isWaitingForStreamingMessages;
75
- private widgetType;
76
- pubnub: Pubnub | null;
77
- leadUserId: string;
78
- channel: string;
79
- leadSource: string | null;
80
- isCurrentlyStreamingMessage: boolean;
81
- chatListener: ((res: {
82
- messages: SimpleChatMessage[];
83
- isLoading: boolean;
84
- }) => void) | null;
85
- rawPubnubMessages: RawPubnubMessage[];
86
- simpleChatMessages: SimpleChatMessage[];
87
- listenerParams: ListenerParameters;
88
- isLoadingMessages: boolean;
89
- isFirstChatMessageSent: boolean;
90
- private streamingMessageTimeout;
91
- constructor(buildingSlug: string, buildingDetails: BuildingWebchatView | null, orgSlug: string, leadSource: string | null | undefined, leadUserId: string, leadSourceClient?: LeadSourceClient | null, widgetType?: WidgetType);
92
- private checkAndHandleDelayStreamingMessages;
93
- checkAndHandleGTMForLeadEmail: (messageEvent: Pubnub.MessageEvent) => void;
94
- addChatListener(listener: (response: {
95
- messages: SimpleChatMessage[];
96
- isLoading: boolean;
97
- }) => void): void;
98
- initializePubnub(chatStorageKey: ChatStorageKey): Promise<Pubnub | undefined>;
99
- fetchToken(lead: string, channel: string): Promise<TokenResponse | null>;
100
- fetchChannelExists(channel: string): Promise<boolean>;
101
- withAuthToken(apiRequestFunc: () => Promise<void>): Promise<void>;
102
- private markEveryPreviousNoReplyMessageDone;
103
- private checkMessageChunkValid;
104
- getChannelHistory(maxTotalMessageChunksToFetch?: number): Promise<void>;
105
- handleChatListeners: () => void;
106
- handleDisconnect: () => void;
107
- removeChatListeners: () => void;
108
- sendMessage: (message: string) => Promise<void>;
109
- private shouldCreateAsDevState;
110
- isLeadMessage: (message: RawPubnubMessage) => boolean;
111
- private removeDuplicatedRawPubnubMessages;
112
- translatePubnubMessagesIntoSimpleChatMessages: (messages: RawPubnubMessage[]) => SimpleChatMessage[];
113
- private getConsecutiveChunks;
114
- private isMessageStillStreamingChunks;
115
- }
116
- export default MyPubnub;
@@ -1,2 +0,0 @@
1
- declare const collapsibleFeeSectionStyles: import("lit").CSSResult;
2
- export default collapsibleFeeSectionStyles;
@@ -1,20 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- import { BuildingFee } from "../../model/building-fee";
3
- import "../fee-item/fee-item";
4
- export declare class CollapsibleFeeSection extends LitElement {
5
- static styles: import("lit").CSSResult;
6
- primaryColor: string;
7
- title: string;
8
- totalLabel: string;
9
- buildingFees: BuildingFee[];
10
- private isDetailsVisible;
11
- get totalAmount(): string;
12
- toggleDetails: () => void;
13
- get detailsText(): string;
14
- render(): TemplateResult;
15
- }
16
- declare global {
17
- interface HTMLElementTagNameMap {
18
- "collapsible-fee-section": CollapsibleFeeSection;
19
- }
20
- }
@@ -1,2 +0,0 @@
1
- declare const feeItemStyles: import("lit").CSSResult;
2
- export default feeItemStyles;
@@ -1,14 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- import { BuildingFee } from "../../model/building-fee";
3
- export declare class FeeItemComponent extends LitElement {
4
- static styles: import("lit").CSSResult;
5
- feeItem: BuildingFee | null;
6
- get feeName(): string;
7
- get feeAmount(): string;
8
- render(): TemplateResult;
9
- }
10
- declare global {
11
- interface HTMLElementTagNameMap {
12
- "fee-item": FeeItemComponent;
13
- }
14
- }
@@ -1,2 +0,0 @@
1
- declare const floorPlanSelectorStyles: import("lit").CSSResult;
2
- export default floorPlanSelectorStyles;
@@ -1,17 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- import { LayoutOption } from "../../../../fetchBuildingWebchatView";
3
- export declare class FloorPlanSelector extends LitElement {
4
- static styles: import("lit").CSSResult;
5
- floorPlans: LayoutOption[];
6
- selectedLayoutId: number | null;
7
- primaryColor: string;
8
- allOptionId: string;
9
- private handleFloorPlanClick;
10
- private get displayOptions();
11
- render(): TemplateResult;
12
- }
13
- declare global {
14
- interface HTMLElementTagNameMap {
15
- "floor-plan-selector": FloorPlanSelector;
16
- }
17
- }
@@ -1,3 +0,0 @@
1
- export * from "./promo-card/promo-card";
2
- export * from "./floor-plan-selector/floor-plan-selector";
3
- export * from "./collapsible-fee-section/collapsible-fee-section";
@@ -1,2 +0,0 @@
1
- declare const promoCardStyles: import("lit").CSSResult;
2
- export default promoCardStyles;
@@ -1,13 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- export declare class PromoCard extends LitElement {
3
- static styles: import("lit").CSSResult;
4
- promoAmount: string;
5
- promoDescription: string;
6
- promoValidity: string;
7
- render(): TemplateResult;
8
- }
9
- declare global {
10
- interface HTMLElementTagNameMap {
11
- "promo-card": PromoCard;
12
- }
13
- }
@@ -1 +0,0 @@
1
- export declare const feeCalculatorStyles: import("lit").CSSResult;
@@ -1,31 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- import { LayoutOption } from "../../fetchBuildingWebchatView";
3
- import { BuildingFee, RecurrenceFrequency } from "./model/building-fee";
4
- import "./components";
5
- import "../chat-additional-actions";
6
- export declare class FeeCalculator extends LitElement {
7
- static styles: import("lit").CSSResult;
8
- buildingSlug: string;
9
- orgSlug: string;
10
- primaryColor: string;
11
- backgroundColor: string;
12
- compactDesign: boolean;
13
- onCloseClicked: ((e: MouseEvent) => void) | null;
14
- private isLoading;
15
- private buildingWebchatView;
16
- private groupedFees;
17
- get layouts(): LayoutOption[];
18
- private enabledChatWidgets;
19
- baseAmountInput: HTMLInputElement;
20
- feePercentageInput: HTMLInputElement;
21
- constructor();
22
- firstUpdated: () => Promise<void>;
23
- setupCalculator: () => Promise<void>;
24
- groupFees: (fees: BuildingFee[]) => Record<RecurrenceFrequency, BuildingFee[]>;
25
- handleClose: (e: MouseEvent) => void;
26
- connectedCallback(): void;
27
- disconnectedCallback(): void;
28
- updated(changedProperties: Map<string, unknown>): void;
29
- adjustPositionAdditionalActions: () => void;
30
- render(): TemplateResult;
31
- }
@@ -1,2 +0,0 @@
1
- export { FeeCalculator } from "./fee-calculator";
2
- export declare const installFeeCalculator: () => void;
@@ -1,75 +0,0 @@
1
- import { TransactionCategory } from "./transaction-category";
2
- export interface BuildingFee {
3
- id: number;
4
- buildingId: number;
5
- blueprint: FeeBlueprint;
6
- unitIds: number[] | null;
7
- layoutIds: number[] | null;
8
- startDate: Date | null;
9
- endDate: Date | null;
10
- source: string | null;
11
- timeCreated: Date;
12
- externalKey: string | null;
13
- syncActive: boolean;
14
- hiddenReason: string | null;
15
- refundable: boolean | null;
16
- required?: boolean;
17
- }
18
- interface FeeBlueprint {
19
- transactionId: number | null;
20
- transactionAmount: number | null;
21
- flowDirection: TransactionFlow;
22
- transactionDescription: string | null;
23
- category: TransactionCategory;
24
- recurrenceInfo: RecurrenceInfo | null;
25
- adjustmentInfo: AdjustmentInfo | null;
26
- triggerInfo: TriggerInfo | null;
27
- addOnInfo: AddOnInfo | null;
28
- priceType: PriceType;
29
- handledByThirdParty: boolean;
30
- handledByThirdPartyReasoning: string | null;
31
- leaseStartDate: Date | null;
32
- leaseEndDate: Date | null;
33
- }
34
- interface AdjustmentInfo {
35
- reason: string;
36
- percentage: number;
37
- }
38
- export declare enum RecurrenceFrequency {
39
- OneTime = "OneTime",
40
- Daily = "Daily",
41
- Weekly = "Weekly",
42
- BiWeekly = "BiWeekly",
43
- Monthly = "Monthly",
44
- Yearly = "Yearly",
45
- Unknown = "Unknown"
46
- }
47
- interface RecurrenceInfo {
48
- frequency: RecurrenceFrequency;
49
- startDate: Date | null;
50
- endDate: Date | null;
51
- }
52
- interface TriggerInfo {
53
- triggerEvent: string;
54
- maxDaysBeforeEvent: number;
55
- maxDaysAfterEvent: number;
56
- triggerEventEmbedding: number[] | null;
57
- startDate: Date | null;
58
- endDate: Date | null;
59
- }
60
- interface AddOnInfo {
61
- addOnType: string;
62
- maxUnitsCharged: number | null;
63
- minUnitsCharged: number | null;
64
- addOnTypeEmbedding: number[] | null;
65
- }
66
- declare enum TransactionFlow {
67
- Debit = "Debit",
68
- Credit = "Credit"
69
- }
70
- declare enum PriceType {
71
- Fixed = "Fixed",
72
- UsageBased = "UsageBased",
73
- Varies = "Varies"
74
- }
75
- export {};
@@ -1,23 +0,0 @@
1
- export declare enum TransactionCategory {
2
- AdminFee = "AdminFee",
3
- ApplicationFee = "ApplicationFee",
4
- Concession = "Concession",
5
- Insurance = "Insurance",
6
- LateFee = "LateFee",
7
- Legal = "Legal",
8
- NonSufficientFundFee = "NSF",
9
- Other = "Other",
10
- Parking = "Parking",
11
- Penalty = "Penalty",
12
- Pest = "Pest",
13
- PetDeposit = "PetDeposit",
14
- PetRent = "PetRent",
15
- Refund = "Refund",
16
- Relet = "Relet",
17
- Rent = "Rent",
18
- SecurityDeposit = "SecurityDeposit",
19
- Storage = "Storage",
20
- Trash = "Trash",
21
- Utility = "Utility",
22
- WaterSewer = "WaterSewer"
23
- }
@@ -1,46 +0,0 @@
1
- import { CampaignSources } from "../analytics";
2
- export interface LeadSourceInput {
3
- buildingSlug: string | null;
4
- queryParams: {
5
- [queryKey: string]: string;
6
- } | null;
7
- referrer: string;
8
- campaignSources: CampaignSources;
9
- }
10
- export declare function getDefaultLeadSourceAttribution(orgSlug: string): string;
11
- declare class LeadSourceClient {
12
- chatId: string | null;
13
- private apiHost;
14
- leadSource: string | null;
15
- private localStorageTTLDays;
16
- buildingId: number | null;
17
- orgSlug: string | null;
18
- buildingSlug: string | null;
19
- queryParameters: {
20
- [queryKey: string]: string;
21
- } | null;
22
- leadSourceInput: {
23
- websiteOrigin: string | null;
24
- websiteSearch: string | null;
25
- queryParameters: {
26
- [queryKey: string]: string;
27
- } | null;
28
- referrer: string | null;
29
- parsedUtmSource: string | null;
30
- campaignSources: string[] | null;
31
- } | null;
32
- private updateLeadSourceLocalStorage;
33
- private getLeadSourceBodyIfValid;
34
- private fetchCurrentParsedLeadSource;
35
- checkAndHandleForLogLeadSource({ webchatAction, stateId, }: {
36
- webchatAction: string;
37
- stateId: string | null;
38
- }): Promise<null>;
39
- getCookieValue(key: string): Promise<string | null>;
40
- generateUserLeadSource({ leadId, orgSlug, buildingSlug, }: {
41
- leadId: string;
42
- orgSlug: string;
43
- buildingSlug: string | null;
44
- }): Promise<string | null>;
45
- }
46
- export default LeadSourceClient;
@@ -1,21 +0,0 @@
1
- interface OfficeHourAvailabilityReponse {
2
- [dayOfWeek: string]: {
3
- start: string;
4
- end: string;
5
- };
6
- }
7
- export declare const getRawOfficeHours: (buildingId: number) => Promise<OfficeHourAvailabilityReponse>;
8
- export declare const getDefaultOfficeHours: () => {
9
- startTime: Date;
10
- endTime: Date;
11
- }[];
12
- export declare const dayNamesInOrder: string[];
13
- /**
14
- * Based on the design, we're going with monday as the first day of the week
15
- */
16
- export declare const getOfficeHourText: (buildingId: number) => Promise<(string | {
17
- dayOfWeek: string;
18
- startTime: string;
19
- endTime: string;
20
- })[]>;
21
- export {};
@@ -1,28 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- import { Month } from "../utils";
3
- export declare class DatePicker extends LitElement {
4
- /**
5
- * Optional attribute to set the date picker's default month.
6
- * The attribute will not be updated if the user changes the month shown.
7
- */
8
- defaultMonth?: Month;
9
- /**
10
- * Optional attribute to set the date picker's default year.
11
- * The attribute will not be updated if the user changes the year shown.
12
- */
13
- defaultYear?: number;
14
- availabilities?: {
15
- [day: string]: Date[];
16
- };
17
- private _selectedDate?;
18
- set selectedDate(date: Date | undefined);
19
- get selectedDate(): undefined | Date;
20
- now: Date;
21
- private _monthShown;
22
- set monthShown(month: number);
23
- /** 0-indexed month, e.g. `0` for January */
24
- get monthShown(): number;
25
- yearShown: number;
26
- static styles: import("lit").CSSResult;
27
- render(): TemplateResult;
28
- }
@@ -1,14 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- import { DateWithTimeZoneOffset } from "../../getAvailabilities";
3
- export declare type TimePickerOption = {
4
- displayTime: string;
5
- dateWithTimeZoneOffset: DateWithTimeZoneOffset;
6
- };
7
- export declare class TimePicker extends LitElement {
8
- options: TimePickerOption[];
9
- selectedDateExists: boolean;
10
- private selected?;
11
- get selectedTime(): undefined | TimePickerOption;
12
- static styles: import("lit").CSSResult;
13
- render(): TemplateResult;
14
- }
@@ -1,99 +0,0 @@
1
- import { LitElement, PropertyValueMap, TemplateResult } from "lit";
2
- import "./tour-type-option.ts";
3
- import "./date-picker.ts";
4
- import "./time-picker.ts";
5
- import "../me-select.ts";
6
- import { MESelect } from "../me-select";
7
- import { LabeledOption } from "../../fetchBuildingInfo";
8
- export declare class TourScheduler extends LitElement {
9
- tourTypeOptions: LabeledOption[];
10
- chatId: string;
11
- buildingId: number;
12
- buildingSlug: string;
13
- sgtUrl: string;
14
- selfGuidedToursTypeOffered: string;
15
- selfGuidedTourEnabled: boolean;
16
- escortedToursLink: string;
17
- virtualToursLink: string;
18
- orgSlug: string;
19
- hasDynamicSchedulingEnabled: boolean;
20
- private leadSourceClient;
21
- buildingName: string;
22
- onCloseClicked?: (e: MouseEvent) => void;
23
- private tourType;
24
- private shouldShowTourType;
25
- private email;
26
- private phoneNumber;
27
- private availabilitiesGroupedByDay;
28
- private waitingForAvailabilities;
29
- private selectedDate?;
30
- private selectedTime?;
31
- private mobilePageIndex;
32
- private isSubmitting;
33
- private tourIsBooked;
34
- private shouldAllowScheduling;
35
- private shouldAllowScheduleLoading;
36
- private promptForReschedule;
37
- private canceledReschedule;
38
- leadSources: string[];
39
- orgLegalName: string;
40
- currentLeadSource: string;
41
- featureFlagShowDropdown: string;
42
- compactDesign: boolean;
43
- primaryColor: string;
44
- backgroundColor: string;
45
- foregroundColorOnPrimaryBackgroundColor: string;
46
- foregroundColorOnSecondaryBackgroundColor: string;
47
- firstNameInput: HTMLInputElement;
48
- lastNameInput: HTMLInputElement;
49
- emailInput: HTMLInputElement;
50
- phoneInput: HTMLInputElement;
51
- selectedLeadSource: MESelect;
52
- firstNameInputValue: string;
53
- lastNameInputValue: string;
54
- leadSourceInputValue: string;
55
- errorGettingAvailabilities: boolean;
56
- firstUpdated: () => Promise<void>;
57
- protected willUpdate: (_changedProperties: PropertyValueMap<{
58
- tourType: TourType;
59
- }> | Map<PropertyKey, unknown>) => Promise<void>;
60
- handlePhoneKeydown: (e: Event) => void;
61
- handlePhoneKeyup: (e: KeyboardEvent) => void;
62
- onChangeEmail: (e: Event) => void;
63
- validators: {
64
- tourType: () => boolean;
65
- dateAndTime: () => boolean;
66
- leadInfo: () => boolean;
67
- };
68
- formIsValidForSubmission: () => boolean;
69
- /** E.g., `timeStringToHoursAndMinutes("4:15pm")` -> `[16, 15]`
70
- */
71
- timeStringToHoursAndMinutes: (timeString: string) => [hours: number, minutes: number];
72
- submit: () => Promise<void>;
73
- static styles: import("lit").CSSResult[];
74
- tourTypeMenu(): TemplateResult;
75
- dateAndTimeMenu(): TemplateResult;
76
- closeButton(): TemplateResult;
77
- mobilePages: ({
78
- validate: () => boolean;
79
- nextButtonText: string;
80
- nextButtonAction: () => void;
81
- render: () => TemplateResult;
82
- renderNextButton?: undefined;
83
- } | {
84
- validate: () => boolean;
85
- nextButtonText: null;
86
- renderNextButton: () => TemplateResult;
87
- nextButtonAction: null;
88
- render: () => TemplateResult;
89
- })[];
90
- userInfoAndLayoutMenu(): TemplateResult;
91
- confirmationMessage(): TemplateResult;
92
- loadingIcon(size?: number): TemplateResult;
93
- render(): TemplateResult;
94
- }
95
- export declare enum TourType {
96
- Guided = "guided",
97
- Self = "self",
98
- Virtual = "virtual"
99
- }
@@ -1,13 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- export declare class TourTypeOption extends LitElement {
3
- heading: string;
4
- subtitle: string;
5
- selected: boolean;
6
- onClick?: () => void;
7
- primaryColor: string;
8
- backgroundColor: string;
9
- foregroundColorOnPrimaryBackgroundColor: string;
10
- foregroundColorOnSecondaryBackgroundColor: string;
11
- static styles: import("lit").CSSResult[];
12
- render(): TemplateResult;
13
- }
@@ -1 +0,0 @@
1
- export declare const tourSchedulerStyles: import("lit").CSSResult;
@@ -1 +0,0 @@
1
- export declare const InputStyles: import("lit").CSSResult;
@@ -1,13 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- export declare class ActionConfirmButton extends LitElement {
3
- static styles: import("lit").CSSResult[];
4
- onClick?: () => void;
5
- text: string;
6
- isLoading: boolean;
7
- disabled: boolean;
8
- height: string;
9
- width: string;
10
- focus: () => void;
11
- render: () => TemplateResult;
12
- }
13
- export declare const installActionConfirmButton: () => void;
@@ -1,37 +0,0 @@
1
- import { LitElement, TemplateResult } from "lit";
2
- import { Ref } from "lit/directives/ref.js";
3
- export declare class CallUsWindow extends LitElement {
4
- static styles: import("lit").CSSResult[];
5
- buildingSlug: string;
6
- orgSlug: string;
7
- onCloseClicked?: (e: MouseEvent) => void;
8
- phoneNumberToCall: string;
9
- phoneNumberToText: string;
10
- buildingId: number;
11
- buildingName: string;
12
- chatCallUsHeader: string;
13
- hasCallUsEnabled: string;
14
- hasTextUsEnabled: string;
15
- currentLeadSource: string;
16
- orgLegalName: string;
17
- private leadSourceClient;
18
- phoneNumberInputRef: Ref<HTMLInputElement>;
19
- hasSubmittedForm: boolean;
20
- hasPhoneNumberError: boolean;
21
- hasSubmissionError: boolean;
22
- submittingTextUsOption: boolean;
23
- officeHoursTextInfo: (string | {
24
- dayOfWeek: string;
25
- startTime: string;
26
- endTime: string;
27
- })[];
28
- firstUpdated: () => Promise<void>;
29
- getCallLink: (phoneNumber: string) => TemplateResult;
30
- enforcePhoneFormat: (e: KeyboardEvent) => void;
31
- onSubmitTextUs: () => Promise<void>;
32
- onChangePhoneNumber: (e: Event) => void;
33
- private renderFormTextUsOption;
34
- private renderSubmittedTextUsOption;
35
- render: () => TemplateResult;
36
- }
37
- export declare const installCallUsWindow: () => void;