@salesforcedevs/docs-components 1.3.320-dc1 → 1.3.323

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 CHANGED
@@ -7,7 +7,6 @@
7
7
  "expose": [
8
8
  "doc/amfReference",
9
9
  "doc/breadcrumbs",
10
- "doc/component",
11
10
  "doc/content",
12
11
  "doc/contentCallout",
13
12
  "doc/contentLayout",
@@ -18,7 +17,6 @@
18
17
  "doc/headingAnchor",
19
18
  "doc/overview",
20
19
  "doc/phase",
21
- "doc/styledOrderedList",
22
20
  "doc/versionPicker",
23
21
  "doc/xmlContent",
24
22
  "docUtils/utils"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.3.320-dc1",
3
+ "version": "1.3.323",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -12,7 +12,7 @@
12
12
 
13
13
  <div class="dx-callout-content">
14
14
  <p class="doc-status-title dx-callout-title dx-text-body-3">
15
- {title}
15
+ {header}
16
16
  </p>
17
17
  <span class="dx-callout-body dx-text-body-3">
18
18
  <slot onslotchange={onSlotChange}></slot>
@@ -3,7 +3,7 @@ import cx from "classnames";
3
3
  import { CalloutVariant, LightningSlotElement } from "typings/custom";
4
4
 
5
5
  export default class ContentCallout extends LightningElement {
6
- @api title!: string;
6
+ @api header!: string;
7
7
  @api variant!: CalloutVariant;
8
8
  cardVariant?: string;
9
9
  iconName?: string;
@@ -50,7 +50,7 @@
50
50
  </div>
51
51
  <div lwc:if={showToc} class="right-nav-bar is-sticky">
52
52
  <dx-toc
53
- title={tocTitle}
53
+ header={tocTitle}
54
54
  options={tocOptions}
55
55
  value={tocValue}
56
56
  ></dx-toc>
@@ -343,8 +343,10 @@ export default class ContentLayout extends LightningElement {
343
343
  );
344
344
 
345
345
  for (const headingElement of headingElements as any) {
346
- // Sometimes elements hash is not being set when slot content is wrapped with div
346
+ // Sometimes elements hash and header is not being set when slot content is wrapped with div
347
347
  headingElement.hash = headingElement.attributes.hash?.nodeValue;
348
+ headingElement.header =
349
+ headingElement.attributes.header?.nodeValue;
348
350
  }
349
351
 
350
352
  const tocOptions = [];
@@ -361,7 +363,7 @@ export default class ContentLayout extends LightningElement {
361
363
  const tocItem = {
362
364
  anchor: `#${headingElement.hash}`,
363
365
  id: headingElement.id,
364
- label: headingElement.title
366
+ label: headingElement.header
365
367
  };
366
368
  tocOptions.push(tocItem);
367
369
  this.tocOptionIdsSet.add(headingElement.id);
@@ -1,14 +1,14 @@
1
1
  <template>
2
2
  <h1 class={className} if:true={isAriaLevelOne}>
3
- <doc-heading-content title={title} hash={hash}></doc-heading-content>
3
+ <doc-heading-content header={header} hash={hash}></doc-heading-content>
4
4
  </h1>
5
5
  <h2 class={className} if:true={isAriaLevelTwo}>
6
- <doc-heading-content title={title} hash={hash}></doc-heading-content>
6
+ <doc-heading-content header={header} hash={hash}></doc-heading-content>
7
7
  </h2>
8
8
  <h3 class={className} if:true={isAriaLevelThree}>
9
- <doc-heading-content title={title} hash={hash}></doc-heading-content>
9
+ <doc-heading-content header={header} hash={hash}></doc-heading-content>
10
10
  </h3>
11
11
  <h4 class={className} if:true={isAriaLevelFour}>
12
- <doc-heading-content title={title} hash={hash}></doc-heading-content>
12
+ <doc-heading-content header={header} hash={hash}></doc-heading-content>
13
13
  </h4>
14
14
  </template>
@@ -13,7 +13,7 @@ export const displayLevels = Object.values(ariaDisplayLevels);
13
13
 
14
14
  // @ts-ignore: Really Dark Magic (TM) to do with ariaLevel needing explicit getter/setters
15
15
  export default class Heading extends LightningElement {
16
- @api title: string = "";
16
+ @api header: string = "";
17
17
  @api hash: string | null = null;
18
18
 
19
19
  @api
@@ -6,7 +6,7 @@ export default class HeadingAnchor extends LightningElement {
6
6
  @api iconSize?: IconSize = "override";
7
7
  @api iconSprite?: IconSprite = "utility";
8
8
  @api iconSymbol?: IconSymbol;
9
- @api title: string = "";
9
+ @api header: string = "";
10
10
  @api urlText: string = "";
11
11
 
12
12
  label: string = "Copy link to clipboard";
@@ -22,7 +22,7 @@ export default class HeadingAnchor extends LightningElement {
22
22
  }, 2000);
23
23
 
24
24
  try {
25
- if (this.title && this.urlText) {
25
+ if (this.header && this.urlText) {
26
26
  const [hostUrl] = window.location.href.split("#");
27
27
  const url = `${hostUrl}#${this.urlText}`;
28
28
  await navigator.clipboard.writeText(url);
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <template if:false={hash}>{title}</template>
2
+ <template if:false={hash}>{header}</template>
3
3
  <template if:true={hash}>
4
- <span class="title">{title}&nbsp;</span>
4
+ <span class="title">{header}&nbsp;</span>
5
5
  <dx-tooltip placement="top" label={label}>
6
6
  <span class="button-container">
7
7
  <button onclick={copy} aria-label="copy">
@@ -1,7 +1,7 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
 
3
3
  export default class HeadingContent extends LightningElement {
4
- @api title: string = "";
4
+ @api header: string = "";
5
5
  @api hash: string | null = null;
6
6
 
7
7
  label: string = "Copy link to clipboard";
@@ -18,7 +18,7 @@ export default class HeadingContent extends LightningElement {
18
18
  }, 2000);
19
19
 
20
20
  try {
21
- if (this.title && this.hash) {
21
+ if (this.header && this.hash) {
22
22
  const [hostUrl] = window.location.href.split("#");
23
23
  const url = `${hostUrl}#${this.hash}`;
24
24
  await navigator.clipboard.writeText(url);
@@ -10,7 +10,7 @@
10
10
  <div class="content">
11
11
  <dx-group-text
12
12
  class="description"
13
- title={title}
13
+ header={header}
14
14
  body={description}
15
15
  size="large"
16
16
  title-aria-level="1"
@@ -20,7 +20,7 @@
20
20
  </div>
21
21
  <div>
22
22
  <dx-group-text
23
- title={featuresListTitle}
23
+ header={featuresListTitle}
24
24
  size="medium"
25
25
  class="features"
26
26
  ></dx-group-text>
@@ -3,7 +3,7 @@ import { DocPhaseInfo, FeatureItem, Link } from "typings/custom";
3
3
 
4
4
  export default class Overview extends LightningElement {
5
5
  @api docPhaseInfo!: DocPhaseInfo;
6
- @api title!: string;
6
+ @api header!: string;
7
7
  @api description!: string;
8
8
  @api primaryLink!: Link;
9
9
  @api secondaryLink!: Link;
@@ -1,32 +0,0 @@
1
- @import "dxHelpers/reset";
2
-
3
- h2 {
4
- font-weight: bold;
5
- font-size: 24px;
6
- margin-top: 10px;
7
- margin-bottom: 10px;
8
- }
9
-
10
- .component-image {
11
- padding: 48px 40px;
12
- display: flex;
13
- justify-content: center;
14
- align-items: center;
15
- border: 1px solid var(--foundation-gray-neutral-95, #f3f3f3);
16
- min-height: 140px;
17
- max-height: 480px;
18
- flex: 1;
19
- margin-top: 16px;
20
- margin-bottom: 16px;
21
- }
22
-
23
- .small {
24
- font-size: 12px;
25
- }
26
-
27
- .item {
28
- display: flex;
29
- flex: 1;
30
- flex-direction: column;
31
- justify-content: center;
32
- }
@@ -1,11 +0,0 @@
1
- <template>
2
- <div class="item">
3
- <h2 if:true={title}>{title}</h2>
4
- <p if:true={description}>{description}</p>
5
- <p if:true={doDontLabel}>{doDontLabel}</p>
6
- <div if:true={imageSrc} class="component-image">
7
- <img src={imageSrc} />
8
- </div>
9
- <p if:true={note} class="small">{note}</p>
10
- </div>
11
- </template>
@@ -1,22 +0,0 @@
1
- import { LightningElement, api } from "lwc";
2
-
3
- class Component extends LightningElement {
4
- @api title;
5
- @api description;
6
- @api imageSrc;
7
- @api isDo;
8
- @api note;
9
-
10
- @api
11
- get doDontLabel(): string {
12
- //TODO: store a boolean value and refactor logic
13
- if (this.isDo === "true") {
14
- return "DO";
15
- } else if (this.isDo === "false") {
16
- return "DON'T";
17
- }
18
- return "";
19
- }
20
- }
21
-
22
- export default Component;
@@ -1,33 +0,0 @@
1
- @import "dxHelpers/reset";
2
-
3
- .list {
4
- display: flex;
5
- flex: 1;
6
- flex-direction: column;
7
- justify-content: center;
8
- }
9
-
10
- .list-item {
11
- display: flex;
12
- flex-direction: row;
13
- justify-content: center;
14
- margin-bottom: 2px;
15
- }
16
-
17
- .circle {
18
- background: var(--foundation-blue-blue-40, #0b5cab);
19
- height: 24px;
20
- width: 24px;
21
- border-radius: 50%;
22
- justify-content: center;
23
- align-items: center;
24
- display: flex;
25
- color: white;
26
- font-size: 10px;
27
- }
28
-
29
- .list-item-content {
30
- color: var(--text-default, #181818);
31
- font-size: 16px;
32
- margin-left: 16px;
33
- }
@@ -1,10 +0,0 @@
1
- <template>
2
- <div class="list">
3
- <template for:each={list} for:item="item" for:index="index">
4
- <div class="list-item" key={item}>
5
- <div class="circle">{index}</div>
6
- <p class="list-item-content">{item}</p>
7
- </div>
8
- </template>
9
- </div>
10
- </template>
@@ -1,18 +0,0 @@
1
- import { LightningElement, api } from "lwc";
2
-
3
- class StyledOrderedList extends LightningElement {
4
- private _list: Array<string> = [];
5
-
6
- set list(value: string) {
7
- if (value) {
8
- this._list = JSON.parse(value);
9
- }
10
- }
11
-
12
- @api
13
- get list(): Array<string> {
14
- return this._list;
15
- }
16
- }
17
-
18
- export default StyledOrderedList;