@getlupa/client 0.7.0 → 0.8.0-alpha-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/cjs/ProductListEntry.vue.d.ts +1 -0
- package/dist/cjs/SearchBoxEntry.vue.d.ts +1 -0
- package/dist/cjs/SearchResultsEntry.vue.d.ts +1 -0
- package/dist/cjs/components/product-list/ProductList.vue.d.ts +1 -0
- package/dist/cjs/components/search-results/SearchResultsTitle.vue.d.ts +1 -0
- package/dist/cjs/components/search-results/filters/facets/StatsFacet.vue.d.ts +2 -0
- package/dist/cjs/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +2 -1
- package/dist/cjs/components/search-results/products/product-card/badges/SearchResultGeneratedBadge.vue.d.ts +9 -0
- package/dist/cjs/components/search-results/products/product-card/badges/SearchResultGeneratedBadges.vue.d.ts +9 -0
- package/dist/cjs/components/search-results/products/product-card/badges/SearchResultsBadgeWrapper.vue.d.ts +2 -0
- package/dist/cjs/index.d.ts +12 -9
- package/dist/cjs/index.min.js +1092 -728
- package/dist/cjs/types/DocumentElement.d.ts +16 -15
- package/dist/cjs/types/product-list/ProductListOptions.d.ts +5 -4
- package/dist/cjs/types/search-results/BadgeOptions.d.ts +29 -12
- package/dist/cjs/types/search-results/SearchResultsOptions.d.ts +6 -1
- package/dist/cjs/types/search-results/SearchResultsProductCardOptions.d.ts +2 -1
- package/dist/es/ProductListEntry.vue.d.ts +1 -0
- package/dist/es/SearchBoxEntry.vue.d.ts +1 -0
- package/dist/es/SearchResultsEntry.vue.d.ts +1 -0
- package/dist/es/components/product-list/ProductList.vue.d.ts +1 -0
- package/dist/es/components/search-results/SearchResultsTitle.vue.d.ts +1 -0
- package/dist/es/components/search-results/filters/facets/StatsFacet.vue.d.ts +2 -0
- package/dist/es/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +2 -1
- package/dist/es/components/search-results/products/product-card/badges/SearchResultGeneratedBadge.vue.d.ts +9 -0
- package/dist/es/components/search-results/products/product-card/badges/SearchResultGeneratedBadges.vue.d.ts +9 -0
- package/dist/es/components/search-results/products/product-card/badges/SearchResultsBadgeWrapper.vue.d.ts +2 -0
- package/dist/es/index.d.ts +12 -9
- package/dist/es/index.min.js +1092 -728
- package/dist/es/types/DocumentElement.d.ts +16 -15
- package/dist/es/types/product-list/ProductListOptions.d.ts +5 -4
- package/dist/es/types/search-results/BadgeOptions.d.ts +29 -12
- package/dist/es/types/search-results/SearchResultsOptions.d.ts +6 -1
- package/dist/es/types/search-results/SearchResultsProductCardOptions.d.ts +2 -1
- package/dist/iife/ProductListEntry.vue.d.ts +1 -0
- package/dist/iife/SearchBoxEntry.vue.d.ts +1 -0
- package/dist/iife/SearchResultsEntry.vue.d.ts +1 -0
- package/dist/iife/components/product-list/ProductList.vue.d.ts +1 -0
- package/dist/iife/components/search-results/SearchResultsTitle.vue.d.ts +1 -0
- package/dist/iife/components/search-results/filters/facets/StatsFacet.vue.d.ts +2 -0
- package/dist/iife/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +2 -1
- package/dist/iife/components/search-results/products/product-card/badges/SearchResultGeneratedBadge.vue.d.ts +9 -0
- package/dist/iife/components/search-results/products/product-card/badges/SearchResultGeneratedBadges.vue.d.ts +9 -0
- package/dist/iife/components/search-results/products/product-card/badges/SearchResultsBadgeWrapper.vue.d.ts +2 -0
- package/dist/iife/index.d.ts +12 -9
- package/dist/iife/index.min.js +1 -1
- package/dist/iife/types/DocumentElement.d.ts +16 -15
- package/dist/iife/types/product-list/ProductListOptions.d.ts +5 -4
- package/dist/iife/types/search-results/BadgeOptions.d.ts +29 -12
- package/dist/iife/types/search-results/SearchResultsOptions.d.ts +6 -1
- package/dist/iife/types/search-results/SearchResultsProductCardOptions.d.ts +2 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -26,6 +26,8 @@ export default class TermFacet extends Vue {
|
|
|
26
26
|
get facetMin(): number;
|
|
27
27
|
get facetMax(): number;
|
|
28
28
|
get statsSummary(): string;
|
|
29
|
+
get separator(): string;
|
|
30
|
+
get sliderInputFormat(): string | undefined;
|
|
29
31
|
onMinValueChange(): void;
|
|
30
32
|
onMaxValueChange(): void;
|
|
31
33
|
handleInputChange(): void;
|
package/dist/cjs/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { TrackableEventData } from "@/types/search-box/Common";
|
|
|
3
3
|
import { BadgeOptions } from "@/types/search-results/BadgeOptions";
|
|
4
4
|
import { ResultsLayout } from "@/types/search-results/ResultsLayout";
|
|
5
5
|
import { RoutingBehavior } from "@/types/search-results/RoutingBehavior";
|
|
6
|
-
import { SearchResultsOptionLabels } from "@/types/search-results/SearchResultsOptions";
|
|
6
|
+
import { SearchResultsOptionLabels, SearchResultsOptions } from "@/types/search-results/SearchResultsOptions";
|
|
7
7
|
import { SearchResultsProductCardOptions } from "@/types/search-results/SearchResultsProductCardOptions";
|
|
8
8
|
import { Document, ReportableEventType } from "@getlupa/client-sdk/Types";
|
|
9
9
|
import Vue from "vue";
|
|
@@ -13,6 +13,7 @@ export default class SearchResultsProductCard extends Vue {
|
|
|
13
13
|
isAdditionalPanel: boolean;
|
|
14
14
|
layout: ResultsLayout;
|
|
15
15
|
searchResultsRoutingBehavior: RoutingBehavior;
|
|
16
|
+
searchResultOptions: SearchResultsOptions;
|
|
16
17
|
query: string;
|
|
17
18
|
trackClick: ({ queryKey, data, }: {
|
|
18
19
|
queryKey: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BadgeGenerateSeed, BadgeOptions } from "@/types/search-results/BadgeOptions";
|
|
2
|
+
import Vue from "vue";
|
|
3
|
+
export default class SearchResultGeneratedBadge extends Vue {
|
|
4
|
+
options: BadgeOptions;
|
|
5
|
+
badge: BadgeGenerateSeed;
|
|
6
|
+
get image(): string | undefined;
|
|
7
|
+
get hasAdditionalText(): boolean;
|
|
8
|
+
get hasTitleText(): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BadgeGenerateSeed, BadgeOptions } from "@/types/search-results/BadgeOptions";
|
|
2
|
+
import Vue from "vue";
|
|
3
|
+
export default class SearchResultGeneratedBadges extends Vue {
|
|
4
|
+
options: BadgeOptions;
|
|
5
|
+
get badgeField(): Record<string, any>[];
|
|
6
|
+
get keyMap(): Record<string, string>;
|
|
7
|
+
get hasBadges(): boolean;
|
|
8
|
+
get badges(): BadgeGenerateSeed[];
|
|
9
|
+
}
|
|
@@ -2,8 +2,10 @@ import { BadgeElement, BadgeOptions } from "@/types/search-results/BadgeOptions"
|
|
|
2
2
|
import { AnchorPosition } from "@/types/search-results/SearchResultsProductCardOptions";
|
|
3
3
|
import Vue from "vue";
|
|
4
4
|
export default class SearchResultsBadgeWrapper extends Vue {
|
|
5
|
+
position: "card" | "image";
|
|
5
6
|
options: BadgeOptions;
|
|
6
7
|
get anchorPosition(): AnchorPosition;
|
|
7
8
|
get badges(): BadgeElement[];
|
|
9
|
+
get displayBadges(): BadgeElement[];
|
|
8
10
|
getBadgeComponent(type: string): string;
|
|
9
11
|
}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { SearchBoxOptions } from "./types/search-box/SearchBoxOptions";
|
|
2
|
-
import { CallbackContext, FacetFilterQuery, FacetStyle, SearchResultEventCallbacks, SearchResultsOptions } from "./types/search-results/SearchResultsOptions";
|
|
2
|
+
import { CallbackContext, FacetFilterQuery, FacetStyle, ResultFacetOptions, SearchResultEventCallbacks, SearchResultsFilterOptions, SearchResultsOptions } from "./types/search-results/SearchResultsOptions";
|
|
3
3
|
import { SdkOptions, TrackingOptions, Environment, SortDirection } from "./types/General";
|
|
4
4
|
import { CategoryFilterOptions, ProductListOptions } from "./types/product-list/ProductListOptions";
|
|
5
5
|
import { AddToCartElement, CustomDocumentElement, CustomHtmlElement, DescriptionDocumentElement, DocumentElement, DocumentElementType, ImageDocumentElement, PriceElement, RatingElement, RegularPriceDocumentElement, TitleDocumentElement } from "./types/DocumentElement";
|
|
6
6
|
import { SearchBoxPanelType } from "./types/search-box/SearchBoxPanel";
|
|
7
7
|
import { RoutingBehavior } from "./types/search-results/RoutingBehavior";
|
|
8
8
|
import { AnchorPosition } from "./types/search-results/SearchResultsProductCardOptions";
|
|
9
|
-
import { BadgeType } from "./types/search-results/BadgeOptions";
|
|
9
|
+
import { BadgeGenerateOptions, BadgeGenerateSeed, BadgeOptions, BadgeType, SearchResultBadgeElement, SearchResultBadgeType } from "./types/search-results/BadgeOptions";
|
|
10
10
|
import { SearchResultsSortOptions, SortOptions } from "./types/search-results/SearchResultsSort";
|
|
11
|
+
declare type MountOptions = {
|
|
12
|
+
fetch: boolean;
|
|
13
|
+
};
|
|
11
14
|
declare const lupaSearch: {
|
|
12
|
-
searchBox: (options: SearchBoxOptions) => void;
|
|
13
|
-
searchResults: (options: SearchResultsOptions) => void;
|
|
15
|
+
searchBox: (options: SearchBoxOptions, mountOptions?: MountOptions | undefined) => void;
|
|
16
|
+
searchResults: (options: SearchResultsOptions, mountOptions?: MountOptions | undefined) => void;
|
|
14
17
|
tracking: (options: TrackingOptions) => void;
|
|
15
|
-
productList: (options: ProductListOptions) => void;
|
|
16
|
-
clearSearchBox: () => void;
|
|
17
|
-
clearSearchResults: () => void;
|
|
18
|
-
clearProductList: () => void;
|
|
18
|
+
productList: (options: ProductListOptions, mountOptions?: MountOptions | undefined) => void;
|
|
19
|
+
clearSearchBox: (selector?: string | undefined) => void;
|
|
20
|
+
clearSearchResults: (selector?: string | undefined) => void;
|
|
21
|
+
clearProductList: (selector?: string | undefined) => void;
|
|
19
22
|
};
|
|
20
|
-
export { TrackingOptions, SearchBoxOptions, SearchResultsOptions, ProductListOptions, SdkOptions, DocumentElementType, SearchBoxPanelType, FacetStyle, Environment, RoutingBehavior, AnchorPosition, BadgeType, SortDirection, DocumentElement, ImageDocumentElement, TitleDocumentElement, DescriptionDocumentElement, CustomDocumentElement, PriceElement, RegularPriceDocumentElement, RatingElement, AddToCartElement, CustomHtmlElement, SortOptions, SearchResultsSortOptions, SearchResultEventCallbacks, CallbackContext, FacetFilterQuery, CategoryFilterOptions, };
|
|
23
|
+
export { TrackingOptions, SearchBoxOptions, SearchResultsOptions, ProductListOptions, SdkOptions, DocumentElementType, SearchBoxPanelType, FacetStyle, Environment, RoutingBehavior, AnchorPosition, BadgeType, SortDirection, DocumentElement, ImageDocumentElement, TitleDocumentElement, DescriptionDocumentElement, CustomDocumentElement, PriceElement, RegularPriceDocumentElement, RatingElement, AddToCartElement, CustomHtmlElement, SortOptions, SearchResultsSortOptions, SearchResultEventCallbacks, CallbackContext, FacetFilterQuery, CategoryFilterOptions, SearchResultsFilterOptions, SearchResultBadgeType, SearchResultBadgeElement, ResultFacetOptions, BadgeGenerateSeed, BadgeGenerateOptions, BadgeOptions, MountOptions, };
|
|
21
24
|
export default lupaSearch;
|