@salesforcedevs/dw-components 1.2.17-canary.2 → 1.3.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/LICENSE ADDED
@@ -0,0 +1,12 @@
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dw-components",
3
- "version": "1.2.17-canary.2",
3
+ "version": "1.3.2",
4
4
  "description": "Lightning web components for https://developer.salesforce.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -21,5 +21,6 @@
21
21
  "@types/lodash.clonedeep": "^4.5.7",
22
22
  "@types/lodash.orderby": "^4.6.7",
23
23
  "@types/lodash.uniqby": "^4.7.7"
24
- }
24
+ },
25
+ "gitHead": "6bce82b465b57812c5de5e80abbdb291e3809be1"
25
26
  }
@@ -222,15 +222,16 @@ export default class DeSignupForm extends LightningElement {
222
222
  ? checkboxes.values.opt_in
223
223
  : "implied";
224
224
 
225
+ const InfoEmail__c =
226
+ this.country.showMarketingField && checkboxes.values.opt_in === ""
227
+ ? "False"
228
+ : "True";
229
+
225
230
  const formData: SignupForm = {
226
231
  user: userData as UserData,
227
232
  eula: this.showLegalCheckbox ? checkboxes.values.eula : ACCEPTED,
228
233
  default_driver: DEFAULT_DRIVER,
229
- InfoEmail__c: this.showLegalCheckbox
230
- ? checkboxes.values.eula === ACCEPTED
231
- ? "True"
232
- : "False"
233
- : "True"
234
+ InfoEmail__c
234
235
  };
235
236
 
236
237
  return formData;
@@ -56,14 +56,7 @@ export default abstract class EventsList extends LightningElement {
56
56
  }
57
57
 
58
58
  set events(value) {
59
- const tempDate = new Date();
60
- tempDate.setMonth(tempDate.getMonth() - 2);
61
- const twoMonthsAgo = tempDate.toISOString();
62
- // Show past two months of events and all upcoming events
63
- const events = toJson(value).filter(
64
- (event) => event.startDate > twoMonthsAgo
65
- );
66
- this._events = events;
59
+ this._events = toJson(value);
67
60
  this.createFilters();
68
61
  }
69
62
 
@@ -46,7 +46,7 @@
46
46
  color: var(--dx-g-blue-vibrant-20);
47
47
  display: block;
48
48
  font-family: var(--dx-g-font-sans);
49
- font-size: 12px;
49
+ font-size: var(--dx-g-text-xs);
50
50
  line-height: 18px;
51
51
  padding: 8px 0;
52
52
  }
@@ -70,7 +70,7 @@ ul {
70
70
  color: var(--dx-g-gray-30);
71
71
  display: inline-block;
72
72
  font-family: var(--dx-g-font-sans);
73
- font-size: 14px;
73
+ font-size: var(--dx-g-text-sm);
74
74
  line-height: 20px;
75
75
  padding: 20px 0 12px;
76
76
  }
@@ -83,7 +83,7 @@ ul {
83
83
  .login-link-label {
84
84
  display: inline-block;
85
85
  font-family: var(--dx-g-font-display);
86
- font-size: 16px;
86
+ font-size: var(--dx-g-text-base);
87
87
  line-height: 24px;
88
88
  }
89
89
 
@@ -102,7 +102,7 @@ ul {
102
102
 
103
103
  .login-link-blurb {
104
104
  font-family: var(--dx-g-font-sans);
105
- font-size: 14px;
105
+ font-size: var(--dx-g-text-sm);
106
106
  line-height: 20px;
107
107
  padding-top: 4px;
108
108
  }
@@ -110,7 +110,7 @@ ul {
110
110
  .heading-links {
111
111
  color: var(--dx-g-gray-90);
112
112
  font-family: var(--dx-g-font-sans);
113
- font-size: 14px;
113
+ font-size: var(--dx-g-text-sm);
114
114
  line-height: 20px;
115
115
  }
116
116