@salesforcedevs/docs-components
Advanced tools
Comparing version 1.3.345-spec-alpha1 to 1.3.345-spec-alpha2
{ | ||
"name": "@salesforcedevs/docs-components", | ||
"version": "1.3.345-spec-alpha1", | ||
"version": "1.3.345-spec-alpha2", | ||
"description": "Docs Lightning web components for DSC", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -8,4 +8,4 @@ import { LightningElement, track, api } from "lwc"; | ||
@api component: string = "button"; | ||
@api type: string = "lwc"; | ||
@api subType: string = "lightning"; | ||
@api model: string = "lwc"; | ||
@api namespace: string = "lightning"; | ||
@@ -16,3 +16,3 @@ /* TODO: The actual URL is as follows: | ||
*/ | ||
@api routerUrl: string = | ||
@api apiBaseUrl: string = | ||
"https://cx-mock-router-internal-07a18d7b3f61.herokuapp.com"; | ||
@@ -30,3 +30,3 @@ | ||
async fetchComponentMetadata() { | ||
const url = `${this.routerUrl}/${this.type}/${this.subType}/${this.component}`; | ||
const url = `${this.apiBaseUrl}/${this.model}/${this.namespace}/${this.component}`; | ||
@@ -33,0 +33,0 @@ try { |
270802