@triptease/tt-navbar 0.0.70 → 0.0.72
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/CHANGELOG.md +16 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/Config.js +1 -1
- package/dist/web/Routes.js +1 -1
- package/dist/web/TtNavbar.js +9 -9
- package/dist/web/TtNavbar.js.map +2 -2
- package/dist/web/getInitialNavbarState.js +1 -1
- package/dist/web/global.d.js +1 -1
- package/dist/web/index.js +9 -9
- package/dist/web/index.js.map +2 -2
- package/dist/web/styles.js +1 -1
- package/dist/web/triptease-logo.js +1 -1
- package/dist/web/tt-navbar.js +9 -9
- package/dist/web/tt-navbar.js.map +2 -2
- package/dist/web/urlMappings.js +1 -1
- package/package.json +3 -3
package/dist/web/Config.js
CHANGED
package/dist/web/Routes.js
CHANGED
package/dist/web/TtNavbar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @triptease/tt-navbar v0.0.
|
|
2
|
+
* @triptease/tt-navbar v0.0.72
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -2126,24 +2126,24 @@ var TtNavbar = class extends i4 {
|
|
|
2126
2126
|
if (mappedUrl) {
|
|
2127
2127
|
const clientSpecificUrl = mappedUrl.replace("$CLIENT_KEY", this.clientKey);
|
|
2128
2128
|
const links = Object.values(this.allNavLinks);
|
|
2129
|
-
bestMatch = links.find((
|
|
2129
|
+
bestMatch = links.find((link2) => link2.href.includes(clientSpecificUrl));
|
|
2130
2130
|
}
|
|
2131
2131
|
}
|
|
2132
2132
|
if (!bestMatch) {
|
|
2133
|
-
for (const
|
|
2134
|
-
const linkPath = new URL(
|
|
2133
|
+
for (const link2 of this.allNavLinks) {
|
|
2134
|
+
const linkPath = new URL(link2.href).pathname;
|
|
2135
2135
|
if (currentPath.startsWith(linkPath)) {
|
|
2136
2136
|
if (linkPath.length > bestMatchLength) {
|
|
2137
|
-
bestMatch =
|
|
2137
|
+
bestMatch = link2;
|
|
2138
2138
|
bestMatchLength = linkPath.length;
|
|
2139
2139
|
}
|
|
2140
2140
|
}
|
|
2141
2141
|
}
|
|
2142
2142
|
}
|
|
2143
|
-
for (const
|
|
2144
|
-
|
|
2145
|
-
if (
|
|
2146
|
-
|
|
2143
|
+
for (const link2 of this.allNavLinks) {
|
|
2144
|
+
link2.classList.remove("current-page");
|
|
2145
|
+
if (link2.hasAttribute("aria-current")) {
|
|
2146
|
+
link2.attributes.removeNamedItem("aria-current");
|
|
2147
2147
|
}
|
|
2148
2148
|
}
|
|
2149
2149
|
if (bestMatch) {
|