@salesforcedevs/dw-components 1.3.196-canary.10 → 1.3.197-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 +1 -1
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.css +2 -3
- package/src/modules/dw/contentArchive/contentArchive.css +3 -3
- package/src/modules/dw/docsGrid/docsGrid.css +0 -1
- package/src/modules/dw/eventsList/eventsList.css +4 -4
- package/src/modules/dw/j2sCardSequence/j2sCardSequence.html +1 -0
- package/src/modules/dw/j2sCardSequence/j2sCardSequence.ts +6 -12
- package/src/modules/dw/j2sCardSequenceStep/j2sCardSequenceStep.css +2 -2
- package/src/modules/dw/j2sCardSequenceStep/j2sCardSequenceStep.ts +8 -7
- package/src/modules/dw/j2sForm/j2sForm.ts +4 -2
- package/src/modules/dw/j2sForm/mockProps.ts +16 -8
- package/src/modules/dw/newsletterForm/newsletterForm.css +2 -2
- package/src/modules/dw/podcastSubscription/podcastSubscription.css +3 -4
- package/src/modules/dw/slackCta/slackCta.css +1 -2
package/package.json
CHANGED
|
@@ -83,7 +83,6 @@ dx-section {
|
|
|
83
83
|
|
|
84
84
|
.pagination-container {
|
|
85
85
|
max-width: fit-content;
|
|
86
|
-
max-width: -moz-fit-content;
|
|
87
86
|
margin: 50px auto;
|
|
88
87
|
}
|
|
89
88
|
|
|
@@ -158,13 +157,13 @@ dx-section {
|
|
|
158
157
|
}
|
|
159
158
|
|
|
160
159
|
@media screen and (min-width: 1025px) {
|
|
161
|
-
.item-container:not(:nth-child(1)
|
|
160
|
+
.item-container:not(:nth-child(1), :nth-child(2), :nth-child(3)) {
|
|
162
161
|
margin-top: 70px;
|
|
163
162
|
}
|
|
164
163
|
}
|
|
165
164
|
|
|
166
165
|
@media screen and (max-width: 1024px) and (min-width: 768px) {
|
|
167
|
-
.item-container:not(:nth-child(1)
|
|
166
|
+
.item-container:not(:nth-child(1), :nth-child(2)) {
|
|
168
167
|
margin-top: 51px;
|
|
169
168
|
}
|
|
170
169
|
}
|
|
@@ -182,13 +182,13 @@ dx-filter-menu {
|
|
|
182
182
|
|
|
183
183
|
.chip-title {
|
|
184
184
|
font-weight: bold;
|
|
185
|
-
color: rgb(24
|
|
185
|
+
color: rgb(24 24 24);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
.chip-item {
|
|
189
|
-
border: 2px solid rgb(92
|
|
189
|
+
border: 2px solid rgb(92 92 92);
|
|
190
190
|
border-radius: 4px;
|
|
191
|
-
color: rgb(92
|
|
191
|
+
color: rgb(92 92 92);
|
|
192
192
|
font-weight: 600;
|
|
193
193
|
padding: 2px 4px;
|
|
194
194
|
}
|
|
@@ -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(https://a.sfdcstatic.com/developer-website/images/events-cloud1.svg);
|
|
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(https://a.sfdcstatic.com/developer-website/images/events-cloud2.svg);
|
|
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(https://a.sfdcstatic.com/developer-website/images/events-gradient-elipse.svg);
|
|
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(https://a.sfdcstatic.com/developer-website/images/events-cloud3.svg);
|
|
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;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
communicate-step-changes="true"
|
|
5
5
|
force-initially-visible={forceInitiallyVisible}
|
|
6
6
|
initial-step-index={initialStepIndex}
|
|
7
|
+
lwc:ref="stepSequence"
|
|
7
8
|
onstepsequencechange={handleStepSequenceChange}
|
|
8
9
|
optimize-position-after-animation="true"
|
|
9
10
|
session-storage-id={sessionStorageId}
|
|
@@ -227,11 +227,7 @@ export default class J2sCardSequence extends LightningElement {
|
|
|
227
227
|
|
|
228
228
|
renderedCallback() {
|
|
229
229
|
if (!this.isLoading) {
|
|
230
|
-
(
|
|
231
|
-
this.template.querySelector(
|
|
232
|
-
"dx-step-sequence"
|
|
233
|
-
) as unknown as StepSequence
|
|
234
|
-
)?.remeasureSteps();
|
|
230
|
+
(this.refs.stepSequence as StepSequence)?.remeasureSteps();
|
|
235
231
|
}
|
|
236
232
|
|
|
237
233
|
if (
|
|
@@ -384,11 +380,7 @@ export default class J2sCardSequence extends LightningElement {
|
|
|
384
380
|
if (andStoreIndex) {
|
|
385
381
|
this.initialStepIndex = stepIndex; // update sessionStorage value
|
|
386
382
|
}
|
|
387
|
-
(
|
|
388
|
-
this.template.querySelector(
|
|
389
|
-
"dx-step-sequence"
|
|
390
|
-
) as unknown as StepSequence
|
|
391
|
-
)?.jumpToStep(stepIndex);
|
|
383
|
+
(this.refs.stepSequence as StepSequence)?.jumpToStep(stepIndex);
|
|
392
384
|
}
|
|
393
385
|
|
|
394
386
|
private async getCountryList() {
|
|
@@ -448,7 +440,7 @@ export default class J2sCardSequence extends LightningElement {
|
|
|
448
440
|
|
|
449
441
|
private async getDrmEmailOverride(
|
|
450
442
|
tbid: string
|
|
451
|
-
): Promise<string> {
|
|
443
|
+
): Promise<string | undefined> {
|
|
452
444
|
let resolvedEmail = "";
|
|
453
445
|
|
|
454
446
|
if (!tbid) {
|
|
@@ -464,7 +456,9 @@ export default class J2sCardSequence extends LightningElement {
|
|
|
464
456
|
}
|
|
465
457
|
}
|
|
466
458
|
} catch (ex) {
|
|
467
|
-
|
|
459
|
+
console.warn(
|
|
460
|
+
`Could not fetch email address from DRM, defaulting to TBID info. (Exception: ${ex})`
|
|
461
|
+
);
|
|
468
462
|
}
|
|
469
463
|
|
|
470
464
|
return resolvedEmail;
|
|
@@ -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;
|
|
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;
|
|
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
|
-
|
|
21
|
-
)?.notifySubmitFailure(formFailureData);
|
|
19
|
+
((this.template.querySelector(
|
|
20
|
+
"dw-j2s-form"
|
|
21
|
+
) as unknown) as J2sForm)?.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 = this.template.querySelector(
|
|
89
|
+
const j2sFormEl = (this.template.querySelector(
|
|
90
90
|
"dw-j2s-form"
|
|
91
|
-
) as unknown as J2sForm;
|
|
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,8 +109,9 @@ export default class J2sCardSequenceStep extends LightningElement {
|
|
|
109
109
|
|
|
110
110
|
private updateStaticInnerHtml() {
|
|
111
111
|
const { bodyHtml, secondaryActionHtml } = this.stepDatum;
|
|
112
|
-
const bodyMarkupContainer =
|
|
113
|
-
|
|
112
|
+
const bodyMarkupContainer = this.template.querySelector(
|
|
113
|
+
"span.body-markup"
|
|
114
|
+
);
|
|
114
115
|
const secondaryActionMarkupContainer = this.template.querySelector(
|
|
115
116
|
"span.secondary-action-markup"
|
|
116
117
|
);
|
|
@@ -253,8 +253,10 @@ 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
|
-
|
|
256
|
+
const {
|
|
257
|
+
name: targetName,
|
|
258
|
+
required: isRequiredField
|
|
259
|
+
} = target as HTMLInputElement;
|
|
258
260
|
const value =
|
|
259
261
|
typeof detail === "string"
|
|
260
262
|
? detail
|
|
@@ -3049,21 +3049,28 @@ 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:
|
|
3052
|
+
rest:
|
|
3053
|
+
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/",
|
|
3053
3054
|
sobjects:
|
|
3054
3055
|
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/sobjects/",
|
|
3055
|
-
search:
|
|
3056
|
-
|
|
3057
|
-
|
|
3056
|
+
search:
|
|
3057
|
+
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/search/",
|
|
3058
|
+
query:
|
|
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/",
|
|
3058
3062
|
tooling_soap:
|
|
3059
3063
|
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/Soap/T/42.0/herherwe0823",
|
|
3060
3064
|
tooling_rest:
|
|
3061
3065
|
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/tooling/",
|
|
3062
3066
|
profile:
|
|
3063
3067
|
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/oooooo",
|
|
3064
|
-
feeds:
|
|
3065
|
-
|
|
3066
|
-
|
|
3068
|
+
feeds:
|
|
3069
|
+
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/chatter/feeds",
|
|
3070
|
+
groups:
|
|
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",
|
|
3067
3074
|
feed_items:
|
|
3068
3075
|
"https://trailblazer-identity--Dev1.cs192.my.salesforce.com/services/data/v42.0/chatter/feed-elements",
|
|
3069
3076
|
feed_elements:
|
|
@@ -3079,7 +3086,8 @@ export const formMetadata = {
|
|
|
3079
3086
|
'I agree to the Journey to Salesforce Program Terms, subject to the <a href="http://www.google.com">Salesforce Program Agreement</a>.',
|
|
3080
3087
|
notAvailableAlertInfo: {
|
|
3081
3088
|
title: "Not Available",
|
|
3082
|
-
body:
|
|
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.'
|
|
3083
3091
|
},
|
|
3084
3092
|
participatingCountryCodes: ["US", "CA", "IN"]
|
|
3085
3093
|
};
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
h4 {
|
|
13
13
|
font-size: 20px;
|
|
14
|
-
margin: 0 0 28px
|
|
14
|
+
margin: 0 0 28px;
|
|
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;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
@media screen and (max-width: 360px) {
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
background-repeat: no-repeat;
|
|
6
6
|
background-position: center;
|
|
7
7
|
display: flex;
|
|
8
|
-
flex-
|
|
9
|
-
flex-wrap: wrap;
|
|
8
|
+
flex-flow: column wrap;
|
|
10
9
|
align-items: center;
|
|
11
10
|
justify-content: center;
|
|
12
11
|
text-align: center;
|
|
@@ -24,7 +23,7 @@
|
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
.badges {
|
|
27
|
-
margin: 8px auto 6px
|
|
26
|
+
margin: 8px auto 6px;
|
|
28
27
|
text-align: center;
|
|
29
28
|
}
|
|
30
29
|
|
|
@@ -59,7 +58,7 @@
|
|
|
59
58
|
|
|
60
59
|
.badges a {
|
|
61
60
|
display: inline-block;
|
|
62
|
-
margin: 22px 13px 8px
|
|
61
|
+
margin: 22px 13px 8px;
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
.badges img {
|