@salesforcedevs/docs-components 1.3.124-old-version-banner → 1.3.124-old-version-banner-2

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/docs-components",
3
- "version": "1.3.124-old-version-banner",
3
+ "version": "1.3.124-old-version-banner-2",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -44,6 +44,7 @@ export default class AmfReference extends LightningElement {
44
44
  @track
45
45
  protected topicModel!: TopicModel;
46
46
 
47
+ /*TODO: Get the info based on logic*/
47
48
  @api oldVersionInfo = {
48
49
  title: "Newer Version Available",
49
50
  body: `This content describes an older version of this product. <a style="font-weight: bold;" href="https://developer.salesforce.com/">
@@ -44,3 +44,9 @@ dx-dropdown > dx-button:hover {
44
44
  margin-left: auto;
45
45
  margin-right: var(--dx-g-spacing-sm);
46
46
  }
47
+
48
+ doc-phase {
49
+ --doc-c-phase-top: calc(
50
+ var(--dx-g-global-header-height) + var(--dx-g-doc-header-height)
51
+ );
52
+ }
@@ -34,6 +34,7 @@ export default class DocXmlContent extends LightningElementWithState<{
34
34
  @api coveoPublicAccessToken!: string;
35
35
  @api coveoSearchHub!: string;
36
36
 
37
+ /*TODO: Get the info based on logic*/
37
38
  @api oldVersionInfo = {
38
39
  title: "Newer Version Available",
39
40
  body: `This content describes an older version of this product. <a style="font-weight: bold;" href="https://developer.salesforce.com/">
@@ -270,9 +271,8 @@ export default class DocXmlContent extends LightningElementWithState<{
270
271
 
271
272
  private get sidebarValue(): string {
272
273
  if (this.pageReference?.contentDocumentId) {
273
- const hashedUri = `${
274
- this.pageReference.contentDocumentId
275
- }${this.normalizeHash(this.pageReference.hash)}`;
274
+ const hashedUri = `${this.pageReference.contentDocumentId
275
+ }${this.normalizeHash(this.pageReference.hash)}`;
276
276
  if (hashedUri in this.tocMap) {
277
277
  return hashedUri;
278
278
  }
@@ -293,14 +293,14 @@ export default class DocXmlContent extends LightningElementWithState<{
293
293
  return this.disableVersion
294
294
  ? this.availableVersions
295
295
  : this.availableVersions.map((version) => ({
296
- ...version,
297
- link: {
298
- href: this.pageReferenceToString({
299
- ...this.pageReference,
300
- docId: version.url
301
- })
302
- }
303
- }));
296
+ ...version,
297
+ link: {
298
+ href: this.pageReferenceToString({
299
+ ...this.pageReference,
300
+ docId: version.url
301
+ })
302
+ }
303
+ }));
304
304
  }
305
305
 
306
306
  private get breadcrumbPixelPerCharacter() {
@@ -410,7 +410,7 @@ export default class DocXmlContent extends LightningElementWithState<{
410
410
  isSamePage(reference: PageReference): boolean {
411
411
  return (
412
412
  this.pageReference.contentDocumentId ===
413
- reference.contentDocumentId &&
413
+ reference.contentDocumentId &&
414
414
  this.pageReference.docId === reference.docId &&
415
415
  this.pageReference.page === reference.page &&
416
416
  this.pageReference.deliverable === reference.deliverable
@@ -701,9 +701,9 @@ export default class DocXmlContent extends LightningElementWithState<{
701
701
  metadescription.setAttribute(
702
702
  "href",
703
703
  window.location.protocol +
704
- "//" +
705
- window.location.host +
706
- this.pageReferenceToString(copyPageReference)
704
+ "//" +
705
+ window.location.host +
706
+ this.pageReferenceToString(copyPageReference)
707
707
  );
708
708
  }
709
709
  }