@salesforcedevs/dw-components 1.3.85 → 1.3.86
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 +2 -2
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.ts +6 -4
- package/src/modules/dw/deSignupForm/deSignupForm.ts +10 -4
- package/src/modules/dw/docsGrid/docsGrid.ts +5 -5
- package/src/modules/dw/newsletterForm/newsletterForm.ts +10 -9
- package/src/modules/dw/tbidLoginMenu/tbidLoginMenu.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dw-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.86",
|
|
4
4
|
"description": "Lightning web components for https://developer.salesforce.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@types/setimmediate": "^1.0.2",
|
|
25
25
|
"setimmediate": "^1.0.5"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "61133211828234c195a168b122293e153a40617b"
|
|
28
28
|
}
|
|
@@ -76,9 +76,12 @@ export default class CodeSamplesGrid extends LightningElement {
|
|
|
76
76
|
evaluateQueryParams(resetFilters: boolean): void {
|
|
77
77
|
let page = "1";
|
|
78
78
|
if (resetFilters) {
|
|
79
|
-
this.selectedSourceFilter =
|
|
80
|
-
|
|
81
|
-
this.
|
|
79
|
+
this.selectedSourceFilter =
|
|
80
|
+
this.filtersDefaultValue.selectedSourceFilter;
|
|
81
|
+
this.selectedTypeFilter =
|
|
82
|
+
this.filtersDefaultValue.selectedTypeFilter;
|
|
83
|
+
this.selectedProductFilter =
|
|
84
|
+
this.filtersDefaultValue.selectedProductFilter;
|
|
82
85
|
}
|
|
83
86
|
const urlParams = new URLSearchParams(window.location.search);
|
|
84
87
|
if (urlParams.toString()) {
|
|
@@ -446,7 +449,6 @@ export default class CodeSamplesGrid extends LightningElement {
|
|
|
446
449
|
track(document, "custEv_filterApplied", {
|
|
447
450
|
click_text: filter,
|
|
448
451
|
click_url: filter,
|
|
449
|
-
element_title: "dx-button",
|
|
450
452
|
element_type: "filter applied",
|
|
451
453
|
content_category: "filter"
|
|
452
454
|
});
|
|
@@ -111,11 +111,19 @@ export default class DeSignupForm extends LightningElement {
|
|
|
111
111
|
submitForm(formData)
|
|
112
112
|
.then(() => {
|
|
113
113
|
trackGtm(event.target!, "custEv_signUp", {
|
|
114
|
-
authentication_method: "
|
|
114
|
+
authentication_method: "email",
|
|
115
115
|
authentication_type: "dev edition",
|
|
116
|
-
user_id: this.username,
|
|
117
116
|
new_registration: true
|
|
118
117
|
});
|
|
118
|
+
trackGtm(event.target!, "custEv_formCompletion", {
|
|
119
|
+
converting_page: "SFDC:us:signup:success",
|
|
120
|
+
converting_page_url:
|
|
121
|
+
"https://developer.salesforce.com/signup/success",
|
|
122
|
+
form_country: formData.user.country,
|
|
123
|
+
form_name: "Dev Edition Signup",
|
|
124
|
+
form_primary_product_interest: "Developer Edition",
|
|
125
|
+
offer_type: "free trial"
|
|
126
|
+
});
|
|
119
127
|
window.location.href = "/signup/success";
|
|
120
128
|
})
|
|
121
129
|
.catch((error) => {
|
|
@@ -157,8 +165,6 @@ export default class DeSignupForm extends LightningElement {
|
|
|
157
165
|
value: element.value
|
|
158
166
|
}));
|
|
159
167
|
|
|
160
|
-
console.log(fields);
|
|
161
|
-
|
|
162
168
|
const checkboxes = this.getCheckboxesResult();
|
|
163
169
|
|
|
164
170
|
if (fields.some((field) => !field.valid) || !checkboxes.valid) {
|
|
@@ -69,7 +69,7 @@ export default abstract class DocsGrid extends LightningElement {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
window.addEventListener("popstate", this.handleURLStateChange);
|
|
72
|
-
window.addEventListener("beforeunload",
|
|
72
|
+
window.addEventListener("beforeunload", this.sendGtmOnFilterAbandon);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
disconnectedCallback(): void {
|
|
@@ -297,9 +297,10 @@ export default abstract class DocsGrid extends LightningElement {
|
|
|
297
297
|
this.productFiltersList = json.available_services;
|
|
298
298
|
|
|
299
299
|
if (!this.selectedProductFilters.length) {
|
|
300
|
-
this.selectedProductFilters =
|
|
301
|
-
(
|
|
302
|
-
|
|
300
|
+
this.selectedProductFilters =
|
|
301
|
+
this.productFiltersList.map(
|
|
302
|
+
(filter) => filter.value
|
|
303
|
+
);
|
|
303
304
|
}
|
|
304
305
|
}
|
|
305
306
|
|
|
@@ -562,7 +563,6 @@ export default abstract class DocsGrid extends LightningElement {
|
|
|
562
563
|
track(document, "custEv_filterApplied", {
|
|
563
564
|
click_text: filter,
|
|
564
565
|
click_url: e?.currentTarget?.href,
|
|
565
|
-
element_title: filter,
|
|
566
566
|
element_type: "filter applied",
|
|
567
567
|
content_category: "filter"
|
|
568
568
|
});
|
|
@@ -149,15 +149,13 @@ export default class Form extends LightningElement {
|
|
|
149
149
|
|
|
150
150
|
// GTM event
|
|
151
151
|
track(submitButtonEl, "custEv_formCompletion", {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
elementType: "button",
|
|
160
|
-
ctaClick: true
|
|
152
|
+
converting_page: "SFDC:us:newsletter:success",
|
|
153
|
+
converting_page_url:
|
|
154
|
+
"https://developer.salesforce.com/newsletter/success",
|
|
155
|
+
form_country: formData?.Country,
|
|
156
|
+
form_name: "Newsletter Signup",
|
|
157
|
+
form_primary_product_interest: "Newsletter",
|
|
158
|
+
offer_type: "Newsletter"
|
|
161
159
|
});
|
|
162
160
|
track(submitButtonEl, "custEv_linkClick", {
|
|
163
161
|
click_text: "Subscribe Now",
|
|
@@ -166,6 +164,9 @@ export default class Form extends LightningElement {
|
|
|
166
164
|
element_type: "button",
|
|
167
165
|
content_category: "cta"
|
|
168
166
|
});
|
|
167
|
+
track(submitButtonEl, "custEv_subscribe", {
|
|
168
|
+
subscription_type: "newsletter"
|
|
169
|
+
});
|
|
169
170
|
window.location.assign("/newsletter/success");
|
|
170
171
|
} catch (error) {
|
|
171
172
|
if (submitButtonEl) {
|
|
@@ -118,7 +118,9 @@ export default class TbidLoginMenu extends LightningElement {
|
|
|
118
118
|
track(target || document, eventName, {
|
|
119
119
|
click_text: target?.textContent?.trim() || "",
|
|
120
120
|
click_url: target?.href || "",
|
|
121
|
-
element_title: target
|
|
121
|
+
element_title: target
|
|
122
|
+
?.closest(".login-container")
|
|
123
|
+
?.querySelector(".heading")?.textContent,
|
|
122
124
|
element_type: "link",
|
|
123
125
|
content_category: "tbid"
|
|
124
126
|
});
|