@salesforcedevs/dw-components 1.3.191-alpha.0 → 1.3.195
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 +12 -0
- package/package.json +3 -2
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.css +3 -2
- package/src/modules/dw/contentArchive/contentArchive.css +3 -3
- package/src/modules/dw/deSignupForm/deSignupForm.ts +3 -2
- package/src/modules/dw/deSignupForm/submitForm.ts +1 -0
- package/src/modules/dw/docsGrid/docsGrid.css +1 -0
- package/src/modules/dw/eventsList/eventsList.css +4 -4
- package/src/modules/dw/j2sCardSequence/j2sCardSequence.ts +14 -10
- package/src/modules/dw/j2sCardSequenceStep/j2sCardSequenceStep.css +2 -2
- package/src/modules/dw/j2sCardSequenceStep/j2sCardSequenceStep.ts +7 -8
- package/src/modules/dw/j2sForm/j2sForm.ts +2 -4
- package/src/modules/dw/j2sForm/mockProps.ts +8 -16
- package/src/modules/dw/newsletterForm/newsletterForm.css +2 -2
- package/src/modules/dw/podcastSubscription/podcastSubscription.css +4 -3
- package/src/modules/dw/slackCta/slackCta.css +2 -1
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.
|
|
3
|
+
"version": "1.3.195",
|
|
4
4
|
"description": "Lightning web components for https://developer.salesforce.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -23,5 +23,6 @@
|
|
|
23
23
|
"@types/lodash.uniqby": "^4.7.7",
|
|
24
24
|
"@types/setimmediate": "^1.0.2",
|
|
25
25
|
"setimmediate": "^1.0.5"
|
|
26
|
-
}
|
|
26
|
+
},
|
|
27
|
+
"gitHead": "340bec89716f643664e18b660ed169bb8cb25ee3"
|
|
27
28
|
}
|
|
@@ -83,6 +83,7 @@ dx-section {
|
|
|
83
83
|
|
|
84
84
|
.pagination-container {
|
|
85
85
|
max-width: fit-content;
|
|
86
|
+
max-width: -moz-fit-content;
|
|
86
87
|
margin: 50px auto;
|
|
87
88
|
}
|
|
88
89
|
|
|
@@ -157,13 +158,13 @@ dx-section {
|
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
@media screen and (min-width: 1025px) {
|
|
160
|
-
.item-container:not(:nth-child(1)
|
|
161
|
+
.item-container:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)) {
|
|
161
162
|
margin-top: 70px;
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
165
|
|
|
165
166
|
@media screen and (max-width: 1024px) and (min-width: 768px) {
|
|
166
|
-
.item-container:not(:nth-child(1)
|
|
167
|
+
.item-container:not(:nth-child(1)):not(:nth-child(2)) {
|
|
167
168
|
margin-top: 51px;
|
|
168
169
|
}
|
|
169
170
|
}
|
|
@@ -182,13 +182,13 @@ dx-filter-menu {
|
|
|
182
182
|
|
|
183
183
|
.chip-title {
|
|
184
184
|
font-weight: bold;
|
|
185
|
-
color: rgb(24 24 24);
|
|
185
|
+
color: rgb(24, 24, 24);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
.chip-item {
|
|
189
|
-
border: 2px solid rgb(92 92 92);
|
|
189
|
+
border: 2px solid rgb(92, 92, 92);
|
|
190
190
|
border-radius: 4px;
|
|
191
|
-
color: rgb(92 92 92);
|
|
191
|
+
color: rgb(92, 92, 92);
|
|
192
192
|
font-weight: 600;
|
|
193
193
|
padding: 2px 4px;
|
|
194
194
|
}
|
|
@@ -131,7 +131,7 @@ export default class DeSignupForm extends LightningElement {
|
|
|
131
131
|
offer_id: `form-builder|dev-edition-signup|${DEFAULT_DRIVER}AAA`,
|
|
132
132
|
offer_type: "free trial",
|
|
133
133
|
name_capture_campaign_id: `${DEFAULT_DRIVER}AAA`,
|
|
134
|
-
form_join_id_unique:
|
|
134
|
+
form_join_id_unique: formData.form_join_id_unique
|
|
135
135
|
});
|
|
136
136
|
window.location.href = "/signup/success";
|
|
137
137
|
})
|
|
@@ -193,7 +193,8 @@ export default class DeSignupForm extends LightningElement {
|
|
|
193
193
|
const formData: SignupForm = {
|
|
194
194
|
user: userData as UserData,
|
|
195
195
|
default_driver: DEFAULT_DRIVER,
|
|
196
|
-
info_email: InfoEmail
|
|
196
|
+
info_email: InfoEmail,
|
|
197
|
+
form_join_id_unique: this.createUUID()
|
|
197
198
|
};
|
|
198
199
|
|
|
199
200
|
return formData;
|
|
@@ -23,7 +23,7 @@ dx-section.events-action-bar::part(container) {
|
|
|
23
23
|
|
|
24
24
|
dx-section.upcoming-events::part(container)::before {
|
|
25
25
|
content: "";
|
|
26
|
-
background-image: url(
|
|
26
|
+
background-image: url(https://a.sfdcstatic.com/developer-website/images/events-cloud1.svg);
|
|
27
27
|
width: 146px;
|
|
28
28
|
height: 106px;
|
|
29
29
|
position: absolute;
|
|
@@ -34,7 +34,7 @@ dx-section.upcoming-events::part(container)::before {
|
|
|
34
34
|
|
|
35
35
|
dx-section.upcoming-events::part(container)::after {
|
|
36
36
|
content: "";
|
|
37
|
-
background-image: url(
|
|
37
|
+
background-image: url(https://a.sfdcstatic.com/developer-website/images/events-cloud2.svg);
|
|
38
38
|
width: 152px;
|
|
39
39
|
height: 111px;
|
|
40
40
|
position: absolute;
|
|
@@ -45,7 +45,7 @@ dx-section.upcoming-events::part(container)::after {
|
|
|
45
45
|
|
|
46
46
|
dx-section.past-events::part(container)::before {
|
|
47
47
|
content: "";
|
|
48
|
-
background-image: url(
|
|
48
|
+
background-image: url(https://a.sfdcstatic.com/developer-website/images/events-gradient-elipse.svg);
|
|
49
49
|
width: 2991px;
|
|
50
50
|
height: 839px;
|
|
51
51
|
position: absolute;
|
|
@@ -56,7 +56,7 @@ dx-section.past-events::part(container)::before {
|
|
|
56
56
|
|
|
57
57
|
dx-section:not(:nth-child(2)).past-events::part(container)::after {
|
|
58
58
|
content: "";
|
|
59
|
-
background-image: url(
|
|
59
|
+
background-image: url(https://a.sfdcstatic.com/developer-website/images/events-cloud3.svg);
|
|
60
60
|
width: 655px;
|
|
61
61
|
height: 270px;
|
|
62
62
|
position: absolute;
|
|
@@ -141,8 +141,8 @@ export default class J2sCardSequence extends LightningElement {
|
|
|
141
141
|
Company__c: this.tbidUserInfo.custom_attributes?.CompanyName,
|
|
142
142
|
MailingCountry: this.tbidUserInfo.custom_attributes?.Country,
|
|
143
143
|
MailingState: this.tbidUserInfo.address?.region,
|
|
144
|
-
RelationshipToSalesforce:
|
|
145
|
-
?.RelationshipToSalesforce
|
|
144
|
+
RelationshipToSalesforce:
|
|
145
|
+
this.tbidUserInfo.custom_attributes?.RelationshipToSalesforce
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
// Return above object but only with keys that have a truthy value, and with any URI-encoded values decoded
|
|
@@ -219,18 +219,20 @@ export default class J2sCardSequence extends LightningElement {
|
|
|
219
219
|
|
|
220
220
|
renderedCallback() {
|
|
221
221
|
if (!this.isLoading) {
|
|
222
|
-
(
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
(
|
|
223
|
+
this.template.querySelector(
|
|
224
|
+
"dx-step-sequence"
|
|
225
|
+
) as unknown as StepSequence
|
|
226
|
+
)?.remeasureSteps();
|
|
225
227
|
}
|
|
226
228
|
|
|
227
229
|
if (
|
|
228
230
|
this.formSubmissionFailureState &&
|
|
229
231
|
this.stepsData[this.currentSequenceStep].formData
|
|
230
232
|
) {
|
|
231
|
-
const j2sCardStep =
|
|
233
|
+
const j2sCardStep = this.template.querySelectorAll(
|
|
232
234
|
"dw-j2s-card-sequence-step"
|
|
233
|
-
) as unknown
|
|
235
|
+
) as unknown as J2sCardSequenceStep[];
|
|
234
236
|
j2sCardStep[this.currentSequenceStep]?.notifyFormSubmitFailure(
|
|
235
237
|
this.formSubmissionFailureState
|
|
236
238
|
);
|
|
@@ -374,9 +376,11 @@ export default class J2sCardSequence extends LightningElement {
|
|
|
374
376
|
if (andStoreIndex) {
|
|
375
377
|
this.initialStepIndex = stepIndex; // update sessionStorage value
|
|
376
378
|
}
|
|
377
|
-
(
|
|
378
|
-
|
|
379
|
-
|
|
379
|
+
(
|
|
380
|
+
this.template.querySelector(
|
|
381
|
+
"dx-step-sequence"
|
|
382
|
+
) as unknown as StepSequence
|
|
383
|
+
)?.jumpToStep(stepIndex);
|
|
380
384
|
}
|
|
381
385
|
|
|
382
386
|
private async getCountryList() {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
dx-card-step.final-card-with-action::part(footer-container) {
|
|
7
7
|
background-color: var(--dx-g-indigo-vibrant-95);
|
|
8
8
|
border-radius: 8px;
|
|
9
|
-
margin: 0 30px 30px;
|
|
9
|
+
margin: 0 30px 30px 30px;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
[slot="secondary-action-section"] {
|
|
@@ -71,6 +71,6 @@ dx-card-step.final-card-with-action::part(footer-container) {
|
|
|
71
71
|
@media screen and (max-width: 320px) {
|
|
72
72
|
/* Special styling for the final step's actions if they are shown */
|
|
73
73
|
dx-card-step.final-card-with-action::part(footer-container) {
|
|
74
|
-
margin: 0 20px 30px;
|
|
74
|
+
margin: 0 20px 30px 20px;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -16,9 +16,9 @@ export default class J2sCardSequenceStep extends LightningElement {
|
|
|
16
16
|
|
|
17
17
|
@api
|
|
18
18
|
public notifyFormSubmitFailure(formFailureData: Partial<DrmFormData>) {
|
|
19
|
-
(
|
|
20
|
-
"dw-j2s-form"
|
|
21
|
-
)
|
|
19
|
+
(
|
|
20
|
+
this.template.querySelector("dw-j2s-form") as unknown as J2sForm
|
|
21
|
+
)?.notifySubmitFailure(formFailureData);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
private isJ2sFormInvalid = false;
|
|
@@ -86,9 +86,9 @@ export default class J2sCardSequenceStep extends LightningElement {
|
|
|
86
86
|
if (this.stepIndex === 0) {
|
|
87
87
|
this.dispatchEvent(new CustomEvent("getstarted"));
|
|
88
88
|
} else if (this.stepIndex === 1) {
|
|
89
|
-
const j2sFormEl =
|
|
89
|
+
const j2sFormEl = this.template.querySelector(
|
|
90
90
|
"dw-j2s-form"
|
|
91
|
-
) as unknown
|
|
91
|
+
) as unknown as J2sForm;
|
|
92
92
|
const formData = j2sFormEl.formDataForDrm;
|
|
93
93
|
|
|
94
94
|
// For some countries, explicit approvals will be present; for others, it is implicitly assumed
|
|
@@ -109,9 +109,8 @@ export default class J2sCardSequenceStep extends LightningElement {
|
|
|
109
109
|
|
|
110
110
|
private updateStaticInnerHtml() {
|
|
111
111
|
const { bodyHtml, secondaryActionHtml } = this.stepDatum;
|
|
112
|
-
const bodyMarkupContainer =
|
|
113
|
-
"span.body-markup"
|
|
114
|
-
);
|
|
112
|
+
const bodyMarkupContainer =
|
|
113
|
+
this.template.querySelector("span.body-markup");
|
|
115
114
|
const secondaryActionMarkupContainer = this.template.querySelector(
|
|
116
115
|
"span.secondary-action-markup"
|
|
117
116
|
);
|
|
@@ -253,10 +253,8 @@ export default class J2sForm extends LightningElementWithState<J2sFormState> {
|
|
|
253
253
|
handleFormFieldChange = (evt: CustomEvent) => {
|
|
254
254
|
// Event target information must be read prior to debouncing; the target is gone after the debounce.
|
|
255
255
|
const { target = {}, detail } = evt;
|
|
256
|
-
const {
|
|
257
|
-
|
|
258
|
-
required: isRequiredField
|
|
259
|
-
} = target as HTMLInputElement;
|
|
256
|
+
const { name: targetName, required: isRequiredField } =
|
|
257
|
+
target as HTMLInputElement;
|
|
260
258
|
const value =
|
|
261
259
|
typeof detail === "string"
|
|
262
260
|
? detail
|
|
@@ -3049,28 +3049,21 @@ const tbidUserInfo = {
|
|
|
3049
3049
|
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/Soap/m/42.0/herherwe0823",
|
|
3050
3050
|
partner:
|
|
3051
3051
|
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/Soap/u/42.0/herherwe0823",
|
|
3052
|
-
rest:
|
|
3053
|
-
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/",
|
|
3052
|
+
rest: "https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/",
|
|
3054
3053
|
sobjects:
|
|
3055
3054
|
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/sobjects/",
|
|
3056
|
-
search:
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/query/",
|
|
3060
|
-
recent:
|
|
3061
|
-
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/recent/",
|
|
3055
|
+
search: "https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/search/",
|
|
3056
|
+
query: "https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/query/",
|
|
3057
|
+
recent: "https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/recent/",
|
|
3062
3058
|
tooling_soap:
|
|
3063
3059
|
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/Soap/T/42.0/herherwe0823",
|
|
3064
3060
|
tooling_rest:
|
|
3065
3061
|
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/tooling/",
|
|
3066
3062
|
profile:
|
|
3067
3063
|
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/oooooo",
|
|
3068
|
-
feeds:
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/chatter/groups",
|
|
3072
|
-
users:
|
|
3073
|
-
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/chatter/users",
|
|
3064
|
+
feeds: "https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/chatter/feeds",
|
|
3065
|
+
groups: "https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/chatter/groups",
|
|
3066
|
+
users: "https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/chatter/users",
|
|
3074
3067
|
feed_items:
|
|
3075
3068
|
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/chatter/feed-elements",
|
|
3076
3069
|
feed_elements:
|
|
@@ -3086,8 +3079,7 @@ export const formMetadata = {
|
|
|
3086
3079
|
'I agree to the Journey to Salesforce Program Terms, subject to the <a href="http://www.google.com">Salesforce Program Agreement</a>.',
|
|
3087
3080
|
notAvailableAlertInfo: {
|
|
3088
3081
|
title: "Not Available",
|
|
3089
|
-
body:
|
|
3090
|
-
'The Journey to Salesforce program is not currently available in your country. See the <a href="https://www.google.com/">program FAQs</a> for a list of participating countries.'
|
|
3082
|
+
body: 'The Journey to Salesforce program is not currently available in your country. See the <a href="https://www.google.com/">program FAQs</a> for a list of participating countries.'
|
|
3091
3083
|
},
|
|
3092
3084
|
participatingCountryCodes: ["US", "CA", "IN"]
|
|
3093
3085
|
};
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
h4 {
|
|
13
13
|
font-size: 20px;
|
|
14
|
-
margin: 0 0 28px;
|
|
14
|
+
margin: 0 0 28px 0;
|
|
15
15
|
text-align: center;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -55,7 +55,7 @@ dx-checkbox:last-of-type {
|
|
|
55
55
|
.marketing-text,
|
|
56
56
|
.legal-text {
|
|
57
57
|
font-size: 14px;
|
|
58
|
-
margin: 0 0 16px;
|
|
58
|
+
margin: 0 0 16px 0;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
@media screen and (max-width: 360px) {
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
background-repeat: no-repeat;
|
|
6
6
|
background-position: center;
|
|
7
7
|
display: flex;
|
|
8
|
-
flex-
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
flex-wrap: wrap;
|
|
9
10
|
align-items: center;
|
|
10
11
|
justify-content: center;
|
|
11
12
|
text-align: center;
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
.badges {
|
|
26
|
-
margin: 8px auto 6px;
|
|
27
|
+
margin: 8px auto 6px auto;
|
|
27
28
|
text-align: center;
|
|
28
29
|
}
|
|
29
30
|
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
|
|
59
60
|
.badges a {
|
|
60
61
|
display: inline-block;
|
|
61
|
-
margin: 22px 13px 8px;
|
|
62
|
+
margin: 22px 13px 8px 13px;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
.badges img {
|