@salesforcedevs/docs-components 1.14.6-load-13 → 1.14.6-load-15

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.14.6-load-13",
3
+ "version": "1.14.6-load-15",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -39,20 +39,23 @@ export default class SpecificationContent extends LightningElement {
39
39
  const queryString = new URLSearchParams(
40
40
  componentQueryParams
41
41
  ).toString();
42
- const url = `${CX_ROUTER_API}?${queryString}`;
42
+ const url = 'https://cx-mock-router-internal-07a18d7b3f61.herokuapp.com/lwc/lightning/inputRichText';
43
43
 
44
44
  try {
45
45
  const response = await fetch(url);
46
46
 
47
+ if(this.component === "error") {
48
+ throw new Error('Failed');
49
+ }
50
+
47
51
  if (!response.ok) {
48
52
  // TODO: Will add loader and show error as follow-up
49
53
  throw new Error(`Failed to fetch: ${response.statusText}`);
50
54
  }
51
55
 
52
56
  const result = await response.json();
53
-
54
57
  // Due to middleware the data is sent as part of response now.
55
- this.data = result?.response;
58
+ this.data = result;
56
59
  if (this.data) {
57
60
  ({
58
61
  attributes: this.attributes,