@salesforcedevs/docs-components 1.3.366 → 1.3.376

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.366",
3
+ "version": "1.3.376",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -24,5 +24,5 @@
24
24
  "@types/lodash.orderby": "4.6.9",
25
25
  "@types/lodash.uniqby": "4.7.9"
26
26
  },
27
- "gitHead": "879600edad044c730d365d3737f72f9f5eaec399"
27
+ "gitHead": "1f15d560a49d28943329fca9c8cff12aa9edaf71"
28
28
  }
@@ -7,6 +7,13 @@ import { toJson } from "dxUtils/normalizers";
7
7
  const TABLET_MATCH = "980px";
8
8
  const MOBILE_MATCH = "768px";
9
9
 
10
+ const isStorybook = () => {
11
+ const { host } = window.location;
12
+ return (
13
+ host === "localhost:6006" || /^dsc-comp.*\.herokuapp\.com$/.test(host)
14
+ );
15
+ };
16
+
10
17
  export default class Header extends HeaderBase {
11
18
  @api langValuePath: string = "id"; // allows to override how language property is interpreted, follows valuePath dropdown api.
12
19
  @api headerHref: string = "/";
@@ -57,8 +64,7 @@ export default class Header extends HeaderBase {
57
64
  window.location.pathname !== "/docs/apis") ||
58
65
  window.location.pathname ===
59
66
  "/tableau/embedding-playground/overview" ||
60
- window.location.host === "localhost:6006" ||
61
- window.location.host === "dsc-components.herokuapp.com"
67
+ isStorybook()
62
68
  ) {
63
69
  this.shouldRender = true;
64
70
  }