@salesforcedevs/docs-components 1.3.341-back-forth-1 → 1.3.342

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/LICENSE ADDED
@@ -0,0 +1,12 @@
1
+ Copyright (c) 2020, Salesforce.com, Inc.
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
+
6
+ * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
+
8
+ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
+
10
+ * Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.3.341-back-forth-1",
3
+ "version": "1.3.342",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -11,18 +11,18 @@
11
11
  "access": "public"
12
12
  },
13
13
  "dependencies": {
14
- "@api-components/amf-helper-mixin": "^4.5.17",
15
- "classnames": "^2.2.6",
16
- "kagekiri": "^1.4.1",
17
- "lodash.orderby": "^4.6.0",
18
- "lodash.uniqby": "^4.7.0",
19
- "query-string": "^7.1.3",
20
- "sentence-case": "^3.0.4"
14
+ "@api-components/amf-helper-mixin": "4.5.24",
15
+ "classnames": "2.5.1",
16
+ "kagekiri": "1.4.2",
17
+ "lodash.orderby": "4.6.0",
18
+ "lodash.uniqby": "4.7.0",
19
+ "query-string": "7.1.3",
20
+ "sentence-case": "3.0.4"
21
21
  },
22
22
  "devDependencies": {
23
- "@types/classnames": "^2.2.10",
24
- "@types/lodash.orderby": "^4.6.7",
25
- "@types/lodash.uniqby": "^4.7.7"
23
+ "@types/classnames": "2.3.1",
24
+ "@types/lodash.orderby": "4.6.9",
25
+ "@types/lodash.uniqby": "4.7.9"
26
26
  },
27
- "gitHead": "4629fdd9ca18a13480044ad43515b91945d16aad"
27
+ "gitHead": "b22e5b8720d2780240cdba99bd3942ec32f58356"
28
28
  }
@@ -198,13 +198,6 @@ export default class ContentLayout extends LightningElement {
198
198
  );
199
199
  }
200
200
 
201
- // This event gets triggered when navigating back/forward
202
- handlePopState = (): void => {
203
- if (this.showTabBasedRNB) {
204
- this.restoreTabSelection();
205
- }
206
- };
207
-
208
201
  connectedCallback(): void {
209
202
  const hasParentHighlightListener = closest(
210
203
  "doc-xml-content",
@@ -217,7 +210,6 @@ export default class ContentLayout extends LightningElement {
217
210
  );
218
211
  this.searchSyncer.init();
219
212
  }
220
- window.addEventListener("popstate", this.handlePopState);
221
213
  }
222
214
 
223
215
  private getSelectedTabId() {
@@ -293,7 +285,6 @@ export default class ContentLayout extends LightningElement {
293
285
  window.removeEventListener("scroll", this.adjustNavPosition);
294
286
  window.removeEventListener("resize", this.adjustNavPosition);
295
287
  window.removeEventListener("tabchanged", this.onTabChanged);
296
- window.removeEventListener("popstate", this.handlePopState);
297
288
  this.searchSyncer.dispose();
298
289
  this.clearRenderObserverTimer();
299
290