@triptease/tt-navbar 0.0.74 → 0.0.76

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.74
2
+ * @triptease/tt-navbar v0.0.76
3
3
  */
4
4
 
5
5
  // src/Config.ts
@@ -1,4 +1,4 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.74
2
+ * @triptease/tt-navbar v0.0.76
3
3
  */
4
4
  //# sourceMappingURL=global.d.js.map
package/dist/web/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.74
2
+ * @triptease/tt-navbar v0.0.76
3
3
  */
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2062,8 +2062,22 @@ var urlMappings = {
2062
2062
  "/:clientKey/messages/*": "/channels",
2063
2063
  "/:clientKey/pricematch/*": "/channels",
2064
2064
  "/:clientKey/chat/insights": "/channels",
2065
- "/settings/:clientKey/*": "/settings/$CLIENT_KEY/guides",
2066
- "/:clientKey/settings/*": "/$CLIENT_KEY/settings/guides"
2065
+ "/:clientKey/parity": "/parity/$CLIENT_KEY",
2066
+ "/:clientKey/parity/*": "/parity/$CLIENT_KEY",
2067
+ // Settings routes - legacy paths map to new navbar link
2068
+ "/settings/:clientKey/*": "/$CLIENT_KEY/settings/guides",
2069
+ // Settings routes with :clientKey first (excluding guides/hotels which have direct links)
2070
+ "/:clientKey/settings/branding": "/$CLIENT_KEY/settings/guides",
2071
+ "/:clientKey/settings/price-check": "/$CLIENT_KEY/settings/guides",
2072
+ "/:clientKey/settings/price-config": "/$CLIENT_KEY/settings/guides",
2073
+ "/:clientKey/settings/hotel-details-finder": "/$CLIENT_KEY/settings/guides",
2074
+ "/:clientKey/settings/deactivation-center": "/$CLIENT_KEY/settings/guides",
2075
+ "/:clientKey/account/team": "/account/team/$CLIENT_KEY",
2076
+ "/:clientKey/account/team/*": "/account/team/$CLIENT_KEY",
2077
+ "/:clientKey/account/billing-management": "/account/billing-management/$CLIENT_KEY",
2078
+ "/:clientKey/account/billing-management/*": "/account/billing-management/$CLIENT_KEY",
2079
+ "/:clientKey/subscriptions": "/subscriptions/$CLIENT_KEY",
2080
+ "/:clientKey/subscriptions/*": "/subscriptions/$CLIENT_KEY"
2067
2081
  };
2068
2082
 
2069
2083
  // src/Routes.ts
@@ -2282,7 +2296,7 @@ var TtNavbar = class extends i4 {
2282
2296
  >
2283
2297
  <a
2284
2298
  class="sub-nav-item"
2285
- href=${this.buildUrl("/guest-insights/$CLIENT_KEY")}
2299
+ href=${this.buildUrl("/$CLIENT_KEY/guest-insights")}
2286
2300
  @click=${this.onAnchorClick}
2287
2301
  data-intercom-target="guest-insights"
2288
2302
  >Guest insights</a
@@ -2312,14 +2326,14 @@ var TtNavbar = class extends i4 {
2312
2326
  >
2313
2327
  <a
2314
2328
  class="sub-nav-item"
2315
- href=${this.buildUrl("/settings/$CLIENT_KEY/guides")}
2329
+ href=${this.buildUrl("/$CLIENT_KEY/settings/guides")}
2316
2330
  @click=${this.onAnchorClick}
2317
2331
  data-intercom-target="group-settings"
2318
2332
  >Group settings</a
2319
2333
  >
2320
2334
  <a
2321
2335
  class="sub-nav-item"
2322
- href=${this.buildUrl("/settings/$CLIENT_KEY/hotels")}
2336
+ href=${this.buildUrl("/$CLIENT_KEY/settings/hotels")}
2323
2337
  @click=${this.onAnchorClick}
2324
2338
  data-intercom-target="property-settings"
2325
2339
  >Property settings</a
@@ -2341,6 +2355,7 @@ var TtNavbar = class extends i4 {
2341
2355
  data-intercom-target="user-settings"
2342
2356
  >User settings</a
2343
2357
  >
2358
+ <!-- TODO: Change to /$CLIENT_KEY/account/team when the change in Tetris is ready -->
2344
2359
  <a
2345
2360
  class="sub-nav-item"
2346
2361
  href=${this.buildUrl("/account/team/$CLIENT_KEY")}
@@ -2357,6 +2372,7 @@ var TtNavbar = class extends i4 {
2357
2372
  <span class="icon chevron"> ${o8(chevronDown)}</span>
2358
2373
  </summary>
2359
2374
  <div>
2375
+ <!-- TODO: Change to /$CLIENT_KEY/account/billing-management when the change in Tetris is ready -->
2360
2376
  <a
2361
2377
  class="sub-nav-item"
2362
2378
  href=${this.buildUrl("/account/billing-management/$CLIENT_KEY")}
@@ -2364,6 +2380,7 @@ var TtNavbar = class extends i4 {
2364
2380
  data-intercom-target="booking-reconciliation"
2365
2381
  >Booking reconciliation</a
2366
2382
  >
2383
+ <!-- TODO: Change to /$CLIENT_KEY/subscriptions when the change in Tetris is ready -->
2367
2384
  <a
2368
2385
  class="sub-nav-item"
2369
2386
  href=${this.buildUrl("/subscriptions/$CLIENT_KEY")}