@@ -17,6 +17,8 @@ const SSR_COUNT = 20
1717const props = defineProps <{
1818 /** List of search results to display */
1919 results: NpmSearchResult []
20+ /** Filters to apply to the results */
21+ filters? : StructuredFilters
2022 /** Heading level for package names */
2123 headingLevel? : ' h2' | ' h3'
2224 /** Whether to show publisher username on cards */
@@ -153,6 +155,7 @@ defineExpose({
153155 <template v-if =" viewMode === ' table' " >
154156 <PackageTable
155157 :results =" displayedResults"
158+ :filters =" filters"
156159 :columns =" columns"
157160 v-model:sort-option =" sortOption"
158161 :is-loading =" isLoading"
@@ -182,7 +185,9 @@ defineExpose({
182185 :index =" index"
183186 :search-query =" searchQuery"
184187 class =" motion-safe:animate-fade-in motion-safe:animate-fill-both"
188+ :filters =" filters"
185189 :style =" { animationDelay: `${Math.min(index * 0.02, 0.3)}s` }"
190+ @click-keyword =" emit('clickKeyword', $event)"
186191 />
187192 </div >
188193 </template >
@@ -199,6 +204,8 @@ defineExpose({
199204 :show-publisher =" showPublisher"
200205 :index =" index"
201206 :search-query =" searchQuery"
207+ :filters =" filters"
208+ @click-keyword =" emit('clickKeyword', $event)"
202209 />
203210 </div >
204211 </li >
@@ -231,6 +238,8 @@ defineExpose({
231238 :search-query =" searchQuery"
232239 class =" motion-safe:animate-fade-in motion-safe:animate-fill-both"
233240 :style =" { animationDelay: `${Math.min(index * 0.02, 0.3)}s` }"
241+ :filters =" filters"
242+ @click-keyword =" emit('clickKeyword', $event)"
234243 />
235244 </li >
236245 </ol >
0 commit comments