@salesforcedevs/docs-components 1.3.345-spec-alpha1 → 1.3.345-spec-alpha2

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.345-spec-alpha1",
3
+ "version": "1.3.345-spec-alpha2",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -5,14 +5,14 @@ export default class SpecificationContent extends LightningElement {
5
5
  @track data: any;
6
6
  // TODO: added these default values for testing, will drop this once the backend is ready.
7
7
  @api component: string = "button";
8
- @api type: string = "lwc";
9
- @api subType: string = "lightning";
8
+ @api model: string = "lwc";
9
+ @api namespace: string = "lightning";
10
10
 
11
11
  /* TODO: The actual URL is as follows:
12
12
  * http://api.salesforce.com/doc-platform/developer/v1/{type}/{sub-type}/{component-name}
13
13
  * Until the API integration is ready, we will go ahead with mocked-router-url.
14
14
  */
15
- @api routerUrl: string =
15
+ @api apiBaseUrl: string =
16
16
  "https://cx-mock-router-internal-07a18d7b3f61.herokuapp.com";
17
17
 
18
18
  private attributes: Specifiaction[] = [];
@@ -25,7 +25,7 @@ export default class SpecificationContent extends LightningElement {
25
25
  }
26
26
 
27
27
  async fetchComponentMetadata() {
28
- const url = `${this.routerUrl}/${this.type}/${this.subType}/${this.component}`;
28
+ const url = `${this.apiBaseUrl}/${this.model}/${this.namespace}/${this.component}`;
29
29
 
30
30
  try {
31
31
  const response = await fetch(url);