@salesforcedevs/dw-components 1.3.397-canary.6 → 1.5.0

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.3.397-canary.6",
3
+ "version": "1.5.0",
4
4
  "description": "Lightning web components for https://developer.salesforce.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -25,5 +25,6 @@
25
25
  "@types/lodash.uniqby": "4.7.9",
26
26
  "@types/setimmediate": "1.0.4",
27
27
  "setimmediate": "1.0.5"
28
- }
28
+ },
29
+ "gitHead": "1de8f6760c69a5b41cf6f22f0a0940914a3c15e0"
29
30
  }
@@ -134,7 +134,7 @@ export default class DeSignupForm extends LightningElement {
134
134
  ) {
135
135
  trackGtm(target!, "custEv_formCompletion", {
136
136
  converting_page: `SFDC:us:signup:${convertingPage}`,
137
- converting_page_url: `https://developer.salesforce.com/developer-legacy/signup/${convertingPage}`,
137
+ converting_page_url: `https://developer.salesforce.com/signup/${convertingPage}`,
138
138
  form_country: formData.user.country,
139
139
  form_name: "Dev Edition Signup",
140
140
  form_primary_product_interest: "Developer Edition",
@@ -183,7 +183,7 @@ export default class DeSignupForm extends LightningElement {
183
183
  new_registration: true
184
184
  });
185
185
  this.trackFormCompletion(event.target!, formData, "success");
186
- window.location.href = "/developer-legacy/signup/success";
186
+ window.location.href = "/signup/success";
187
187
  })
188
188
  .catch((error) => {
189
189
  if (error.message === ErrorCode.GENERIC && didSubmitTimeout) {
@@ -195,8 +195,7 @@ export default class DeSignupForm extends LightningElement {
195
195
  // If the timeout time has passed at the point of error, and the error code is simply "GENERIC",
196
196
  // we do not know whether the org will ultimately be created (and we have no current way of confirming),
197
197
  // so we navigate the user to an interim page that tells them to watch their email.
198
- window.location.href =
199
- "/developer-legacy/signup/account-verification";
198
+ window.location.href = "/signup/account-verification";
200
199
  } else {
201
200
  this.setSubmitButtonDisabled(false);
202
201
  this.recaptchaComponent?.reset();
@@ -2,7 +2,7 @@
2
2
  <div class="container">
3
3
  <slot onslotchange={onSlotChange}></slot>
4
4
  <div
5
- if:true={errorMessage}
5
+ lwc:if={errorMessage}
6
6
  aria-live="assertive"
7
7
  class="error-message-box dx-text-form-error-message"
8
8
  >
@@ -13,7 +13,7 @@ export default class Recaptcha extends LightningElement {
13
13
  private recaptchaApi?: RecaptchaApi;
14
14
  private recaptchaToken = "";
15
15
 
16
- @api missingErrorMessage = "Complete the captcha";
16
+ @api missingErrorMessage = "Please complete the captcha";
17
17
  @api recaptchaSiteKey = "";
18
18
 
19
19
  @api // read only