${this.tags.map((tag) => {
- const selected = tag === this.selected;
+ const selected = tag === this._selected;
return html``;
@@ -135,3 +192,9 @@ export class CanaryFilterTags extends LitElement {
}
`;
}
+
+declare global {
+ interface Window {
+ __history_patched__?: boolean;
+ }
+}
diff --git a/js/packages/web/src/components/canary-search-match-base.ts b/js/packages/web/src/components/canary-search-match-base.ts
index 8d10b52a..77631dd3 100644
--- a/js/packages/web/src/components/canary-search-match-base.ts
+++ b/js/packages/web/src/components/canary-search-match-base.ts
@@ -6,6 +6,17 @@ import { MODAL_CLOSE_EVENT } from "./canary-modal";
const NAME = "canary-search-match-base";
+/**
+ * @csspart container - Container of the match
+ *
+ * @slot content-before - Content before the match
+ * @slot url - URL of the match
+ * @slot title-icon - Icon for the title
+ * @slot title - Title of the match
+ * @slot title-badge - Badge displayed next to the title
+ * @slot excerpt - Excerpt of the match
+ * @slot sub-results - Sub-results related to the match
+ */
@customElement(NAME)
export class CanarySearchMatchBase extends LitElement {
@property({ type: String })