@salesforcedevs/dw-components 1.3.62 → 1.3.72-canary.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.
- package/package.json +2 -3
- package/src/modules/dw/blogsGrid/blogsGrid.ts +9 -4
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.ts +3 -6
- package/src/modules/dw/contentArchive/contentArchive.ts +3 -2
- package/src/modules/dw/deSignupForm/deSignupForm.ts +4 -4
- package/src/modules/dw/deSignupForm/submitForm.ts +4 -2
- package/src/modules/dw/docsGrid/docsGrid.ts +23 -20
- package/src/modules/dw/newsletterForm/newsletterForm.ts +1 -1
- package/src/modules/dw/podcastSubscription/podcastSubscription.ts +12 -6
- package/src/modules/dw/rcgTable/altData.ts +12 -6
- package/src/modules/dw/tbidLoginMenu/tbidLoginMenu.ts +15 -11
- package/src/modules/dwBaseElements/postsGrid/postsGrid.ts +4 -11
- package/LICENSE +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dw-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.72-canary.2",
|
|
4
4
|
"description": "Lightning web components for https://developer.salesforce.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -23,6 +23,5 @@
|
|
|
23
23
|
"@types/lodash.uniqby": "^4.7.7",
|
|
24
24
|
"@types/setimmediate": "^1.0.2",
|
|
25
25
|
"setimmediate": "^1.0.5"
|
|
26
|
-
}
|
|
27
|
-
"gitHead": "ae140d6107e6c61bc6bab73dafa283bd6c52b184"
|
|
26
|
+
}
|
|
28
27
|
}
|
|
@@ -7,9 +7,8 @@ const BLOG_SUBSCRIBE_HREF = "https://developer.salesforce.com/blogs/feed";
|
|
|
7
7
|
|
|
8
8
|
const ANALYTICS_INFO = {
|
|
9
9
|
click_text: "Subscribe to RSS",
|
|
10
|
-
element_title: "
|
|
10
|
+
element_title: "Subscribe to RSS",
|
|
11
11
|
click_url: BLOG_SUBSCRIBE_HREF,
|
|
12
|
-
element_type: "link",
|
|
13
12
|
content_category: "cta"
|
|
14
13
|
};
|
|
15
14
|
|
|
@@ -21,7 +20,13 @@ export default class BlogsGrid extends PostsGrid {
|
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
rssOnClick(event: Event): void {
|
|
24
|
-
track(event.target!, "custEv_ctaButtonClick",
|
|
25
|
-
|
|
23
|
+
track(event.target!, "custEv_ctaButtonClick", {
|
|
24
|
+
...ANALYTICS_INFO,
|
|
25
|
+
element_type: "button"
|
|
26
|
+
});
|
|
27
|
+
track(event.target!, "custEv_linkClick", {
|
|
28
|
+
...ANALYTICS_INFO,
|
|
29
|
+
element_type: "link"
|
|
30
|
+
});
|
|
26
31
|
}
|
|
27
32
|
}
|
|
@@ -76,12 +76,9 @@ 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.
|
|
82
|
-
this.filtersDefaultValue.selectedTypeFilter;
|
|
83
|
-
this.selectedProductFilter =
|
|
84
|
-
this.filtersDefaultValue.selectedProductFilter;
|
|
79
|
+
this.selectedSourceFilter = this.filtersDefaultValue.selectedSourceFilter;
|
|
80
|
+
this.selectedTypeFilter = this.filtersDefaultValue.selectedTypeFilter;
|
|
81
|
+
this.selectedProductFilter = this.filtersDefaultValue.selectedProductFilter;
|
|
85
82
|
}
|
|
86
83
|
const urlParams = new URLSearchParams(window.location.search);
|
|
87
84
|
if (urlParams.toString()) {
|
|
@@ -258,8 +258,9 @@ export default class ContentArchive extends LightningElement {
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
private async updateCheckedStatus() {
|
|
261
|
-
const filterMenuElements =
|
|
262
|
-
|
|
261
|
+
const filterMenuElements = this.template.querySelectorAll(
|
|
262
|
+
"dx-filter-menu"
|
|
263
|
+
);
|
|
263
264
|
|
|
264
265
|
filterMenuElements.forEach((filterMenuElement: any) =>
|
|
265
266
|
filterMenuElement.updateCheckedStatus(this.selectedFilterMenuData)
|
|
@@ -111,10 +111,10 @@ export default class DeSignupForm extends LightningElement {
|
|
|
111
111
|
submitForm(formData)
|
|
112
112
|
.then(() => {
|
|
113
113
|
trackGtm(event.target!, "custEv_signUp", {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
authentication_method: "dev edition sign up form",
|
|
115
|
+
authentication_type: "dev edition",
|
|
116
|
+
user_id: this.username,
|
|
117
|
+
new_registration: true
|
|
118
118
|
});
|
|
119
119
|
window.location.href = "/signup/success";
|
|
120
120
|
})
|
|
@@ -43,8 +43,10 @@ const fetchOrgStatus = async (id: string): Promise<OrgStatus> => {
|
|
|
43
43
|
throw new Error("Something went wrong");
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
const {
|
|
47
|
-
|
|
46
|
+
const {
|
|
47
|
+
Status: status,
|
|
48
|
+
ErrorCode: errorCode
|
|
49
|
+
}: OrgStatusResponse = await response.json();
|
|
48
50
|
|
|
49
51
|
if (status === "Error") {
|
|
50
52
|
throw new Error(
|
|
@@ -69,6 +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
73
|
}
|
|
73
74
|
|
|
74
75
|
disconnectedCallback(): void {
|
|
@@ -78,18 +79,7 @@ export default abstract class DocsGrid extends LightningElement {
|
|
|
78
79
|
"change",
|
|
79
80
|
this.handleMobileSmallView
|
|
80
81
|
);
|
|
81
|
-
|
|
82
|
-
if (!this.filteredItemsSelected) {
|
|
83
|
-
this.selectedProductFilters?.forEach((filter) => {
|
|
84
|
-
track(document, "custEv_filterAbandoned", {
|
|
85
|
-
click_text: filter,
|
|
86
|
-
click_url: filter,
|
|
87
|
-
element_title: "CodeSamplesGrid",
|
|
88
|
-
element_type: "filter abandoned",
|
|
89
|
-
content_category: "filter"
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
}
|
|
82
|
+
window.removeEventListener("beforeunload", this.sendGtmOnFilterAbandon);
|
|
93
83
|
}
|
|
94
84
|
|
|
95
85
|
@api apiDomain = "https://developer.salesforce.com";
|
|
@@ -307,10 +297,9 @@ export default abstract class DocsGrid extends LightningElement {
|
|
|
307
297
|
this.productFiltersList = json.available_services;
|
|
308
298
|
|
|
309
299
|
if (!this.selectedProductFilters.length) {
|
|
310
|
-
this.selectedProductFilters =
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
);
|
|
300
|
+
this.selectedProductFilters = this.productFiltersList.map(
|
|
301
|
+
(filter) => filter.value
|
|
302
|
+
);
|
|
314
303
|
}
|
|
315
304
|
}
|
|
316
305
|
|
|
@@ -417,7 +406,7 @@ export default abstract class DocsGrid extends LightningElement {
|
|
|
417
406
|
this.selectedProductFilters = newList;
|
|
418
407
|
}
|
|
419
408
|
this.calculatePagination();
|
|
420
|
-
this.filteredItemsSelected =
|
|
409
|
+
this.filteredItemsSelected = true;
|
|
421
410
|
}
|
|
422
411
|
|
|
423
412
|
handleLanguageFilterChange(event): void {
|
|
@@ -553,13 +542,27 @@ export default abstract class DocsGrid extends LightningElement {
|
|
|
553
542
|
}
|
|
554
543
|
};
|
|
555
544
|
|
|
556
|
-
|
|
545
|
+
sendGtmOnFilterAbandon = () => {
|
|
546
|
+
if (this.filteredItemsSelected) {
|
|
547
|
+
this.selectedProductFilters?.forEach((filter) => {
|
|
548
|
+
track(document, "custEv_filterAbandoned", {
|
|
549
|
+
click_text: filter,
|
|
550
|
+
click_url: filter,
|
|
551
|
+
element_title: "docs grid",
|
|
552
|
+
element_type: "filter abandoned",
|
|
553
|
+
content_category: "filter"
|
|
554
|
+
});
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
handleReadItClick(e: any) {
|
|
557
560
|
this.filteredItemsSelected = true;
|
|
558
561
|
this.selectedProductFilters?.forEach((filter) => {
|
|
559
562
|
track(document, "custEv_filterApplied", {
|
|
560
563
|
click_text: filter,
|
|
561
|
-
click_url:
|
|
562
|
-
element_title:
|
|
564
|
+
click_url: e?.currentTarget?.href,
|
|
565
|
+
element_title: filter,
|
|
563
566
|
element_type: "filter applied",
|
|
564
567
|
content_category: "filter"
|
|
565
568
|
});
|
|
@@ -161,7 +161,7 @@ export default class Form extends LightningElement {
|
|
|
161
161
|
});
|
|
162
162
|
track(submitButtonEl, "custEv_linkClick", {
|
|
163
163
|
click_text: "Subscribe Now",
|
|
164
|
-
element_title: "
|
|
164
|
+
element_title: "Subscribe Now",
|
|
165
165
|
click_url: "/newsletter/success",
|
|
166
166
|
element_type: "button",
|
|
167
167
|
content_category: "cta"
|
|
@@ -3,12 +3,14 @@ import { LightningElement } from "lwc";
|
|
|
3
3
|
export default class PodcastSubscription extends LightningElement {
|
|
4
4
|
badgeLinks = [
|
|
5
5
|
{
|
|
6
|
-
href:
|
|
6
|
+
href:
|
|
7
|
+
"https://podcasts.apple.com/us/podcast/salesforce-developer-podcast/id1482325260",
|
|
7
8
|
imgAlt: "Listen on Apple Podcasts",
|
|
8
9
|
imgSrc: "/assets/svg/podcasts-subscription-apple.svg"
|
|
9
10
|
},
|
|
10
11
|
{
|
|
11
|
-
href:
|
|
12
|
+
href:
|
|
13
|
+
"https://www.google.com/podcasts?feed=aHR0cHM6Ly9zYWxlc2ZvcmNlZGV2cG9kY2FzdC5saWJzeW4uY29tL3Jzcw%3D%3D",
|
|
12
14
|
imgAlt: "Listen on Google Podcasts",
|
|
13
15
|
imgSrc: "/assets/svg/podcasts-subscription-google.svg"
|
|
14
16
|
},
|
|
@@ -25,19 +27,23 @@ export default class PodcastSubscription extends LightningElement {
|
|
|
25
27
|
text: "Stitcher"
|
|
26
28
|
},
|
|
27
29
|
{
|
|
28
|
-
href:
|
|
30
|
+
href:
|
|
31
|
+
"https://www.amazon.com/Emerald-City-Productions-Salesforce-Developer/dp/B082PPXMLN/",
|
|
29
32
|
text: "Alexa"
|
|
30
33
|
},
|
|
31
34
|
{
|
|
32
|
-
href:
|
|
35
|
+
href:
|
|
36
|
+
"https://www.pandora.com/podcast/salesforce-developer-podcast/PC:34746",
|
|
33
37
|
text: "Pandora"
|
|
34
38
|
},
|
|
35
39
|
{
|
|
36
|
-
href:
|
|
40
|
+
href:
|
|
41
|
+
"https://www.iheart.com/podcast/263-salesforce-developer-podca-56252827",
|
|
37
42
|
text: "iHeartRadio"
|
|
38
43
|
},
|
|
39
44
|
{
|
|
40
|
-
href:
|
|
45
|
+
href:
|
|
46
|
+
"https://tunein.com/podcasts/Technology-Podcasts/Salesforce-Developer-Podcast-p1255006/",
|
|
41
47
|
text: "Tune-in"
|
|
42
48
|
},
|
|
43
49
|
{
|
|
@@ -58,14 +58,16 @@ export default {
|
|
|
58
58
|
type: "Modeler Installer",
|
|
59
59
|
version: "238.00003.0.0",
|
|
60
60
|
description: "RCG Mobility Modeler Installer v238 release",
|
|
61
|
-
link:
|
|
61
|
+
link:
|
|
62
|
+
"/Modeler/238/modeler-build-000003-2022-05-12T07-10/CGCloudModelerSetup.v238.3.0.zip"
|
|
62
63
|
},
|
|
63
64
|
{
|
|
64
65
|
id: "3",
|
|
65
66
|
type: "Modeler Update Package",
|
|
66
67
|
version: "238.00003.0.0",
|
|
67
68
|
description: "RCG Mobility Modeler MUP v238 release",
|
|
68
|
-
link:
|
|
69
|
+
link:
|
|
70
|
+
"/Modeler/238/modeler-build-000003-2022-05-12T07-10/MUP.v238.3.0.zip"
|
|
69
71
|
},
|
|
70
72
|
{
|
|
71
73
|
id: "4",
|
|
@@ -86,14 +88,16 @@ export default {
|
|
|
86
88
|
type: "Modeler Installer",
|
|
87
89
|
version: "236.00019.0.0",
|
|
88
90
|
description: "RCG Mobility Modeler Installer v236 release",
|
|
89
|
-
link:
|
|
91
|
+
link:
|
|
92
|
+
"/Modeler/236/modeler-build-000019-2022-06-01T10-47/CGCloudModelerSetup.v236.19.0.zip"
|
|
90
93
|
},
|
|
91
94
|
{
|
|
92
95
|
id: "7",
|
|
93
96
|
type: "Modeler Update Package",
|
|
94
97
|
version: "236.00019.0.0",
|
|
95
98
|
description: "RCG Mobility Modeler MUP v236 release",
|
|
96
|
-
link:
|
|
99
|
+
link:
|
|
100
|
+
"/Modeler/236/modeler-build-000019-2022-06-01T10-47/MUP.v236.19.0.zip"
|
|
97
101
|
},
|
|
98
102
|
{
|
|
99
103
|
id: "8",
|
|
@@ -115,14 +119,16 @@ export default {
|
|
|
115
119
|
type: "Modeler Installer",
|
|
116
120
|
version: "234.00013.0.0",
|
|
117
121
|
description: "Initial RCG Mobility Modeler Installer v234 release",
|
|
118
|
-
link:
|
|
122
|
+
link:
|
|
123
|
+
"/Modeler/modeler-build-000013-2021-10-27T06-20/CGCloudModelerSetup.v234.13.0.zip"
|
|
119
124
|
},
|
|
120
125
|
{
|
|
121
126
|
id: "11",
|
|
122
127
|
type: "Modeler Update Package",
|
|
123
128
|
version: "234.00013.0.0",
|
|
124
129
|
description: "Initial RCG Mobility Modeler MUP v234 release",
|
|
125
|
-
link:
|
|
130
|
+
link:
|
|
131
|
+
"/Modeler/modeler-build-000013-2021-10-27T06-20/MUP.v234.13.0.zip"
|
|
126
132
|
},
|
|
127
133
|
{
|
|
128
134
|
id: "12",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LightningElement } from "lwc";
|
|
1
|
+
import { api, LightningElement } from "lwc";
|
|
2
2
|
import { track } from "dxUtils/analytics";
|
|
3
3
|
import TbidAvatarButton from "dx/tbidAvatarButton";
|
|
4
4
|
|
|
@@ -28,13 +28,17 @@ const trackableUserInfo = new Set([
|
|
|
28
28
|
// which this component uses.
|
|
29
29
|
export default class TbidLoginMenu extends LightningElement {
|
|
30
30
|
// URLs:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
private profileUrl
|
|
37
|
-
|
|
31
|
+
@api tbidApiBaseUrl = "https://developer.salesforce.com/tbid";
|
|
32
|
+
@api tbidBaseUrl = "https://trailblazer.me";
|
|
33
|
+
private get settingsUrl() {
|
|
34
|
+
return `${this.tbidBaseUrl}/settings`;
|
|
35
|
+
}
|
|
36
|
+
private get profileUrl() {
|
|
37
|
+
return `${this.tbidBaseUrl}/id`;
|
|
38
|
+
}
|
|
39
|
+
private get logoutUrl() {
|
|
40
|
+
return `${this.tbidApiBaseUrl}/logout`;
|
|
41
|
+
}
|
|
38
42
|
private get loginUrl() {
|
|
39
43
|
return `${this.tbidApiBaseUrl}/dologin?startURL=${encodeURIComponent(
|
|
40
44
|
window.location.href
|
|
@@ -112,9 +116,9 @@ export default class TbidLoginMenu extends LightningElement {
|
|
|
112
116
|
eventName: string
|
|
113
117
|
) => {
|
|
114
118
|
track(target || document, eventName, {
|
|
115
|
-
click_text: target
|
|
116
|
-
click_url: target
|
|
117
|
-
element_title: "
|
|
119
|
+
click_text: target?.textContent?.trim() || "",
|
|
120
|
+
click_url: target?.href || "",
|
|
121
|
+
element_title: target?.textContent?.trim() || "",
|
|
118
122
|
element_type: "link",
|
|
119
123
|
content_category: "tbid"
|
|
120
124
|
});
|
|
@@ -3,11 +3,6 @@ import { toJson } from "dxUtils/normalizers";
|
|
|
3
3
|
import { track } from "dxUtils/analytics";
|
|
4
4
|
import { WordpressPost, NormalizedPost } from "typings/custom";
|
|
5
5
|
|
|
6
|
-
const ANALYTICS_INFO = {
|
|
7
|
-
element_type: "link",
|
|
8
|
-
destination_type: "internal",
|
|
9
|
-
cta_click: true
|
|
10
|
-
};
|
|
11
6
|
export abstract class PostsGrid extends LightningElement {
|
|
12
7
|
@api columns = "three";
|
|
13
8
|
@api archives = false;
|
|
@@ -46,19 +41,17 @@ export abstract class PostsGrid extends LightningElement {
|
|
|
46
41
|
this._count += this._loadMoreAmount;
|
|
47
42
|
this._morePostsViewed = true;
|
|
48
43
|
track(e.target, "custEv_ctaLinkClick", {
|
|
49
|
-
...ANALYTICS_INFO,
|
|
50
44
|
click_text: "show more",
|
|
51
|
-
element_title: "
|
|
52
|
-
element_type: "
|
|
45
|
+
element_title: "blogs show more",
|
|
46
|
+
element_type: "link",
|
|
53
47
|
content_category: "cta"
|
|
54
48
|
});
|
|
55
49
|
} else {
|
|
56
50
|
track(e.target, "custEv_ctaLinkClick", {
|
|
57
|
-
...ANALYTICS_INFO,
|
|
58
51
|
click_text: "view archives",
|
|
59
52
|
click_url: "https://developer.salesforce.com/content-archive",
|
|
60
|
-
element_title: "
|
|
61
|
-
element_type: "
|
|
53
|
+
element_title: "blogs view archives",
|
|
54
|
+
element_type: "link",
|
|
62
55
|
content_category: "cta"
|
|
63
56
|
});
|
|
64
57
|
}
|
package/LICENSE
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2020, Salesforce.com, Inc.
|
|
2
|
-
All rights reserved.
|
|
3
|
-
|
|
4
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
5
|
-
|
|
6
|
-
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
7
|
-
|
|
8
|
-
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
9
|
-
|
|
10
|
-
* Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
11
|
-
|
|
12
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|