@meetelise/chat 1.56.0 → 1.57.0
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/src/WebComponent/Scheduler/tour-scheduler.d.ts +8 -2
- package/dist/src/WebComponent/actions/email-us-window.d.ts +7 -1
- package/dist/src/WebComponent/actions/international-phone-input.d.ts +1 -0
- package/dist/src/WebComponent/brokerReferral.d.ts +3 -1
- package/package.json +1 -1
- package/public/dist/index.js +149 -124
- package/src/WebComponent/Scheduler/tour-scheduler.ts +73 -9
- package/src/WebComponent/actions/email-us-window.ts +63 -9
- package/src/WebComponent/actions/international-phone-input.ts +4 -1
- package/src/WebComponent/brokerReferral.ts +6 -1
- package/src/brokerReferralSubmission.test.ts +93 -6
|
@@ -63,6 +63,11 @@ export declare class TourScheduler extends LitElement {
|
|
|
63
63
|
brokerLastName: string;
|
|
64
64
|
brokerEmail: string;
|
|
65
65
|
brokerFirmName: string;
|
|
66
|
+
brokerPhone: string;
|
|
67
|
+
brokerPhoneE164: string | null;
|
|
68
|
+
brokerPhoneCountry: string | null;
|
|
69
|
+
brokerPhoneIsValid: boolean;
|
|
70
|
+
brokerPhoneHasBlurred: boolean;
|
|
66
71
|
leadSources: string[];
|
|
67
72
|
orgLegalName: string;
|
|
68
73
|
country: string | null;
|
|
@@ -110,10 +115,11 @@ export declare class TourScheduler extends LitElement {
|
|
|
110
115
|
}> | Map<PropertyKey, unknown>) => Promise<void>;
|
|
111
116
|
onChangePhoneNumber: (event: CustomEvent<InternationalPhoneChangeDetail>) => void;
|
|
112
117
|
onChangeEmail: (e: Event) => void;
|
|
118
|
+
onChangeBrokerPhone: (event: CustomEvent<InternationalPhoneChangeDetail>) => void;
|
|
113
119
|
/**
|
|
114
120
|
* A broker usually starts typing their own details before ticking the box, so ticking it moves
|
|
115
|
-
* the name and
|
|
116
|
-
* the broker's details are filled, re-ticking leaves both sections alone, as on the email form.
|
|
121
|
+
* the name, email and phone into the broker's empty details and leaves the client's fields empty.
|
|
122
|
+
* Once the broker's details are filled, re-ticking leaves both sections alone, as on the email form.
|
|
117
123
|
*/
|
|
118
124
|
onToggleBrokerReferral: (e: Event) => void;
|
|
119
125
|
/** The broker's details to send, only when the submitter says they're referring a client. */
|
|
@@ -35,6 +35,11 @@ export declare class EmailUsWindow extends LitElement {
|
|
|
35
35
|
brokerLastName: string;
|
|
36
36
|
brokerEmail: string;
|
|
37
37
|
brokerFirmName: string;
|
|
38
|
+
brokerPhone: string;
|
|
39
|
+
brokerPhoneE164: string | null;
|
|
40
|
+
brokerPhoneCountry: string | null;
|
|
41
|
+
brokerPhoneIsValid: boolean;
|
|
42
|
+
hasBrokerPhoneError: boolean;
|
|
38
43
|
selectedLeadSource: MESelect;
|
|
39
44
|
currentLeadSource: string;
|
|
40
45
|
hasNameError: boolean;
|
|
@@ -51,10 +56,11 @@ export declare class EmailUsWindow extends LitElement {
|
|
|
51
56
|
onChangeLastName: (e: Event) => void;
|
|
52
57
|
onChangeEmail: (e: Event) => void;
|
|
53
58
|
onChangePhoneNumber: (e: CustomEvent<InternationalPhoneChangeDetail>) => void;
|
|
59
|
+
onChangeBrokerPhone: (e: CustomEvent<InternationalPhoneChangeDetail>) => void;
|
|
54
60
|
onChangeMessage: (e: Event) => void;
|
|
55
61
|
/**
|
|
56
62
|
* A broker usually starts typing their own details before ticking the box, so ticking it moves
|
|
57
|
-
* the name and
|
|
63
|
+
* the name, email and phone into the broker's empty details and leaves the client's fields empty. Once
|
|
58
64
|
* the broker's details are filled, re-ticking leaves both sections alone: the main fields then
|
|
59
65
|
* hold the client. Unticking with the client's fields still empty moves the details back.
|
|
60
66
|
*/
|
|
@@ -10,6 +10,7 @@ export declare class InternationalPhoneInput extends LitElement {
|
|
|
10
10
|
country: string | null;
|
|
11
11
|
value: string;
|
|
12
12
|
invalid: boolean;
|
|
13
|
+
placeholder: string;
|
|
13
14
|
private selectedCountry;
|
|
14
15
|
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
15
16
|
get e164(): string | null;
|
|
@@ -4,9 +4,11 @@ export declare type BrokerReferral = {
|
|
|
4
4
|
lastName: string;
|
|
5
5
|
email: string;
|
|
6
6
|
firmName: string;
|
|
7
|
+
/** E.164, or "" when the form has no broker phone or it was left empty. */
|
|
8
|
+
phone: string;
|
|
7
9
|
};
|
|
8
10
|
/** The broker's typed details, trimmed, as a referral. */
|
|
9
|
-
export declare const toBrokerReferral: (firstName: string, lastName: string, email: string, firmName: string) => BrokerReferral;
|
|
11
|
+
export declare const toBrokerReferral: (firstName: string, lastName: string, email: string, firmName: string, phone?: string) => BrokerReferral;
|
|
10
12
|
export declare const brokerNameIsMissing: (broker: BrokerReferral) => boolean;
|
|
11
13
|
/**
|
|
12
14
|
* What's wrong with the broker's email, or null. Broker intake opens a broker thread only for a
|