@getlupa/vue 0.14.10 → 0.14.17

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.
@@ -26483,6 +26483,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
26483
26483
  const optionsStore = useOptionsStore();
26484
26484
  const searchResultStore = useSearchResultStore();
26485
26485
  const screenStore = useScreenStore();
26486
+ const dynamicDataStore = useDynamicDataStore();
26486
26487
  const { columnCount } = storeToRefs(searchResultStore);
26487
26488
  const recommendations = vue.ref([]);
26488
26489
  const recommendationsType = vue.ref(
@@ -26603,6 +26604,10 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
26603
26604
  return;
26604
26605
  }
26605
26606
  recommendations.value = result2.recommended;
26607
+ loading.value = false;
26608
+ yield dynamicDataStore.enhanceSearchResultsWithDynamicData({
26609
+ result: { items: result2.recommended }
26610
+ });
26606
26611
  } finally {
26607
26612
  loading.value = false;
26608
26613
  }
@@ -26481,6 +26481,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
26481
26481
  const optionsStore = useOptionsStore();
26482
26482
  const searchResultStore = useSearchResultStore();
26483
26483
  const screenStore = useScreenStore();
26484
+ const dynamicDataStore = useDynamicDataStore();
26484
26485
  const { columnCount } = storeToRefs(searchResultStore);
26485
26486
  const recommendations = ref([]);
26486
26487
  const recommendationsType = ref(
@@ -26601,6 +26602,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
26601
26602
  return;
26602
26603
  }
26603
26604
  recommendations.value = result2.recommended;
26605
+ loading.value = false;
26606
+ yield dynamicDataStore.enhanceSearchResultsWithDynamicData({
26607
+ result: { items: result2.recommended }
26608
+ });
26604
26609
  } finally {
26605
26610
  loading.value = false;
26606
26611
  }
@@ -1,11 +1,15 @@
1
1
  import { type Ref } from 'vue';
2
- import type { SearchQueryResult } from '@getlupa/client-sdk/Types';
2
+ import { Document, SimilarQueryResult, SimilarResults } from '@getlupa/client-sdk/Types';
3
3
  export declare const useDynamicDataStore: import("pinia").StoreDefinition<"dynamicData", import("pinia")._UnwrapAll<Pick<{
4
4
  dynamicDataIdMap: Ref<Record<string, Document>>;
5
5
  loading: Ref<boolean>;
6
6
  loadingIds: Ref<Record<string, boolean>>;
7
7
  enhanceSearchResultsWithDynamicData: ({ result, mode }: {
8
- result?: SearchQueryResult;
8
+ result?: {
9
+ items: Document[];
10
+ similarQueries?: SimilarQueryResult[];
11
+ similarResults?: SimilarResults;
12
+ };
9
13
  mode?: 'searchBox' | 'searchResults';
10
14
  }) => Promise<{}>;
11
15
  }, "dynamicDataIdMap" | "loading" | "loadingIds">>, Pick<{
@@ -13,7 +17,11 @@ export declare const useDynamicDataStore: import("pinia").StoreDefinition<"dynam
13
17
  loading: Ref<boolean>;
14
18
  loadingIds: Ref<Record<string, boolean>>;
15
19
  enhanceSearchResultsWithDynamicData: ({ result, mode }: {
16
- result?: SearchQueryResult;
20
+ result?: {
21
+ items: Document[];
22
+ similarQueries?: SimilarQueryResult[];
23
+ similarResults?: SimilarResults;
24
+ };
17
25
  mode?: 'searchBox' | 'searchResults';
18
26
  }) => Promise<{}>;
19
27
  }, never>, Pick<{
@@ -21,7 +29,11 @@ export declare const useDynamicDataStore: import("pinia").StoreDefinition<"dynam
21
29
  loading: Ref<boolean>;
22
30
  loadingIds: Ref<Record<string, boolean>>;
23
31
  enhanceSearchResultsWithDynamicData: ({ result, mode }: {
24
- result?: SearchQueryResult;
32
+ result?: {
33
+ items: Document[];
34
+ similarQueries?: SimilarQueryResult[];
35
+ similarResults?: SimilarResults;
36
+ };
25
37
  mode?: 'searchBox' | 'searchResults';
26
38
  }) => Promise<{}>;
27
39
  }, "enhanceSearchResultsWithDynamicData">>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/vue",
3
- "version": "0.14.10",
3
+ "version": "0.14.17",
4
4
  "main": "dist/lupaSearch.mjs",
5
5
  "module": "dist/lupaSearch.mjs",
6
6
  "types": "dist/src/index.d.ts",