@getlupa/vue 0.17.13 → 0.17.14
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/dist/lupaSearch.js
CHANGED
|
@@ -26292,7 +26292,12 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
26292
26292
|
const hasResults2 = Boolean(
|
|
26293
26293
|
results.total > 0 || ((_a = results.similarQueries) == null ? void 0 : _a.length) || ((_b = results.didYouMean) == null ? void 0 : _b.options) || ((_d = (_c = results.similarResults) == null ? void 0 : _c.items) == null ? void 0 : _d.length)
|
|
26294
26294
|
);
|
|
26295
|
-
(_f = (_e = props.options.callbacks) == null ? void 0 : _e.onSearchResults) == null ? void 0 : _f.call(_e, {
|
|
26295
|
+
(_f = (_e = props.options.callbacks) == null ? void 0 : _e.onSearchResults) == null ? void 0 : _f.call(_e, {
|
|
26296
|
+
queryKey,
|
|
26297
|
+
hasResults: hasResults2,
|
|
26298
|
+
params: paramStore.params,
|
|
26299
|
+
results
|
|
26300
|
+
});
|
|
26296
26301
|
if (!hasResults2) {
|
|
26297
26302
|
return;
|
|
26298
26303
|
}
|
package/dist/lupaSearch.mjs
CHANGED
|
@@ -26290,7 +26290,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
26290
26290
|
const hasResults2 = Boolean(
|
|
26291
26291
|
results.total > 0 || ((_a = results.similarQueries) == null ? void 0 : _a.length) || ((_b = results.didYouMean) == null ? void 0 : _b.options) || ((_d = (_c = results.similarResults) == null ? void 0 : _c.items) == null ? void 0 : _d.length)
|
|
26292
26292
|
);
|
|
26293
|
-
(_f = (_e = props.options.callbacks) == null ? void 0 : _e.onSearchResults) == null ? void 0 : _f.call(_e, {
|
|
26293
|
+
(_f = (_e = props.options.callbacks) == null ? void 0 : _e.onSearchResults) == null ? void 0 : _f.call(_e, {
|
|
26294
|
+
queryKey,
|
|
26295
|
+
hasResults: hasResults2,
|
|
26296
|
+
params: paramStore.params,
|
|
26297
|
+
results
|
|
26298
|
+
});
|
|
26294
26299
|
if (!hasResults2) {
|
|
26295
26300
|
return;
|
|
26296
26301
|
}
|
|
@@ -6,7 +6,7 @@ import type { SearchResultsSortOptions } from './SearchResultsSort';
|
|
|
6
6
|
import { RedirectionOptions } from '../redirections/RedirectionOptions';
|
|
7
7
|
import { RelatedQueryOptions } from './RelatedQueryOptions';
|
|
8
8
|
import { RedirectionSuggestionOptions } from './RedirectionSuggestionOptionts';
|
|
9
|
-
import { FilterGroup } from '@getlupa/client-sdk/Types';
|
|
9
|
+
import { FilterGroup, SearchQueryResult } from '@getlupa/client-sdk/Types';
|
|
10
10
|
import { DataExtraction } from '../DataExtraction';
|
|
11
11
|
import { FilterTranslationOptions } from './FilterTranslationOptions';
|
|
12
12
|
export type SearchResultsOptions = SearchResultsProductOptions & SearchResultsAdditionalPanels & {
|
|
@@ -56,6 +56,7 @@ export type SortCallbackContext = {
|
|
|
56
56
|
};
|
|
57
57
|
export type ResultCallbackContext = CallbackContext & {
|
|
58
58
|
params: Record<string, any>;
|
|
59
|
+
results: SearchQueryResult;
|
|
59
60
|
};
|
|
60
61
|
export type SearchResultEventCallbacks = {
|
|
61
62
|
onSearchResults?: (context: ResultCallbackContext) => unknown;
|