@salesforcedevs/dw-components 1.3.396 → 1.3.397-canary.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dw-components",
3
- "version": "1.3.396",
3
+ "version": "1.3.397-canary.0",
4
4
  "description": "Lightning web components for https://developer.salesforce.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -25,6 +25,5 @@
25
25
  "@types/lodash.uniqby": "4.7.9",
26
26
  "@types/setimmediate": "1.0.4",
27
27
  "setimmediate": "1.0.5"
28
- },
29
- "gitHead": "ef208488b6cf979514f09d3b4a643bee356d984b"
28
+ }
30
29
  }
@@ -119,11 +119,14 @@ export default class DeSignupForm extends LightningElement {
119
119
  );
120
120
  }
121
121
 
122
- trackFormCompletion(target: EventTarget, formData: SignupForm, convertingPage = "success") {
122
+ trackFormCompletion(
123
+ target: EventTarget,
124
+ formData: SignupForm,
125
+ convertingPage = "success"
126
+ ) {
123
127
  trackGtm(target!, "custEv_formCompletion", {
124
128
  converting_page: `SFDC:us:signup:${convertingPage}`,
125
- converting_page_url:
126
- `https://developer.salesforce.com/signup/${convertingPage}`,
129
+ converting_page_url: `https://developer.salesforce.com/developer-legacy/signup/${convertingPage}`,
127
130
  form_country: formData.user.country,
128
131
  form_name: "Dev Edition Signup",
129
132
  form_primary_product_interest: "Developer Edition",
@@ -172,15 +175,20 @@ export default class DeSignupForm extends LightningElement {
172
175
  new_registration: true
173
176
  });
174
177
  this.trackFormCompletion(event.target!, formData, "success");
175
- window.location.href = "/signup/success";
178
+ window.location.href = "/developer-legacy/signup/success";
176
179
  })
177
180
  .catch((error) => {
178
181
  if (error.message === ErrorCode.GENERIC && didSubmitTimeout) {
179
- this.trackFormCompletion(event.target!, formData, "account-verification");
182
+ this.trackFormCompletion(
183
+ event.target!,
184
+ formData,
185
+ "account-verification"
186
+ );
180
187
  // If the timeout time has passed at the point of error, and the error code is simply "GENERIC",
181
188
  // we do not know whether the org will ultimately be created (and we have no current way of confirming),
182
189
  // so we navigate the user to an interim page that tells them to watch their email.
183
- window.location.href = "/signup/account-verification";
190
+ window.location.href =
191
+ "/developer-legacy/signup/account-verification";
184
192
  } else {
185
193
  this.setSubmitButtonDisabled(false);
186
194
  if (error.message === ErrorCode.DUPLICATE) {
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.