@salesforcedevs/dw-components 1.3.341 → 1.3.348
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dw-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.348",
|
|
4
4
|
"description": "Lightning web components for https://developer.salesforce.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -10,21 +10,21 @@
|
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@types/youtube-player": "
|
|
14
|
-
"classnames": "
|
|
15
|
-
"lodash.clonedeep": "
|
|
16
|
-
"lodash.orderby": "
|
|
17
|
-
"lodash.uniqby": "
|
|
18
|
-
"query-string": "
|
|
19
|
-
"youtube-player": "
|
|
13
|
+
"@types/youtube-player": "5.5.11",
|
|
14
|
+
"classnames": "2.5.1",
|
|
15
|
+
"lodash.clonedeep": "4.5.0",
|
|
16
|
+
"lodash.orderby": "4.6.0",
|
|
17
|
+
"lodash.uniqby": "4.7.0",
|
|
18
|
+
"query-string": "7.1.3",
|
|
19
|
+
"youtube-player": "5.6.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@types/classnames": "
|
|
23
|
-
"@types/lodash.clonedeep": "
|
|
24
|
-
"@types/lodash.orderby": "
|
|
25
|
-
"@types/lodash.uniqby": "
|
|
26
|
-
"@types/setimmediate": "
|
|
27
|
-
"setimmediate": "
|
|
22
|
+
"@types/classnames": "2.3.1",
|
|
23
|
+
"@types/lodash.clonedeep": "4.5.9",
|
|
24
|
+
"@types/lodash.orderby": "4.6.9",
|
|
25
|
+
"@types/lodash.uniqby": "4.7.9",
|
|
26
|
+
"@types/setimmediate": "1.0.4",
|
|
27
|
+
"setimmediate": "1.0.5"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "026b9b66a33e64478850dba27324a211fc606bb0"
|
|
30
30
|
}
|
|
@@ -119,6 +119,21 @@ export default class DeSignupForm extends LightningElement {
|
|
|
119
119
|
);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
trackFormCompletion(target: EventTarget, formData: SignupForm) {
|
|
123
|
+
trackGtm(target!, "custEv_formCompletion", {
|
|
124
|
+
converting_page: "SFDC:us:signup:success",
|
|
125
|
+
converting_page_url:
|
|
126
|
+
"https://developer.salesforce.com/signup/success",
|
|
127
|
+
form_country: formData.user.country,
|
|
128
|
+
form_name: "Dev Edition Signup",
|
|
129
|
+
form_primary_product_interest: "Developer Edition",
|
|
130
|
+
offer_id: `form-builder|dev-edition-signup|${DEFAULT_DRIVER}AAA`,
|
|
131
|
+
offer_type: "free trial",
|
|
132
|
+
name_capture_campaign_id: `${DEFAULT_DRIVER}AAA`,
|
|
133
|
+
form_join_id_unique: formData.form_join_id_unique
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
|
|
122
137
|
handleSubmit(event: Event): void {
|
|
123
138
|
event.preventDefault();
|
|
124
139
|
|
|
@@ -156,22 +171,12 @@ export default class DeSignupForm extends LightningElement {
|
|
|
156
171
|
authentication_type: "dev edition",
|
|
157
172
|
new_registration: true
|
|
158
173
|
});
|
|
159
|
-
|
|
160
|
-
converting_page: "SFDC:us:signup:success",
|
|
161
|
-
converting_page_url:
|
|
162
|
-
"https://developer.salesforce.com/signup/success",
|
|
163
|
-
form_country: formData.user.country,
|
|
164
|
-
form_name: "Dev Edition Signup",
|
|
165
|
-
form_primary_product_interest: "Developer Edition",
|
|
166
|
-
offer_id: `form-builder|dev-edition-signup|${DEFAULT_DRIVER}AAA`,
|
|
167
|
-
offer_type: "free trial",
|
|
168
|
-
name_capture_campaign_id: `${DEFAULT_DRIVER}AAA`,
|
|
169
|
-
form_join_id_unique: formData.form_join_id_unique
|
|
170
|
-
});
|
|
174
|
+
this.trackFormCompletion(event.target!, formData);
|
|
171
175
|
window.location.href = "/signup/success";
|
|
172
176
|
})
|
|
173
177
|
.catch((error) => {
|
|
174
178
|
if (error.message === ErrorCode.GENERIC && didSubmitTimeout) {
|
|
179
|
+
this.trackFormCompletion(event.target!, formData);
|
|
175
180
|
// If the timeout time has passed at the point of error, and the error code is simply "GENERIC",
|
|
176
181
|
// we do not know whether the org will ultimately be created (and we have no current way of confirming),
|
|
177
182
|
// so we navigate the user to an interim page that tells them to watch their email.
|