@getlupa/vue 0.7.0 → 0.7.1
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
|
@@ -2761,7 +2761,10 @@ const useRedirectionStore = defineStore("redirections", () => {
|
|
|
2761
2761
|
if (!redirectTo) {
|
|
2762
2762
|
return false;
|
|
2763
2763
|
}
|
|
2764
|
-
const url = ((_c = redirectionOptions.value) == null ? void 0 : _c.
|
|
2764
|
+
const url = ((_c = redirectionOptions.value) == null ? void 0 : _c.urlTransformer) ? (_d = redirectionOptions.value) == null ? void 0 : _d.urlTransformer(redirectTo == null ? void 0 : redirectTo.target) : redirectTo == null ? void 0 : redirectTo.target;
|
|
2765
|
+
if (url === void 0 || url === null || url === "") {
|
|
2766
|
+
return false;
|
|
2767
|
+
}
|
|
2765
2768
|
if (routingBehavior === "event") {
|
|
2766
2769
|
emitRoutingEvent(url);
|
|
2767
2770
|
} else {
|
package/dist/lupaSearch.mjs
CHANGED
|
@@ -2759,7 +2759,10 @@ const useRedirectionStore = defineStore("redirections", () => {
|
|
|
2759
2759
|
if (!redirectTo) {
|
|
2760
2760
|
return false;
|
|
2761
2761
|
}
|
|
2762
|
-
const url = ((_c = redirectionOptions.value) == null ? void 0 : _c.
|
|
2762
|
+
const url = ((_c = redirectionOptions.value) == null ? void 0 : _c.urlTransformer) ? (_d = redirectionOptions.value) == null ? void 0 : _d.urlTransformer(redirectTo == null ? void 0 : redirectTo.target) : redirectTo == null ? void 0 : redirectTo.target;
|
|
2763
|
+
if (url === void 0 || url === null || url === "") {
|
|
2764
|
+
return false;
|
|
2765
|
+
}
|
|
2763
2766
|
if (routingBehavior === "event") {
|
|
2764
2767
|
emitRoutingEvent(url);
|
|
2765
2768
|
} else {
|
package/dist/src/index.d.ts
CHANGED
|
@@ -22,10 +22,11 @@ import ChatContainer from './components/chat/ChatContainer.vue';
|
|
|
22
22
|
import { getInitialSearchResults } from './utils/ssr.utils';
|
|
23
23
|
import { ChatOptions, ChatSettings } from './types/chat/ChatOptions';
|
|
24
24
|
import { QueryParams } from './types/search-results/QueryParams';
|
|
25
|
+
import { RedirectionOptions } from './types/redirections/RedirectionOptions';
|
|
25
26
|
declare const initPinia: () => Pinia;
|
|
26
27
|
declare const setupTracking: (options: TrackingOptions) => void;
|
|
27
28
|
declare const LupaSearch: {
|
|
28
29
|
install: (app: any) => void;
|
|
29
30
|
};
|
|
30
31
|
export { SearchBox, SearchResults, ProductList, Recommendations, SearchContainer, ChatContainer, DocumentElementType, SearchBoxPanelType, BadgeType, setupTracking, LupaSearch, initPinia, getInitialSearchResults };
|
|
31
|
-
export type { TrackingOptions, SearchBoxOptions, SearchResultsOptions, ProductListOptions, SdkOptions, FacetStyle, Environment, RoutingBehavior, AnchorPosition, SortDirection, DocumentElement, ImageDocumentElement, TitleDocumentElement, DescriptionDocumentElement, CustomDocumentElement, PriceElement, RegularPriceDocumentElement, RatingElement, AddToCartElement, CustomHtmlElement, SortOptions, SearchResultsSortOptions, SearchResultEventCallbacks, CallbackContext, SortCallbackContext, ResultCallbackContext, FacetFilterQuery, CategoryFilterOptions, SearchResultsFilterOptions, SearchResultBadgeType, SearchResultBadgeElement, ResultFacetOptions, BadgeGenerateSeed, BadgeGenerateOptions, BadgeOptions, SearchContainerOptions, SearchContainerConfigOptions, SingleStarRatingElement, DynamicData, ProductRecommendationOptions, RecommendationABTestingOptions, SsrOptions, ChatOptions, ChatSettings, SearchBoxEventCallbacks, SearchBoxResultCallbackContext, QueryParams, SearchBoxResultsNavigateContext };
|
|
32
|
+
export type { TrackingOptions, SearchBoxOptions, SearchResultsOptions, ProductListOptions, SdkOptions, FacetStyle, Environment, RoutingBehavior, AnchorPosition, SortDirection, DocumentElement, ImageDocumentElement, TitleDocumentElement, DescriptionDocumentElement, CustomDocumentElement, PriceElement, RegularPriceDocumentElement, RatingElement, AddToCartElement, CustomHtmlElement, SortOptions, SearchResultsSortOptions, SearchResultEventCallbacks, CallbackContext, SortCallbackContext, ResultCallbackContext, FacetFilterQuery, CategoryFilterOptions, SearchResultsFilterOptions, SearchResultBadgeType, SearchResultBadgeElement, ResultFacetOptions, BadgeGenerateSeed, BadgeGenerateOptions, BadgeOptions, SearchContainerOptions, SearchContainerConfigOptions, SingleStarRatingElement, DynamicData, ProductRecommendationOptions, RecommendationABTestingOptions, SsrOptions, ChatOptions, ChatSettings, SearchBoxEventCallbacks, SearchBoxResultCallbackContext, QueryParams, SearchBoxResultsNavigateContext, RedirectionOptions };
|