@salesforcedevs/dx-components 1.3.118 → 1.3.119

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/dx-components",
3
- "version": "1.3.118",
3
+ "version": "1.3.119",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -40,5 +40,5 @@
40
40
  "eventsourcemock": "^2.0.0",
41
41
  "luxon": "^3.1.0"
42
42
  },
43
- "gitHead": "b566167e7babdd2cc02f289eee115ffaedc4078e"
43
+ "gitHead": "a04d7ab5bb8a1686d1d0784dedb688b7f16b5635"
44
44
  }
@@ -7,15 +7,8 @@
7
7
  <div class="graphic graphic-trees" alt=""></div>
8
8
  <div class="graphic graphic-mountains" alt=""></div>
9
9
  <div class="graphic graphic-mountains-mobile" alt=""></div>
10
- <span class="subheading">Get Developer Updates</span>
11
- <dx-input
12
- aria-label={inputAriaLabel}
13
- autocomplete="email"
14
- placeholder={inputPlaceholder}
15
- submit-label={inputSubmitLabel}
16
- onsubmit={onSubmitEmail}
17
- type="email"
18
- ></dx-input>
10
+ <span class="subheading">Sign up for developer updates</span>
11
+ <dx-button href="/newsletter">SIGN UP</dx-button>
19
12
  <div class="graphic graphic-trees-small" alt=""></div>
20
13
  </div>
21
14
  <div
@@ -25,34 +18,13 @@
25
18
  <div class="graphic graphic-large" alt=""></div>
26
19
  <div class="subscription">
27
20
  <h2 class="dx-text-display-4">
28
- Get the latest
21
+ Get timely developer updates
29
22
  <br />
30
- developer updates.
23
+ delivered to your inbox.
31
24
  </h2>
32
- <p class="dx-text-body-3">
33
- Click "Subscribe" below to be directed to the Salesforce
34
- developer communication sign up page.
35
- </p>
36
- <p class="dx-text-body-3">
37
- Salesforce values your privacy. To learn more, visit
38
- our&nbsp;
39
- <dx-button
40
- href={privacyHref}
41
- variant="inline-inherit"
42
- font="sans"
43
- >
44
- Privacy Statement
45
- </dx-button>
46
- .
47
- </p>
48
- <dx-input
49
- aria-label={inputAriaLabel}
50
- autocomplete="email"
51
- placeholder={inputPlaceholder}
52
- submit-label={inputSubmitLabel}
53
- onsubmit={onSubmitEmail}
54
- type="email"
55
- ></dx-input>
25
+ <dx-button href="/newsletter" size="large">
26
+ Sign up now
27
+ </dx-button>
56
28
  </div>
57
29
  </div>
58
30
  <div
@@ -6,17 +6,8 @@ import {
6
6
  defaultGeneralLinks,
7
7
  termsLinks,
8
8
  socialLinks,
9
- privacyHref,
10
9
  intellectualHref
11
10
  } from "./links";
12
- import { track } from "dxUtils/analytics";
13
-
14
- const PATH = "/newsletter";
15
- const LOCAL_STORAGE_KEY = "subscriberEmail";
16
- const createNewsletterSignupHref = (email: string): string => {
17
- window.localStorage.setItem(LOCAL_STORAGE_KEY, email);
18
- return PATH;
19
- };
20
11
 
21
12
  export default class Footer extends LightningElement {
22
13
  @api locale: string | null = null;
@@ -41,11 +32,7 @@ export default class Footer extends LightningElement {
41
32
  private _generalLinks = defaultGeneralLinks;
42
33
  private _locales?: OptionWithLink[] | null = null;
43
34
  private _variant: FooterVariant = "small-signup";
44
- private inputAriaLabel = "Email sign up for developer updates newsletter";
45
- private inputPlaceholder = "Email";
46
- private inputSubmitLabel = "Subscribe";
47
35
  private intellectualHref = intellectualHref;
48
- private privacyHref = privacyHref;
49
36
  private socialLinks = socialLinks;
50
37
  private termsLinks = termsLinks;
51
38
 
@@ -97,22 +84,6 @@ export default class Footer extends LightningElement {
97
84
  return cx(`signup-variant-${this.variant}`);
98
85
  }
99
86
 
100
- private onSubmitEmail = async (e: CustomEvent) => {
101
- const href = createNewsletterSignupHref(e.detail);
102
-
103
- track(e.currentTarget, "custEv_ctaButtonClick", {
104
- click_text: this.inputSubmitLabel,
105
- click_url: PATH,
106
- element_type: "button",
107
- element_title: this.showSmallSignup
108
- ? "Get Developer Updates"
109
- : "get the latest developer updates.",
110
- content_category: "cta"
111
- });
112
-
113
- window.location.assign(href);
114
- };
115
-
116
87
  private onLocaleChange(e: CustomEvent) {
117
88
  this.dispatchEvent(
118
89
  new CustomEvent("localechange", { detail: e.detail })