@salesforcedevs/arch-components 1.29.1 → 1.29.2

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/arch-components",
3
- "version": "1.29.1",
3
+ "version": "1.29.2",
4
4
  "description": "Architect Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -44,5 +44,5 @@
44
44
  "eventsourcemock": "2.0.0",
45
45
  "luxon": "3.4.4"
46
46
  },
47
- "gitHead": "71d75798db2bfb52ea29b57f52947190aa0ec092"
47
+ "gitHead": "1df35017c1cc93551081329c96a37f42ed0780af"
48
48
  }
@@ -93,7 +93,7 @@
93
93
  <arch-summary
94
94
  compact
95
95
  display-mode="brick-tile"
96
- path={result.url}
96
+ path={result.href}
97
97
  title={result.decodedTitle}
98
98
  >
99
99
  <div slot="pretitle">
@@ -2,7 +2,11 @@ import { LightningElement, api, track } from "lwc";
2
2
  import { track as trackEvent } from "arch/instrumentation";
3
3
  import { resolveBrowserLocale } from "arch/browserLocale";
4
4
  import { getStoredLanguage, setStoredLanguage } from "arch/localePreference";
5
- import { decodeHtmlEntities, isSortOption } from "docUtils/searchClient";
5
+ import {
6
+ decodeHtmlEntities,
7
+ isSortOption,
8
+ resultHref
9
+ } from "docUtils/searchClient";
6
10
  import { SearchController } from "docUtils/searchController";
7
11
  import type { SearchViewModel, SortOption } from "docUtils/searchController";
8
12
  import type { SearchResult, FacetBucket } from "docUtils/searchClient";
@@ -22,6 +26,8 @@ interface RenderResult extends SearchResult {
22
26
  // fused results can share a canonical URL, and a duplicate LWC key throws
23
27
  // and fails to render the WHOLE list, so we disambiguate with the index.
24
28
  key: string;
29
+ // Matched-section link; falls back to the page url.
30
+ href: string;
25
31
  decodedTitle: string;
26
32
  decodedDescription: string;
27
33
  hasDescription: boolean;
@@ -170,6 +176,7 @@ export default class SearchHybrid extends LightningElement {
170
176
  ...result,
171
177
  // Index-disambiguated so duplicate URLs can't collide (see key).
172
178
  key: `${result.url}-${index}`,
179
+ href: resultHref(result),
173
180
  decodedTitle: decodeHtmlEntities(result.title),
174
181
  decodedDescription: decodeHtmlEntities(description),
175
182
  hasDescription: