@salesforcedevs/docs-components 0.3.11 → 0.3.14-banner-alpha1
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/lwc.config.json +12 -3
- package/package.json +17 -7
- package/src/modules/README.md +41 -0
- package/src/modules/doc/amfReference/amfReference.css +5 -0
- package/src/modules/doc/amfReference/amfReference.html +47 -0
- package/src/modules/doc/amfReference/amfReference.ts +1361 -0
- package/src/modules/doc/amfReference/constants.ts +76 -0
- package/src/modules/doc/amfReference/types.ts +133 -0
- package/src/modules/doc/amfReference/utils.ts +669 -0
- package/src/modules/doc/amfTopic/amfTopic.css +1 -0
- package/src/modules/doc/amfTopic/amfTopic.html +3 -0
- package/src/modules/doc/amfTopic/amfTopic.ts +94 -0
- package/src/modules/doc/amfTopic/types.ts +54 -0
- package/src/modules/doc/amfTopic/utils.ts +130 -0
- package/src/modules/doc/breadcrumbItem/breadcrumbItem.css +51 -0
- package/src/modules/doc/breadcrumbItem/breadcrumbItem.html +5 -0
- package/src/modules/doc/breadcrumbItem/breadcrumbItem.ts +64 -0
- package/src/modules/doc/breadcrumbs/breadcrumbs.css +27 -0
- package/src/modules/doc/breadcrumbs/breadcrumbs.html +60 -0
- package/src/modules/doc/breadcrumbs/breadcrumbs.ts +187 -0
- package/src/modules/doc/content/content.css +58 -102
- package/src/modules/doc/content/content.ts +261 -174
- package/src/modules/doc/contentCallout/contentCallout.css +7 -24
- package/src/modules/doc/contentCallout/contentCallout.html +4 -2
- package/src/modules/doc/contentCallout/contentCallout.ts +8 -2
- package/src/modules/doc/contentLayout/contentLayout.css +98 -0
- package/src/modules/doc/contentLayout/contentLayout.html +51 -0
- package/src/modules/doc/contentLayout/contentLayout.ts +322 -0
- package/src/modules/doc/header/header.css +103 -0
- package/src/modules/doc/header/header.html +160 -0
- package/src/modules/doc/header/header.ts +146 -0
- package/src/modules/doc/heading/heading.css +54 -0
- package/src/modules/doc/heading/heading.html +14 -0
- package/src/modules/doc/heading/heading.ts +65 -0
- package/src/modules/doc/headingAnchor/headingAnchor.css +33 -0
- package/src/modules/doc/headingAnchor/headingAnchor.html +19 -0
- package/src/modules/doc/headingAnchor/headingAnchor.ts +43 -0
- package/src/modules/doc/headingContent/headingContent.css +53 -0
- package/src/modules/doc/headingContent/headingContent.html +13 -0
- package/src/modules/doc/headingContent/headingContent.ts +30 -0
- package/src/modules/doc/phase/phase.css +55 -0
- package/src/modules/doc/phase/phase.html +28 -0
- package/src/modules/doc/phase/phase.ts +57 -0
- package/src/modules/doc/sprigSurvey/sprigSurvey.html +20 -0
- package/src/modules/doc/sprigSurvey/sprigSurvey.scoped.css +12 -0
- package/src/modules/doc/sprigSurvey/sprigSurvey.ts +16 -0
- package/src/modules/doc/toc/toc.html +3 -1
- package/src/modules/doc/toolbar/toolbar.ts +6 -6
- package/src/modules/doc/xmlContent/types.ts +114 -0
- package/src/modules/doc/xmlContent/utils.ts +161 -0
- package/src/modules/doc/xmlContent/xmlContent.css +32 -0
- package/src/modules/doc/xmlContent/xmlContent.html +40 -0
- package/src/modules/doc/xmlContent/xmlContent.ts +677 -0
- package/src/modules/docBaseElements/lightningElementWithState/lightningElementWithState.ts +93 -0
- package/src/modules/docHelpers/amfStyle/amfStyle.css +355 -0
- package/src/modules/docHelpers/phaseContentLayout/phaseContentLayout.css +39 -0
- package/src/modules/docHelpers/status/status.css +22 -0
- package/src/modules/docUtils/SearchSyncer/SearchSyncer.ts +85 -0
- package/LICENSE +0 -12
- package/src/modules/doc/container/__benchmarks__/container.benchmark.js +0 -43
- package/src/modules/doc/container/__mocks__/mockAvailableLanguages.js +0 -8
- package/src/modules/doc/container/__mocks__/mockAvailableVersions.js +0 -122
- package/src/modules/doc/container/__mocks__/mockContentFetchResponse.json +0 -5
- package/src/modules/doc/container/__mocks__/mockDocContent.js +0 -29
- package/src/modules/doc/container/__mocks__/mockNavigationFetchResponse.json +0 -4061
- package/src/modules/doc/container/__mocks__/mockPageReference.js +0 -8
- package/src/modules/doc/container/__mocks__/mockPdfUrl.js +0 -1
- package/src/modules/doc/container/__mocks__/mockSelectedLanguage.js +0 -8
- package/src/modules/doc/container/__mocks__/mockSelectedVersion.js +0 -8
- package/src/modules/doc/container/__mocks__/mockToc.js +0 -146
- package/src/modules/doc/container/__tests__/container.test.ts +0 -117
- package/src/modules/doc/container/container.css +0 -37
- package/src/modules/doc/container/container.html +0 -28
- package/src/modules/doc/container/container.stories.ts +0 -44
- package/src/modules/doc/container/container.ts +0 -367
- package/src/modules/doc/content/__tests__/content.test.ts +0 -99
- package/src/modules/doc/content/__tests__/mockDocContent.ts +0 -258
- package/src/modules/doc/content/__tests__/mockPageReference.ts +0 -8
- package/src/modules/doc/content/content.stories.ts +0 -82
- package/src/modules/doc/contentCallout/__tests__/contentCallout.test.ts +0 -80
- package/src/modules/doc/contentCallout/__tests__/mockProps.ts +0 -14
- package/src/modules/doc/contentCallout/contentCallout.stories.ts +0 -29
- package/src/modules/doc/contentMedia/__tests__/contentMedia.test.ts +0 -97
- package/src/modules/doc/contentMedia/contentMedia.stories.ts +0 -113
- package/src/modules/doc/landing/__tests__/landing.test.ts +0 -60
- package/src/modules/doc/landing/__tests__/mockFetch.json +0 -370
- package/src/modules/doc/landing/landing.css +0 -63
- package/src/modules/doc/landing/landing.html +0 -122
- package/src/modules/doc/landing/landing.stories.ts +0 -21
- package/src/modules/doc/landing/landing.ts +0 -222
- package/src/modules/doc/nav/__tests__/mockAvailableLanguages.ts +0 -8
- package/src/modules/doc/nav/__tests__/mockAvailableVersions.ts +0 -122
- package/src/modules/doc/nav/__tests__/mockPageReference.ts +0 -8
- package/src/modules/doc/nav/__tests__/mockPdfUrl.ts +0 -1
- package/src/modules/doc/nav/__tests__/mockSelectedLanguage.ts +0 -8
- package/src/modules/doc/nav/__tests__/mockSelectedVersion.ts +0 -8
- package/src/modules/doc/nav/__tests__/mockToc.ts +0 -146
- package/src/modules/doc/nav/__tests__/nav.test.ts +0 -58
- package/src/modules/doc/toc/__tests__/mockPageReference.ts +0 -8
- package/src/modules/doc/toc/__tests__/mockToc.ts +0 -146
- package/src/modules/doc/toc/__tests__/toc.test.ts +0 -29
- package/src/modules/doc/toolbar/__tests__/mockAvailableLanguages.ts +0 -8
- package/src/modules/doc/toolbar/__tests__/mockAvailableVersions.ts +0 -122
- package/src/modules/doc/toolbar/__tests__/mockPdfUrl.ts +0 -1
- package/src/modules/doc/toolbar/__tests__/mockSelectedLanguage.ts +0 -8
- package/src/modules/doc/toolbar/__tests__/mockSelectedVersion.ts +0 -8
- package/src/modules/doc/toolbar/__tests__/toolbar.test.ts +0 -44
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* stylelint-disable selector-class-pattern */
|
|
2
2
|
|
|
3
|
-
/* This css file contains rules for the content html and it's specific selectors,
|
|
4
|
-
* pattern validation cannot be applied
|
|
3
|
+
/* This css file contains rules for the content html and it's specific selectors,
|
|
4
|
+
* pattern validation cannot be applied
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
@import "
|
|
8
|
-
@import "
|
|
9
|
-
@import "
|
|
10
|
-
@import "
|
|
7
|
+
@import "dxHelpers/text";
|
|
8
|
+
@import "dxHelpers/reset";
|
|
9
|
+
@import "dxHelpers/card";
|
|
10
|
+
@import "dxHelpers/table";
|
|
11
11
|
|
|
12
12
|
.doc-content {
|
|
13
13
|
width: 100%;
|
|
@@ -48,6 +48,10 @@
|
|
|
48
48
|
|
|
49
49
|
img.content-image {
|
|
50
50
|
height: auto;
|
|
51
|
+
display: unset;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.image-block .content-image {
|
|
51
55
|
margin-top: var(--dx-g-spacing-lg);
|
|
52
56
|
margin-bottom: var(--dx-g-spacing-sm);
|
|
53
57
|
display: block;
|
|
@@ -62,31 +66,47 @@ td > img.content-image:first-child:last-child[alt="No"] {
|
|
|
62
66
|
|
|
63
67
|
h1 {
|
|
64
68
|
font-family: var(--dx-g-font-display);
|
|
65
|
-
font-size:
|
|
69
|
+
font-size: var(--dx-g-text-4xl);
|
|
66
70
|
|
|
67
71
|
/* not registered */
|
|
68
72
|
color: var(--dx-g-blue-vibrant-20);
|
|
69
73
|
letter-spacing: -0.4px;
|
|
70
|
-
line-height:
|
|
74
|
+
line-height: 56px;
|
|
71
75
|
}
|
|
72
76
|
|
|
73
77
|
h2 {
|
|
74
78
|
font-family: var(--dx-g-font-display);
|
|
75
|
-
font-size: var(--dx-g-text-
|
|
79
|
+
font-size: var(--dx-g-text-3xl);
|
|
76
80
|
color: var(--dx-g-blue-vibrant-20);
|
|
77
81
|
letter-spacing: -0.1px;
|
|
78
|
-
line-height: var(--dx-g-spacing-
|
|
82
|
+
line-height: var(--dx-g-spacing-3xl);
|
|
79
83
|
}
|
|
80
84
|
|
|
81
85
|
h3 {
|
|
82
86
|
font-family: var(--dx-g-font-display);
|
|
83
|
-
font-size:
|
|
87
|
+
font-size: 32px;
|
|
84
88
|
color: var(--dx-g-blue-vibrant-20);
|
|
85
89
|
letter-spacing: -0.1px;
|
|
86
|
-
line-height: var(--dx-g-spacing-
|
|
90
|
+
line-height: var(--dx-g-spacing-2xl);
|
|
87
91
|
}
|
|
88
92
|
|
|
89
93
|
h4 {
|
|
94
|
+
font-family: var(--dx-g-font-display);
|
|
95
|
+
font-size: var(--dx-g-text-xl);
|
|
96
|
+
color: var(--dx-g-blue-vibrant-20);
|
|
97
|
+
letter-spacing: 0;
|
|
98
|
+
line-height: var(--dx-g-spacing-xl);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
h5 {
|
|
102
|
+
font-family: var(--dx-g-font-display);
|
|
103
|
+
font-size: var(--dx-g-text-lg);
|
|
104
|
+
color: var(--dx-g-blue-vibrant-20);
|
|
105
|
+
letter-spacing: 0;
|
|
106
|
+
line-height: 28px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
h6 {
|
|
90
110
|
font-family: var(--dx-g-font-display);
|
|
91
111
|
font-size: var(--dx-g-text-base);
|
|
92
112
|
color: var(--dx-g-blue-vibrant-20);
|
|
@@ -112,6 +132,12 @@ p,
|
|
|
112
132
|
margin-bottom: var(--dx-g-spacing-md);
|
|
113
133
|
}
|
|
114
134
|
|
|
135
|
+
dd > p,
|
|
136
|
+
dd > .p {
|
|
137
|
+
margin-top: 0;
|
|
138
|
+
margin-bottom: 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
115
141
|
.li {
|
|
116
142
|
font-family: var(--dx-g-font-sans);
|
|
117
143
|
font-size: var(--dx-g-text-base);
|
|
@@ -171,7 +197,8 @@ a,
|
|
|
171
197
|
margin-right: var(--dx-g-spacing-lg);
|
|
172
198
|
}
|
|
173
199
|
|
|
174
|
-
.codeph
|
|
200
|
+
.codeph,
|
|
201
|
+
.filepath {
|
|
175
202
|
font-family: var(--dx-g-font-mono);
|
|
176
203
|
font-size: var(--dx-g-text-sm);
|
|
177
204
|
line-height: var(--dx-g-text-lg);
|
|
@@ -234,10 +261,13 @@ dd {
|
|
|
234
261
|
color: var(--dx-g-gray-10);
|
|
235
262
|
letter-spacing: 0;
|
|
236
263
|
line-height: var(--dx-g-spacing-lg);
|
|
264
|
+
margin-left: var(--dx-g-spacing-smd);
|
|
265
|
+
margin-bottom: var(--dx-g-spacing-md);
|
|
237
266
|
}
|
|
238
267
|
|
|
239
268
|
li {
|
|
240
|
-
margin
|
|
269
|
+
margin: var(--dx-g-spacing-sm) 0 var(--dx-g-spacing-sm)
|
|
270
|
+
var(--dx-g-spacing-lg);
|
|
241
271
|
}
|
|
242
272
|
|
|
243
273
|
li > li {
|
|
@@ -270,97 +300,10 @@ a:hover,
|
|
|
270
300
|
@media (min-width: 769px) {
|
|
271
301
|
/* Desktop */
|
|
272
302
|
img.content-image {
|
|
273
|
-
max-width: min(
|
|
303
|
+
max-width: min(60vw, 650px);
|
|
274
304
|
}
|
|
275
305
|
}
|
|
276
306
|
|
|
277
|
-
table {
|
|
278
|
-
--table-border-radius: 4px;
|
|
279
|
-
|
|
280
|
-
border-collapse: separate;
|
|
281
|
-
border-spacing: 0;
|
|
282
|
-
margin-top: var(--dx-g-spacing-lg);
|
|
283
|
-
margin-bottom: var(--dx-g-spacing-sm);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
th,
|
|
287
|
-
td {
|
|
288
|
-
padding: var(--dx-g-spacing-md);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
th {
|
|
292
|
-
background-color: var(--dx-g-indigo-vibrant-95);
|
|
293
|
-
font-weight: inherit;
|
|
294
|
-
border-bottom: 3px solid var(--dx-g-indigo-vibrant-30);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
doc-content-callout table {
|
|
298
|
-
background-color: white;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
doc-content-callout table th {
|
|
302
|
-
background-color: var(--dx-g-indigo-vibrant-90);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
th:first-of-type {
|
|
306
|
-
font-weight: var(--dx-g-font-bold);
|
|
307
|
-
border-top-left-radius: var(--table-border-radius);
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
th:last-of-type {
|
|
311
|
-
border-top-right-radius: var(--table-border-radius);
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
td {
|
|
315
|
-
vertical-align: top;
|
|
316
|
-
border-bottom: 1px solid var(--dx-g-gray-90);
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
td:first-of-type {
|
|
320
|
-
border-left: 1px solid var(--dx-g-gray-90);
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
td:last-of-type {
|
|
324
|
-
border-right: 1px solid var(--dx-g-gray-90);
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
th:first-of-type,
|
|
328
|
-
td:first-of-type {
|
|
329
|
-
min-width: 160px;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
tr:first-of-type td {
|
|
333
|
-
border-top: 1px solid var(--dx-g-gray-90);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
thead + tbody > tr:first-of-type > td {
|
|
337
|
-
border-top: none;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
tr:first-of-type td:first-of-type {
|
|
341
|
-
border-top-left-radius: var(--table-border-radius);
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
tr:first-of-type td:last-of-type {
|
|
345
|
-
border-top-right-radius: var(--table-border-radius);
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
tr:last-of-type td:first-of-type {
|
|
349
|
-
border-bottom-left-radius: var(--table-border-radius);
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
tr:last-of-type td:last-of-type {
|
|
353
|
-
border-bottom-right-radius: var(--table-border-radius);
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
thead + tbody > tr:first-of-type > td:first-of-type {
|
|
357
|
-
border-radius: 0;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
thead + tbody > tr:first-of-type > td:last-of-type {
|
|
361
|
-
border-radius: 0;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
307
|
ul,
|
|
365
308
|
ol {
|
|
366
309
|
margin-left: var(--dx-g-spacing-lg);
|
|
@@ -441,3 +384,16 @@ figcaption {
|
|
|
441
384
|
font-size: var(--dx-g-text-xs);
|
|
442
385
|
margin-top: var(--dx-g-spacing-sm);
|
|
443
386
|
}
|
|
387
|
+
|
|
388
|
+
code,
|
|
389
|
+
kbd,
|
|
390
|
+
pre,
|
|
391
|
+
samp,
|
|
392
|
+
.parmname {
|
|
393
|
+
font-family: Menlo, monospace;
|
|
394
|
+
font-size: 1em;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
mark {
|
|
398
|
+
background-color: var(--dx-g-yellow-vibrant-90);
|
|
399
|
+
}
|