@getlupa/client 0.4.3-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/.browserslistrc +3 -0
- package/.eslintrc.js +37 -0
- package/.github/workflows/build-test.yml +23 -0
- package/.github/workflows/npm-publish.yml +24 -0
- package/README.md +71 -0
- package/babel.config.js +3 -0
- package/cypress.json +1 -0
- package/dist/cjs/SearchBoxEntry.vue.d.ts +6 -0
- package/dist/cjs/SearchResultsEntry.vue.d.ts +6 -0
- package/dist/cjs/components/common/Spinner.vue.d.ts +3 -0
- package/dist/cjs/components/search-box/SearchBox.vue.d.ts +60 -0
- package/dist/cjs/components/search-box/SearchBoxInput.vue.d.ts +21 -0
- package/dist/cjs/components/search-box/SearchBoxMainPanel.vue.d.ts +33 -0
- package/dist/cjs/components/search-box/SearchBoxMoreResults.vue.d.ts +11 -0
- package/dist/cjs/components/search-box/__tests__/SearchBox.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/__tests__/SearchBoxInput.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/__tests__/SearchBoxMainPanel.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/history/SearchBoxHistoryItem.vue.d.ts +7 -0
- package/dist/cjs/components/search-box/history/SearchBoxHistoryPanel.vue.d.ts +23 -0
- package/dist/cjs/components/search-box/history/__tests__/SearchBoxHistoryPanel.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/products/SearchBoxProduct.vue.d.ts +25 -0
- package/dist/cjs/components/search-box/products/SearchBoxProducts.vue.d.ts +15 -0
- package/dist/cjs/components/search-box/products/SearchBoxProductsWrapper.vue.d.ts +26 -0
- package/dist/cjs/components/search-box/products/__tests__/SearchBoxProduct.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/products/elements/SearchBoxProductCustom.vue.d.ts +10 -0
- package/dist/cjs/components/search-box/products/elements/SearchBoxProductDescription.vue.d.ts +9 -0
- package/dist/cjs/components/search-box/products/elements/SearchBoxProductElement.vue.d.ts +11 -0
- package/dist/cjs/components/search-box/products/elements/SearchBoxProductImage.vue.d.ts +14 -0
- package/dist/cjs/components/search-box/products/elements/SearchBoxProductPrice.vue.d.ts +10 -0
- package/dist/cjs/components/search-box/products/elements/SearchBoxProductRegularPrice.vue.d.ts +10 -0
- package/dist/cjs/components/search-box/products/elements/SearchBoxProductTitle.vue.d.ts +9 -0
- package/dist/cjs/components/search-box/products/elements/__tests__/SearchBoxProductCustom.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/products/elements/__tests__/SearchBoxProductElement.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/products/elements/__tests__/SearchBoxProductImage.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/products/elements/__tests__/SearchBoxProductPrice.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/products/elements/__tests__/SearchBoxProductTitle.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-box/products/elements/custom/SearchBoxProductCustomHtml.vue.d.ts +9 -0
- package/dist/cjs/components/search-box/suggestions/SearchBoxSuggestion.vue.d.ts +10 -0
- package/dist/cjs/components/search-box/suggestions/SearchBoxSuggestions.vue.d.ts +22 -0
- package/dist/cjs/components/search-box/suggestions/SearchBoxSuggestionsWrapper.vue.d.ts +28 -0
- package/dist/cjs/components/search-box/suggestions/__tests__/Suggestions.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/SearchResults.vue.d.ts +48 -0
- package/dist/cjs/components/search-results/SearchResultsBreadcrumbs.vue.d.ts +7 -0
- package/dist/cjs/components/search-results/SearchResultsDidYouMean.vue.d.ts +19 -0
- package/dist/cjs/components/search-results/__tests__/SearchResults.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/__tests__/SearchResultsBreadcrumbs.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/additional-panels/AdditionalPanel.vue.d.ts +21 -0
- package/dist/cjs/components/search-results/additional-panels/AdditionalPanels.vue.d.ts +11 -0
- package/dist/cjs/components/search-results/additional-panels/__tests__/AdditionalPanels.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/filters/CurrentFilterDisplay.vue.d.ts +6 -0
- package/dist/cjs/components/search-results/filters/CurrentFilters.vue.d.ts +36 -0
- package/dist/cjs/components/search-results/filters/FiltersTopDropdown.vue.d.ts +5 -0
- package/dist/cjs/components/search-results/filters/MobileFilterSidebar.vue.d.ts +10 -0
- package/dist/cjs/components/search-results/filters/SearchResultsFilters.vue.d.ts +7 -0
- package/dist/cjs/components/search-results/filters/__tests__/CurrentFilterDisplay.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/filters/__tests__/CurrentFilters.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/filters/facets/FacetDisplay.vue.d.ts +20 -0
- package/dist/cjs/components/search-results/filters/facets/FacetList.vue.d.ts +13 -0
- package/dist/cjs/components/search-results/filters/facets/Facets.vue.d.ts +31 -0
- package/dist/cjs/components/search-results/filters/facets/HierarchyFacet.vue.d.ts +21 -0
- package/dist/cjs/components/search-results/filters/facets/HierarchyFacetLevel.vue.d.ts +12 -0
- package/dist/cjs/components/search-results/filters/facets/StatsFacet.vue.d.ts +23 -0
- package/dist/cjs/components/search-results/filters/facets/TermFacet.vue.d.ts +18 -0
- package/dist/cjs/components/search-results/filters/facets/__tests__/FacetDisplay.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/filters/facets/__tests__/FacetList.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/filters/facets/__tests__/HierarchyFacet.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/filters/facets/__tests__/StatsFacet.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/filters/facets/__tests__/TermFacet.vue.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/SearchResultsLayoutSelection.vue.d.ts +8 -0
- package/dist/cjs/components/search-results/products/SearchResultsMobileToggle.vue.d.ts +8 -0
- package/dist/cjs/components/search-results/products/SearchResultsProducts.vue.d.ts +29 -0
- package/dist/cjs/components/search-results/products/SearchResultsSummary.vue.d.ts +8 -0
- package/dist/cjs/components/search-results/products/SearchResultsToolbar.vue.d.ts +21 -0
- package/dist/cjs/components/search-results/products/__tests__/SearchResultsLayoutSelection.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/__tests__/SearchResultsProducts.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/__tests__/SearchResultsToolbar.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts +18 -0
- package/dist/cjs/components/search-results/products/pagination/SearchResultsPageSize.vue.d.ts +19 -0
- package/dist/cjs/components/search-results/products/pagination/__tests__/SearchResultsPageSelect.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/pagination/__tests__/SearchResultsPageSize.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +33 -0
- package/dist/cjs/components/search-results/products/product-card/__tests__/SearchResultsBadgeWrapper.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/__tests__/SearchResultsProductCard.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/badges/CustomBadge.vue.d.ts +7 -0
- package/dist/cjs/components/search-results/products/product-card/badges/ImageBadge.vue.d.ts +8 -0
- package/dist/cjs/components/search-results/products/product-card/badges/SearchResultsBadgeWrapper.vue.d.ts +9 -0
- package/dist/cjs/components/search-results/products/product-card/badges/TextBadge.vue.d.ts +7 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductAddToCart.vue.d.ts +12 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductCardElement.vue.d.ts +16 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductCustom.vue.d.ts +10 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductDescription.vue.d.ts +10 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductImage.vue.d.ts +14 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductPrice.vue.d.ts +10 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductRating.vue.d.ts +13 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductRegularPrice.vue.d.ts +10 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductTitle.vue.d.ts +11 -0
- package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductAddToCart.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustom.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustomHtmlElement.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductDescription.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductImage.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductPrice.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductRating.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/__tests__/SearchResultsProductTitle.spec.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/custom/SearchResultsProductCustomHtmlElement.vue.d.ts +9 -0
- package/dist/cjs/components/search-results/products/similar-queries/SearchResultsSimilarQueries.vue.d.ts +19 -0
- package/dist/cjs/components/search-results/products/similar-queries/SimilarQueryText.vue.d.ts +10 -0
- package/dist/cjs/components/search-results/products/sort/SearchResultsSort.vue.d.ts +23 -0
- package/dist/cjs/components/search-results/products/sort/__tests__/SearchResultsSort.spec.d.ts +1 -0
- package/dist/cjs/constants/development/searchBoxDev.example.const.d.ts +27 -0
- package/dist/cjs/constants/development/searchResultsDev.example.const.d.ts +91 -0
- package/dist/cjs/constants/global.const.d.ts +13 -0
- package/dist/cjs/constants/mockData..const.d.ts +4 -0
- package/dist/cjs/constants/queryParams.const.d.ts +25 -0
- package/dist/cjs/constants/searchBox.const.d.ts +48 -0
- package/dist/cjs/constants/searchResults.const.d.ts +105 -0
- package/dist/cjs/index-iife.d.ts +21 -0
- package/dist/cjs/index.d.ts +11 -0
- package/dist/cjs/index.min.js +33183 -0
- package/dist/cjs/main.d.ts +1 -0
- package/dist/cjs/store/__tests__/history.spec.d.ts +1 -0
- package/dist/cjs/store/__tests__/params.spec.d.ts +1 -0
- package/dist/cjs/store/__tests__/searchBox.spec.d.ts +1 -0
- package/dist/cjs/store/__tests__/searchResult.spec.d.ts +1 -0
- package/dist/cjs/store/index.d.ts +2 -0
- package/dist/cjs/store/modules/history.d.ts +13 -0
- package/dist/cjs/store/modules/options.d.ts +16 -0
- package/dist/cjs/store/modules/params.d.ts +55 -0
- package/dist/cjs/store/modules/searchBox.d.ts +65 -0
- package/dist/cjs/store/modules/searchResult.d.ts +47 -0
- package/dist/cjs/store/modules/tracking.d.ts +17 -0
- package/dist/cjs/store/types/State.d.ts +38 -0
- package/dist/cjs/types/AnalyticsOptions.d.ts +7 -0
- package/dist/cjs/types/DocumentElement.d.ts +68 -0
- package/dist/cjs/types/General.d.ts +12 -0
- package/dist/cjs/types/search-box/Common.d.ts +44 -0
- package/dist/cjs/types/search-box/SearchBoxHistory.d.ts +6 -0
- package/dist/cjs/types/search-box/SearchBoxOptions.d.ts +30 -0
- package/dist/cjs/types/search-box/SearchBoxPanel.d.ts +28 -0
- package/dist/cjs/types/search-results/BadgeOptions.d.ts +42 -0
- package/dist/cjs/types/search-results/FacetAction.d.ts +16 -0
- package/dist/cjs/types/search-results/Filters.d.ts +9 -0
- package/dist/cjs/types/search-results/PaginationOptions.d.ts +19 -0
- package/dist/cjs/types/search-results/QueryParams.d.ts +4 -0
- package/dist/cjs/types/search-results/ResultsLayout.d.ts +5 -0
- package/dist/cjs/types/search-results/SearchResultsAdditionalPanelOptions.d.ts +15 -0
- package/dist/cjs/types/search-results/SearchResultsOptions.d.ts +109 -0
- package/dist/cjs/types/search-results/SearchResultsPagination.d.ts +20 -0
- package/dist/cjs/types/search-results/SearchResultsProductCardOptions.d.ts +20 -0
- package/dist/cjs/types/search-results/SearchResultsSort.d.ts +11 -0
- package/dist/cjs/utils/__tests__/debounce.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/event.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/filter.toggle.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/filter.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/history.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/link.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/params.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/picker.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/price.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/query.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/string.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/suggestion.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/__tests__/tracking.utils.spec.d.ts +1 -0
- package/dist/cjs/utils/debounce.utils.d.ts +1 -0
- package/dist/cjs/utils/document.utils.d.ts +1 -0
- package/dist/cjs/utils/event.utils.d.ts +2 -0
- package/dist/cjs/utils/filter.toggle.utils.d.ts +23 -0
- package/dist/cjs/utils/filter.utils.d.ts +10 -0
- package/dist/cjs/utils/history.utils.d.ts +2 -0
- package/dist/cjs/utils/link.utils.d.ts +4 -0
- package/dist/cjs/utils/merger.utils.d.ts +1 -0
- package/dist/cjs/utils/params.utils.d.ts +9 -0
- package/dist/cjs/utils/picker.utils.d.ts +5 -0
- package/dist/cjs/utils/price.utils.d.ts +2 -0
- package/dist/cjs/utils/query.utils.d.ts +4 -0
- package/dist/cjs/utils/scroll.utils.d.ts +2 -0
- package/dist/cjs/utils/string.utils.d.ts +7 -0
- package/dist/cjs/utils/suggestion.utils.d.ts +3 -0
- package/dist/cjs/utils/tracking.utils.d.ts +5 -0
- package/dist/es/SearchBoxEntry.vue.d.ts +6 -0
- package/dist/es/SearchResultsEntry.vue.d.ts +6 -0
- package/dist/es/components/common/Spinner.vue.d.ts +3 -0
- package/dist/es/components/search-box/SearchBox.vue.d.ts +60 -0
- package/dist/es/components/search-box/SearchBoxInput.vue.d.ts +21 -0
- package/dist/es/components/search-box/SearchBoxMainPanel.vue.d.ts +33 -0
- package/dist/es/components/search-box/SearchBoxMoreResults.vue.d.ts +11 -0
- package/dist/es/components/search-box/__tests__/SearchBox.spec.d.ts +1 -0
- package/dist/es/components/search-box/__tests__/SearchBoxInput.spec.d.ts +1 -0
- package/dist/es/components/search-box/__tests__/SearchBoxMainPanel.spec.d.ts +1 -0
- package/dist/es/components/search-box/history/SearchBoxHistoryItem.vue.d.ts +7 -0
- package/dist/es/components/search-box/history/SearchBoxHistoryPanel.vue.d.ts +23 -0
- package/dist/es/components/search-box/history/__tests__/SearchBoxHistoryPanel.vue.spec.d.ts +1 -0
- package/dist/es/components/search-box/products/SearchBoxProduct.vue.d.ts +25 -0
- package/dist/es/components/search-box/products/SearchBoxProducts.vue.d.ts +15 -0
- package/dist/es/components/search-box/products/SearchBoxProductsWrapper.vue.d.ts +26 -0
- package/dist/es/components/search-box/products/__tests__/SearchBoxProduct.vue.spec.d.ts +1 -0
- package/dist/es/components/search-box/products/elements/SearchBoxProductCustom.vue.d.ts +10 -0
- package/dist/es/components/search-box/products/elements/SearchBoxProductDescription.vue.d.ts +9 -0
- package/dist/es/components/search-box/products/elements/SearchBoxProductElement.vue.d.ts +11 -0
- package/dist/es/components/search-box/products/elements/SearchBoxProductImage.vue.d.ts +14 -0
- package/dist/es/components/search-box/products/elements/SearchBoxProductPrice.vue.d.ts +10 -0
- package/dist/es/components/search-box/products/elements/SearchBoxProductRegularPrice.vue.d.ts +10 -0
- package/dist/es/components/search-box/products/elements/SearchBoxProductTitle.vue.d.ts +9 -0
- package/dist/es/components/search-box/products/elements/__tests__/SearchBoxProductCustom.vue.spec.d.ts +1 -0
- package/dist/es/components/search-box/products/elements/__tests__/SearchBoxProductElement.vue.spec.d.ts +1 -0
- package/dist/es/components/search-box/products/elements/__tests__/SearchBoxProductImage.spec.d.ts +1 -0
- package/dist/es/components/search-box/products/elements/__tests__/SearchBoxProductPrice.vue.spec.d.ts +1 -0
- package/dist/es/components/search-box/products/elements/__tests__/SearchBoxProductTitle.vue.spec.d.ts +1 -0
- package/dist/es/components/search-box/products/elements/custom/SearchBoxProductCustomHtml.vue.d.ts +9 -0
- package/dist/es/components/search-box/suggestions/SearchBoxSuggestion.vue.d.ts +10 -0
- package/dist/es/components/search-box/suggestions/SearchBoxSuggestions.vue.d.ts +22 -0
- package/dist/es/components/search-box/suggestions/SearchBoxSuggestionsWrapper.vue.d.ts +28 -0
- package/dist/es/components/search-box/suggestions/__tests__/Suggestions.spec.d.ts +1 -0
- package/dist/es/components/search-results/SearchResults.vue.d.ts +48 -0
- package/dist/es/components/search-results/SearchResultsBreadcrumbs.vue.d.ts +7 -0
- package/dist/es/components/search-results/SearchResultsDidYouMean.vue.d.ts +19 -0
- package/dist/es/components/search-results/__tests__/SearchResults.spec.d.ts +1 -0
- package/dist/es/components/search-results/__tests__/SearchResultsBreadcrumbs.spec.d.ts +1 -0
- package/dist/es/components/search-results/additional-panels/AdditionalPanel.vue.d.ts +21 -0
- package/dist/es/components/search-results/additional-panels/AdditionalPanels.vue.d.ts +11 -0
- package/dist/es/components/search-results/additional-panels/__tests__/AdditionalPanels.vue.spec.d.ts +1 -0
- package/dist/es/components/search-results/filters/CurrentFilterDisplay.vue.d.ts +6 -0
- package/dist/es/components/search-results/filters/CurrentFilters.vue.d.ts +36 -0
- package/dist/es/components/search-results/filters/FiltersTopDropdown.vue.d.ts +5 -0
- package/dist/es/components/search-results/filters/MobileFilterSidebar.vue.d.ts +10 -0
- package/dist/es/components/search-results/filters/SearchResultsFilters.vue.d.ts +7 -0
- package/dist/es/components/search-results/filters/__tests__/CurrentFilterDisplay.vue.spec.d.ts +1 -0
- package/dist/es/components/search-results/filters/__tests__/CurrentFilters.vue.spec.d.ts +1 -0
- package/dist/es/components/search-results/filters/facets/FacetDisplay.vue.d.ts +20 -0
- package/dist/es/components/search-results/filters/facets/FacetList.vue.d.ts +13 -0
- package/dist/es/components/search-results/filters/facets/Facets.vue.d.ts +31 -0
- package/dist/es/components/search-results/filters/facets/HierarchyFacet.vue.d.ts +21 -0
- package/dist/es/components/search-results/filters/facets/HierarchyFacetLevel.vue.d.ts +12 -0
- package/dist/es/components/search-results/filters/facets/StatsFacet.vue.d.ts +23 -0
- package/dist/es/components/search-results/filters/facets/TermFacet.vue.d.ts +18 -0
- package/dist/es/components/search-results/filters/facets/__tests__/FacetDisplay.vue.spec.d.ts +1 -0
- package/dist/es/components/search-results/filters/facets/__tests__/FacetList.vue.spec.d.ts +1 -0
- package/dist/es/components/search-results/filters/facets/__tests__/HierarchyFacet.vue.spec.d.ts +1 -0
- package/dist/es/components/search-results/filters/facets/__tests__/StatsFacet.vue.spec.d.ts +1 -0
- package/dist/es/components/search-results/filters/facets/__tests__/TermFacet.vue.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/SearchResultsLayoutSelection.vue.d.ts +8 -0
- package/dist/es/components/search-results/products/SearchResultsMobileToggle.vue.d.ts +8 -0
- package/dist/es/components/search-results/products/SearchResultsProducts.vue.d.ts +29 -0
- package/dist/es/components/search-results/products/SearchResultsSummary.vue.d.ts +8 -0
- package/dist/es/components/search-results/products/SearchResultsToolbar.vue.d.ts +21 -0
- package/dist/es/components/search-results/products/__tests__/SearchResultsLayoutSelection.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/__tests__/SearchResultsProducts.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/__tests__/SearchResultsToolbar.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts +18 -0
- package/dist/es/components/search-results/products/pagination/SearchResultsPageSize.vue.d.ts +19 -0
- package/dist/es/components/search-results/products/pagination/__tests__/SearchResultsPageSelect.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/pagination/__tests__/SearchResultsPageSize.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +33 -0
- package/dist/es/components/search-results/products/product-card/__tests__/SearchResultsBadgeWrapper.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/__tests__/SearchResultsProductCard.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/badges/CustomBadge.vue.d.ts +7 -0
- package/dist/es/components/search-results/products/product-card/badges/ImageBadge.vue.d.ts +8 -0
- package/dist/es/components/search-results/products/product-card/badges/SearchResultsBadgeWrapper.vue.d.ts +9 -0
- package/dist/es/components/search-results/products/product-card/badges/TextBadge.vue.d.ts +7 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductAddToCart.vue.d.ts +12 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductCardElement.vue.d.ts +16 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductCustom.vue.d.ts +10 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductDescription.vue.d.ts +10 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductImage.vue.d.ts +14 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductPrice.vue.d.ts +10 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductRating.vue.d.ts +13 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductRegularPrice.vue.d.ts +10 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductTitle.vue.d.ts +11 -0
- package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductAddToCart.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustom.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustomHtmlElement.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductDescription.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductImage.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductPrice.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductRating.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/__tests__/SearchResultsProductTitle.spec.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/custom/SearchResultsProductCustomHtmlElement.vue.d.ts +9 -0
- package/dist/es/components/search-results/products/similar-queries/SearchResultsSimilarQueries.vue.d.ts +19 -0
- package/dist/es/components/search-results/products/similar-queries/SimilarQueryText.vue.d.ts +10 -0
- package/dist/es/components/search-results/products/sort/SearchResultsSort.vue.d.ts +23 -0
- package/dist/es/components/search-results/products/sort/__tests__/SearchResultsSort.spec.d.ts +1 -0
- package/dist/es/constants/development/searchBoxDev.example.const.d.ts +27 -0
- package/dist/es/constants/development/searchResultsDev.example.const.d.ts +91 -0
- package/dist/es/constants/global.const.d.ts +13 -0
- package/dist/es/constants/mockData..const.d.ts +4 -0
- package/dist/es/constants/queryParams.const.d.ts +25 -0
- package/dist/es/constants/searchBox.const.d.ts +48 -0
- package/dist/es/constants/searchResults.const.d.ts +105 -0
- package/dist/es/index-iife.d.ts +21 -0
- package/dist/es/index.d.ts +11 -0
- package/dist/es/index.min.js +33179 -0
- package/dist/es/main.d.ts +1 -0
- package/dist/es/store/__tests__/history.spec.d.ts +1 -0
- package/dist/es/store/__tests__/params.spec.d.ts +1 -0
- package/dist/es/store/__tests__/searchBox.spec.d.ts +1 -0
- package/dist/es/store/__tests__/searchResult.spec.d.ts +1 -0
- package/dist/es/store/index.d.ts +2 -0
- package/dist/es/store/modules/history.d.ts +13 -0
- package/dist/es/store/modules/options.d.ts +16 -0
- package/dist/es/store/modules/params.d.ts +55 -0
- package/dist/es/store/modules/searchBox.d.ts +65 -0
- package/dist/es/store/modules/searchResult.d.ts +47 -0
- package/dist/es/store/modules/tracking.d.ts +17 -0
- package/dist/es/store/types/State.d.ts +38 -0
- package/dist/es/types/AnalyticsOptions.d.ts +7 -0
- package/dist/es/types/DocumentElement.d.ts +68 -0
- package/dist/es/types/General.d.ts +12 -0
- package/dist/es/types/search-box/Common.d.ts +44 -0
- package/dist/es/types/search-box/SearchBoxHistory.d.ts +6 -0
- package/dist/es/types/search-box/SearchBoxOptions.d.ts +30 -0
- package/dist/es/types/search-box/SearchBoxPanel.d.ts +28 -0
- package/dist/es/types/search-results/BadgeOptions.d.ts +42 -0
- package/dist/es/types/search-results/FacetAction.d.ts +16 -0
- package/dist/es/types/search-results/Filters.d.ts +9 -0
- package/dist/es/types/search-results/PaginationOptions.d.ts +19 -0
- package/dist/es/types/search-results/QueryParams.d.ts +4 -0
- package/dist/es/types/search-results/ResultsLayout.d.ts +5 -0
- package/dist/es/types/search-results/SearchResultsAdditionalPanelOptions.d.ts +15 -0
- package/dist/es/types/search-results/SearchResultsOptions.d.ts +109 -0
- package/dist/es/types/search-results/SearchResultsPagination.d.ts +20 -0
- package/dist/es/types/search-results/SearchResultsProductCardOptions.d.ts +20 -0
- package/dist/es/types/search-results/SearchResultsSort.d.ts +11 -0
- package/dist/es/utils/__tests__/debounce.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/event.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/filter.toggle.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/filter.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/history.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/link.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/params.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/picker.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/price.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/query.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/string.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/suggestion.utils.spec.d.ts +1 -0
- package/dist/es/utils/__tests__/tracking.utils.spec.d.ts +1 -0
- package/dist/es/utils/debounce.utils.d.ts +1 -0
- package/dist/es/utils/document.utils.d.ts +1 -0
- package/dist/es/utils/event.utils.d.ts +2 -0
- package/dist/es/utils/filter.toggle.utils.d.ts +23 -0
- package/dist/es/utils/filter.utils.d.ts +10 -0
- package/dist/es/utils/history.utils.d.ts +2 -0
- package/dist/es/utils/link.utils.d.ts +4 -0
- package/dist/es/utils/merger.utils.d.ts +1 -0
- package/dist/es/utils/params.utils.d.ts +9 -0
- package/dist/es/utils/picker.utils.d.ts +5 -0
- package/dist/es/utils/price.utils.d.ts +2 -0
- package/dist/es/utils/query.utils.d.ts +4 -0
- package/dist/es/utils/scroll.utils.d.ts +2 -0
- package/dist/es/utils/string.utils.d.ts +7 -0
- package/dist/es/utils/suggestion.utils.d.ts +3 -0
- package/dist/es/utils/tracking.utils.d.ts +5 -0
- package/dist/iife/SearchBoxEntry.vue.d.ts +6 -0
- package/dist/iife/SearchResultsEntry.vue.d.ts +6 -0
- package/dist/iife/components/common/Spinner.vue.d.ts +3 -0
- package/dist/iife/components/search-box/SearchBox.vue.d.ts +60 -0
- package/dist/iife/components/search-box/SearchBoxInput.vue.d.ts +21 -0
- package/dist/iife/components/search-box/SearchBoxMainPanel.vue.d.ts +33 -0
- package/dist/iife/components/search-box/SearchBoxMoreResults.vue.d.ts +11 -0
- package/dist/iife/components/search-box/__tests__/SearchBox.spec.d.ts +1 -0
- package/dist/iife/components/search-box/__tests__/SearchBoxInput.spec.d.ts +1 -0
- package/dist/iife/components/search-box/__tests__/SearchBoxMainPanel.spec.d.ts +1 -0
- package/dist/iife/components/search-box/history/SearchBoxHistoryItem.vue.d.ts +7 -0
- package/dist/iife/components/search-box/history/SearchBoxHistoryPanel.vue.d.ts +23 -0
- package/dist/iife/components/search-box/history/__tests__/SearchBoxHistoryPanel.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-box/products/SearchBoxProduct.vue.d.ts +25 -0
- package/dist/iife/components/search-box/products/SearchBoxProducts.vue.d.ts +15 -0
- package/dist/iife/components/search-box/products/SearchBoxProductsWrapper.vue.d.ts +26 -0
- package/dist/iife/components/search-box/products/__tests__/SearchBoxProduct.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-box/products/elements/SearchBoxProductCustom.vue.d.ts +10 -0
- package/dist/iife/components/search-box/products/elements/SearchBoxProductDescription.vue.d.ts +9 -0
- package/dist/iife/components/search-box/products/elements/SearchBoxProductElement.vue.d.ts +11 -0
- package/dist/iife/components/search-box/products/elements/SearchBoxProductImage.vue.d.ts +14 -0
- package/dist/iife/components/search-box/products/elements/SearchBoxProductPrice.vue.d.ts +10 -0
- package/dist/iife/components/search-box/products/elements/SearchBoxProductRegularPrice.vue.d.ts +10 -0
- package/dist/iife/components/search-box/products/elements/SearchBoxProductTitle.vue.d.ts +9 -0
- package/dist/iife/components/search-box/products/elements/__tests__/SearchBoxProductCustom.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-box/products/elements/__tests__/SearchBoxProductElement.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-box/products/elements/__tests__/SearchBoxProductImage.spec.d.ts +1 -0
- package/dist/iife/components/search-box/products/elements/__tests__/SearchBoxProductPrice.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-box/products/elements/__tests__/SearchBoxProductTitle.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-box/products/elements/custom/SearchBoxProductCustomHtml.vue.d.ts +9 -0
- package/dist/iife/components/search-box/suggestions/SearchBoxSuggestion.vue.d.ts +10 -0
- package/dist/iife/components/search-box/suggestions/SearchBoxSuggestions.vue.d.ts +22 -0
- package/dist/iife/components/search-box/suggestions/SearchBoxSuggestionsWrapper.vue.d.ts +28 -0
- package/dist/iife/components/search-box/suggestions/__tests__/Suggestions.spec.d.ts +1 -0
- package/dist/iife/components/search-results/SearchResults.vue.d.ts +48 -0
- package/dist/iife/components/search-results/SearchResultsBreadcrumbs.vue.d.ts +7 -0
- package/dist/iife/components/search-results/SearchResultsDidYouMean.vue.d.ts +19 -0
- package/dist/iife/components/search-results/__tests__/SearchResults.spec.d.ts +1 -0
- package/dist/iife/components/search-results/__tests__/SearchResultsBreadcrumbs.spec.d.ts +1 -0
- package/dist/iife/components/search-results/additional-panels/AdditionalPanel.vue.d.ts +21 -0
- package/dist/iife/components/search-results/additional-panels/AdditionalPanels.vue.d.ts +11 -0
- package/dist/iife/components/search-results/additional-panels/__tests__/AdditionalPanels.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-results/filters/CurrentFilterDisplay.vue.d.ts +6 -0
- package/dist/iife/components/search-results/filters/CurrentFilters.vue.d.ts +36 -0
- package/dist/iife/components/search-results/filters/FiltersTopDropdown.vue.d.ts +5 -0
- package/dist/iife/components/search-results/filters/MobileFilterSidebar.vue.d.ts +10 -0
- package/dist/iife/components/search-results/filters/SearchResultsFilters.vue.d.ts +7 -0
- package/dist/iife/components/search-results/filters/__tests__/CurrentFilterDisplay.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-results/filters/__tests__/CurrentFilters.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-results/filters/facets/FacetDisplay.vue.d.ts +20 -0
- package/dist/iife/components/search-results/filters/facets/FacetList.vue.d.ts +13 -0
- package/dist/iife/components/search-results/filters/facets/Facets.vue.d.ts +31 -0
- package/dist/iife/components/search-results/filters/facets/HierarchyFacet.vue.d.ts +21 -0
- package/dist/iife/components/search-results/filters/facets/HierarchyFacetLevel.vue.d.ts +12 -0
- package/dist/iife/components/search-results/filters/facets/StatsFacet.vue.d.ts +23 -0
- package/dist/iife/components/search-results/filters/facets/TermFacet.vue.d.ts +18 -0
- package/dist/iife/components/search-results/filters/facets/__tests__/FacetDisplay.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-results/filters/facets/__tests__/FacetList.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-results/filters/facets/__tests__/HierarchyFacet.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-results/filters/facets/__tests__/StatsFacet.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-results/filters/facets/__tests__/TermFacet.vue.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/SearchResultsLayoutSelection.vue.d.ts +8 -0
- package/dist/iife/components/search-results/products/SearchResultsMobileToggle.vue.d.ts +8 -0
- package/dist/iife/components/search-results/products/SearchResultsProducts.vue.d.ts +29 -0
- package/dist/iife/components/search-results/products/SearchResultsSummary.vue.d.ts +8 -0
- package/dist/iife/components/search-results/products/SearchResultsToolbar.vue.d.ts +21 -0
- package/dist/iife/components/search-results/products/__tests__/SearchResultsLayoutSelection.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/__tests__/SearchResultsProducts.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/__tests__/SearchResultsToolbar.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts +18 -0
- package/dist/iife/components/search-results/products/pagination/SearchResultsPageSize.vue.d.ts +19 -0
- package/dist/iife/components/search-results/products/pagination/__tests__/SearchResultsPageSelect.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/pagination/__tests__/SearchResultsPageSize.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +33 -0
- package/dist/iife/components/search-results/products/product-card/__tests__/SearchResultsBadgeWrapper.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/__tests__/SearchResultsProductCard.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/badges/CustomBadge.vue.d.ts +7 -0
- package/dist/iife/components/search-results/products/product-card/badges/ImageBadge.vue.d.ts +8 -0
- package/dist/iife/components/search-results/products/product-card/badges/SearchResultsBadgeWrapper.vue.d.ts +9 -0
- package/dist/iife/components/search-results/products/product-card/badges/TextBadge.vue.d.ts +7 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductAddToCart.vue.d.ts +12 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductCardElement.vue.d.ts +16 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductCustom.vue.d.ts +10 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductDescription.vue.d.ts +10 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductImage.vue.d.ts +14 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductPrice.vue.d.ts +10 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductRating.vue.d.ts +13 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductRegularPrice.vue.d.ts +10 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductTitle.vue.d.ts +11 -0
- package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductAddToCart.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustom.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductCustomHtmlElement.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductDescription.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductImage.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductPrice.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductRating.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/__tests__/SearchResultsProductTitle.spec.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/custom/SearchResultsProductCustomHtmlElement.vue.d.ts +9 -0
- package/dist/iife/components/search-results/products/similar-queries/SearchResultsSimilarQueries.vue.d.ts +19 -0
- package/dist/iife/components/search-results/products/similar-queries/SimilarQueryText.vue.d.ts +10 -0
- package/dist/iife/components/search-results/products/sort/SearchResultsSort.vue.d.ts +23 -0
- package/dist/iife/components/search-results/products/sort/__tests__/SearchResultsSort.spec.d.ts +1 -0
- package/dist/iife/constants/development/searchBoxDev.example.const.d.ts +27 -0
- package/dist/iife/constants/development/searchResultsDev.example.const.d.ts +91 -0
- package/dist/iife/constants/global.const.d.ts +13 -0
- package/dist/iife/constants/mockData..const.d.ts +4 -0
- package/dist/iife/constants/queryParams.const.d.ts +25 -0
- package/dist/iife/constants/searchBox.const.d.ts +48 -0
- package/dist/iife/constants/searchResults.const.d.ts +105 -0
- package/dist/iife/index-iife.d.ts +21 -0
- package/dist/iife/index.d.ts +11 -0
- package/dist/iife/index.min.js +1 -0
- package/dist/iife/main.d.ts +1 -0
- package/dist/iife/store/__tests__/history.spec.d.ts +1 -0
- package/dist/iife/store/__tests__/params.spec.d.ts +1 -0
- package/dist/iife/store/__tests__/searchBox.spec.d.ts +1 -0
- package/dist/iife/store/__tests__/searchResult.spec.d.ts +1 -0
- package/dist/iife/store/index.d.ts +2 -0
- package/dist/iife/store/modules/history.d.ts +13 -0
- package/dist/iife/store/modules/options.d.ts +16 -0
- package/dist/iife/store/modules/params.d.ts +55 -0
- package/dist/iife/store/modules/searchBox.d.ts +65 -0
- package/dist/iife/store/modules/searchResult.d.ts +47 -0
- package/dist/iife/store/modules/tracking.d.ts +17 -0
- package/dist/iife/store/types/State.d.ts +38 -0
- package/dist/iife/types/AnalyticsOptions.d.ts +7 -0
- package/dist/iife/types/DocumentElement.d.ts +68 -0
- package/dist/iife/types/General.d.ts +12 -0
- package/dist/iife/types/search-box/Common.d.ts +44 -0
- package/dist/iife/types/search-box/SearchBoxHistory.d.ts +6 -0
- package/dist/iife/types/search-box/SearchBoxOptions.d.ts +30 -0
- package/dist/iife/types/search-box/SearchBoxPanel.d.ts +28 -0
- package/dist/iife/types/search-results/BadgeOptions.d.ts +42 -0
- package/dist/iife/types/search-results/FacetAction.d.ts +16 -0
- package/dist/iife/types/search-results/Filters.d.ts +9 -0
- package/dist/iife/types/search-results/PaginationOptions.d.ts +19 -0
- package/dist/iife/types/search-results/QueryParams.d.ts +4 -0
- package/dist/iife/types/search-results/ResultsLayout.d.ts +5 -0
- package/dist/iife/types/search-results/SearchResultsAdditionalPanelOptions.d.ts +15 -0
- package/dist/iife/types/search-results/SearchResultsOptions.d.ts +109 -0
- package/dist/iife/types/search-results/SearchResultsPagination.d.ts +20 -0
- package/dist/iife/types/search-results/SearchResultsProductCardOptions.d.ts +20 -0
- package/dist/iife/types/search-results/SearchResultsSort.d.ts +11 -0
- package/dist/iife/utils/__tests__/debounce.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/event.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/filter.toggle.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/filter.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/history.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/link.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/params.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/picker.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/price.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/query.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/string.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/suggestion.utils.spec.d.ts +1 -0
- package/dist/iife/utils/__tests__/tracking.utils.spec.d.ts +1 -0
- package/dist/iife/utils/debounce.utils.d.ts +1 -0
- package/dist/iife/utils/document.utils.d.ts +1 -0
- package/dist/iife/utils/event.utils.d.ts +2 -0
- package/dist/iife/utils/filter.toggle.utils.d.ts +23 -0
- package/dist/iife/utils/filter.utils.d.ts +10 -0
- package/dist/iife/utils/history.utils.d.ts +2 -0
- package/dist/iife/utils/link.utils.d.ts +4 -0
- package/dist/iife/utils/merger.utils.d.ts +1 -0
- package/dist/iife/utils/params.utils.d.ts +9 -0
- package/dist/iife/utils/picker.utils.d.ts +5 -0
- package/dist/iife/utils/price.utils.d.ts +2 -0
- package/dist/iife/utils/query.utils.d.ts +4 -0
- package/dist/iife/utils/scroll.utils.d.ts +2 -0
- package/dist/iife/utils/string.utils.d.ts +7 -0
- package/dist/iife/utils/suggestion.utils.d.ts +3 -0
- package/dist/iife/utils/tracking.utils.d.ts +5 -0
- package/dist/style.css +1 -0
- package/dist/style.js +1 -0
- package/jest.config.js +22 -0
- package/package.json +72 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VuexModule } from "vuex-module-decorators";
|
|
2
|
+
export default class HistoryModule extends VuexModule {
|
|
3
|
+
items: string[];
|
|
4
|
+
get count(): number;
|
|
5
|
+
save(items: string[]): void;
|
|
6
|
+
add({ item }: {
|
|
7
|
+
item?: string;
|
|
8
|
+
}): string[];
|
|
9
|
+
remove({ item }: {
|
|
10
|
+
item: string;
|
|
11
|
+
}): string[];
|
|
12
|
+
clear(): string[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SearchBoxOptions } from "@/types/search-box/SearchBoxOptions";
|
|
2
|
+
import { SearchResultsOptions } from "@/types/search-results/SearchResultsOptions";
|
|
3
|
+
import { Options } from "@getlupa/client-sdk/Types";
|
|
4
|
+
import { VuexModule } from "vuex-module-decorators";
|
|
5
|
+
export default class OptionsModule extends VuexModule {
|
|
6
|
+
searchBoxOptions: SearchBoxOptions;
|
|
7
|
+
searchResultOptions: SearchResultsOptions;
|
|
8
|
+
get envOptions(): Options;
|
|
9
|
+
get classMap(): Record<string, string>;
|
|
10
|
+
setSearchBoxOptions({ options }: {
|
|
11
|
+
options: SearchBoxOptions;
|
|
12
|
+
}): void;
|
|
13
|
+
setSearchResultOptions({ options }: {
|
|
14
|
+
options: SearchResultsOptions;
|
|
15
|
+
}): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { InputSuggestionFacet } from "@/types/search-box/Common";
|
|
2
|
+
import { QueryParams } from "@/types/search-results/QueryParams";
|
|
3
|
+
import { FilterGroup } from "@getlupa/client-sdk/Types";
|
|
4
|
+
import { VuexModule } from "vuex-module-decorators";
|
|
5
|
+
export default class ParamsModule extends VuexModule {
|
|
6
|
+
params: QueryParams;
|
|
7
|
+
defaultLimit: number;
|
|
8
|
+
searchResultsLink: string;
|
|
9
|
+
searchString: string;
|
|
10
|
+
get query(): string;
|
|
11
|
+
get page(): number;
|
|
12
|
+
get limit(): number;
|
|
13
|
+
get sort(): string | string[];
|
|
14
|
+
get filters(): FilterGroup;
|
|
15
|
+
save({ params, defaultLimit, searchResultsLink, searchString, }: {
|
|
16
|
+
params?: QueryParams;
|
|
17
|
+
defaultLimit?: number;
|
|
18
|
+
searchResultsLink?: string;
|
|
19
|
+
searchString?: string;
|
|
20
|
+
}): void;
|
|
21
|
+
add(params: QueryParams): {
|
|
22
|
+
params: QueryParams;
|
|
23
|
+
};
|
|
24
|
+
removeAllFilters(): {
|
|
25
|
+
params: QueryParams;
|
|
26
|
+
searchString: string;
|
|
27
|
+
};
|
|
28
|
+
removeParams({ paramsToRemove }: {
|
|
29
|
+
paramsToRemove?: "all" | string[];
|
|
30
|
+
}): {
|
|
31
|
+
params: QueryParams;
|
|
32
|
+
searchString: string;
|
|
33
|
+
};
|
|
34
|
+
goToResults({ searchText, facet, }: {
|
|
35
|
+
searchText: string;
|
|
36
|
+
facet?: InputSuggestionFacet;
|
|
37
|
+
}): void;
|
|
38
|
+
appendParams({ params, paramsToRemove, encode, }: {
|
|
39
|
+
params: {
|
|
40
|
+
name: string;
|
|
41
|
+
value: string;
|
|
42
|
+
}[];
|
|
43
|
+
paramsToRemove?: "all" | string[];
|
|
44
|
+
encode?: boolean;
|
|
45
|
+
}): {
|
|
46
|
+
params: QueryParams;
|
|
47
|
+
searchString?: string;
|
|
48
|
+
};
|
|
49
|
+
setDefaultLimit(defaultLimit: number): {
|
|
50
|
+
defaultLimit: number;
|
|
51
|
+
};
|
|
52
|
+
setSearchResultsLink(searchResultsLink: string): {
|
|
53
|
+
searchResultsLink: string;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { SearchBoxOptions } from "@/types/search-box/SearchBoxOptions";
|
|
2
|
+
import { Options, PublicQuery, SearchQueryResult, Suggestion } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { VuexModule } from "vuex-module-decorators";
|
|
4
|
+
import { DisplaySuggestion, HighlightedDocInfo } from "@/types/search-box/Common";
|
|
5
|
+
import { SearchBoxPanel } from "@/types/search-box/SearchBoxPanel";
|
|
6
|
+
export default class SearchBoxModule extends VuexModule {
|
|
7
|
+
options: SearchBoxOptions;
|
|
8
|
+
docResults: Record<string, SearchQueryResult>;
|
|
9
|
+
suggestionResults: Record<string, DisplaySuggestion[]>;
|
|
10
|
+
highlightedIndex: number;
|
|
11
|
+
inputValue: string;
|
|
12
|
+
saveOptions({ options }: {
|
|
13
|
+
options: SearchBoxOptions;
|
|
14
|
+
}): void;
|
|
15
|
+
saveInputValue({ input }: {
|
|
16
|
+
input: string;
|
|
17
|
+
}): void;
|
|
18
|
+
get resultsVisible(): boolean;
|
|
19
|
+
get panelItemCounts(): {
|
|
20
|
+
queryKey: string;
|
|
21
|
+
count: number;
|
|
22
|
+
panel: SearchBoxPanel;
|
|
23
|
+
}[];
|
|
24
|
+
get totalCount(): number;
|
|
25
|
+
get highlightedItem(): {
|
|
26
|
+
queryKey: string;
|
|
27
|
+
index: number;
|
|
28
|
+
panel: SearchBoxPanel;
|
|
29
|
+
} | undefined;
|
|
30
|
+
get highlightedDocument(): HighlightedDocInfo;
|
|
31
|
+
saveSuggestions({ queryKey, suggestions, inputValue, }: {
|
|
32
|
+
queryKey: string;
|
|
33
|
+
suggestions?: Suggestion[];
|
|
34
|
+
inputValue?: string;
|
|
35
|
+
}): void;
|
|
36
|
+
saveResults({ queryKey, result, }: {
|
|
37
|
+
queryKey: string;
|
|
38
|
+
result?: SearchQueryResult;
|
|
39
|
+
}): void;
|
|
40
|
+
saveHighlight({ highlightIndex }: {
|
|
41
|
+
highlightIndex: number;
|
|
42
|
+
}): void;
|
|
43
|
+
querySuggestions({ queryKey, publicQuery, options, }: {
|
|
44
|
+
queryKey: string;
|
|
45
|
+
publicQuery: PublicQuery;
|
|
46
|
+
options?: Options | undefined;
|
|
47
|
+
}): Promise<{
|
|
48
|
+
queryKey: string;
|
|
49
|
+
suggestions?: Suggestion[];
|
|
50
|
+
inputValue?: string;
|
|
51
|
+
}>;
|
|
52
|
+
queryDocuments({ queryKey, publicQuery, options, }: {
|
|
53
|
+
queryKey: string;
|
|
54
|
+
publicQuery: PublicQuery;
|
|
55
|
+
options?: Options | undefined;
|
|
56
|
+
}): Promise<{
|
|
57
|
+
queryKey: string;
|
|
58
|
+
result?: SearchQueryResult;
|
|
59
|
+
}>;
|
|
60
|
+
highlightChange({ action }: {
|
|
61
|
+
action: "down" | "up" | "clear";
|
|
62
|
+
}): {
|
|
63
|
+
highlightIndex: number;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ResultsLayout } from "@/types/search-results/ResultsLayout";
|
|
2
|
+
import { ProductGrid } from "@/types/search-results/SearchResultsOptions";
|
|
3
|
+
import { FacetResult, FilterGroup, SearchQueryResult } from "@getlupa/client-sdk/Types";
|
|
4
|
+
import { VuexModule } from "vuex-module-decorators";
|
|
5
|
+
export default class SearchResultModule extends VuexModule {
|
|
6
|
+
searchResult: SearchQueryResult;
|
|
7
|
+
columnCount: number;
|
|
8
|
+
addToCartAmount: number;
|
|
9
|
+
layout: ResultsLayout;
|
|
10
|
+
loading: boolean;
|
|
11
|
+
isMobileSidebarVisible: boolean;
|
|
12
|
+
get facets(): FacetResult[] | undefined;
|
|
13
|
+
get currentFilters(): FilterGroup | undefined;
|
|
14
|
+
get filters(): FilterGroup;
|
|
15
|
+
get currentQueryText(): string;
|
|
16
|
+
get totalItems(): number;
|
|
17
|
+
get hasResults(): boolean;
|
|
18
|
+
get hasAnyFilter(): boolean;
|
|
19
|
+
get itemRange(): number[];
|
|
20
|
+
setSidebarVisibility({ visible }: {
|
|
21
|
+
visible: boolean;
|
|
22
|
+
}): void;
|
|
23
|
+
save({ searchResult, columnCount, addToCartAmount, layout, }: {
|
|
24
|
+
searchResult?: SearchQueryResult;
|
|
25
|
+
columnCount?: number;
|
|
26
|
+
addToCartAmount?: number;
|
|
27
|
+
layout?: ResultsLayout;
|
|
28
|
+
}): void;
|
|
29
|
+
load(loading: boolean): void;
|
|
30
|
+
add(searchResult: SearchQueryResult): {
|
|
31
|
+
searchResult: SearchQueryResult;
|
|
32
|
+
pageSize: number;
|
|
33
|
+
};
|
|
34
|
+
setColumnCount({ width, grid }: {
|
|
35
|
+
width: number;
|
|
36
|
+
grid: ProductGrid;
|
|
37
|
+
}): {
|
|
38
|
+
columnCount: number;
|
|
39
|
+
};
|
|
40
|
+
setAddToCartAmount(addToCartAmount: number): {
|
|
41
|
+
addToCartAmount: number;
|
|
42
|
+
};
|
|
43
|
+
setLayout(layout: ResultsLayout): {
|
|
44
|
+
layout: ResultsLayout;
|
|
45
|
+
};
|
|
46
|
+
setLoading(loading: boolean): boolean;
|
|
47
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TrackableEventData } from "@/types/search-box/Common";
|
|
2
|
+
import { PublicQuery, SearchQueryResult } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { VuexModule } from "vuex-module-decorators";
|
|
4
|
+
export default class TrackingModule extends VuexModule {
|
|
5
|
+
trackSearch({ queryKey, query, }: {
|
|
6
|
+
queryKey: string;
|
|
7
|
+
query: PublicQuery;
|
|
8
|
+
}): void;
|
|
9
|
+
trackResults({ queryKey, results, }: {
|
|
10
|
+
queryKey: string;
|
|
11
|
+
results: SearchQueryResult;
|
|
12
|
+
}): void;
|
|
13
|
+
track({ queryKey, data, }: {
|
|
14
|
+
queryKey: string;
|
|
15
|
+
data: TrackableEventData;
|
|
16
|
+
}): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { SearchBoxOptions } from "@/types/search-box/SearchBoxOptions";
|
|
2
|
+
import { QueryParams } from "@/types/search-results/QueryParams";
|
|
3
|
+
import { SearchBoxPanelOptions } from "@/types/search-box/SearchBoxOptions";
|
|
4
|
+
import { SearchQueryResult, Suggestion } from "@getlupa/client-sdk/Types";
|
|
5
|
+
import { SearchResultsOptions } from "@/types/search-results/SearchResultsOptions";
|
|
6
|
+
import { ResultsLayout } from "@/types/search-results/ResultsLayout";
|
|
7
|
+
export declare type HistoryState = {
|
|
8
|
+
items: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare type SearchResultState = {
|
|
11
|
+
searchResult: SearchQueryResult;
|
|
12
|
+
columnCount: number;
|
|
13
|
+
addToCartAmount: number;
|
|
14
|
+
layout: ResultsLayout;
|
|
15
|
+
loading: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare type ParamsState = {
|
|
18
|
+
params: QueryParams;
|
|
19
|
+
defaultLimit: number;
|
|
20
|
+
};
|
|
21
|
+
export declare type SearchBoxState = {
|
|
22
|
+
docResults: Record<string, SearchQueryResult>;
|
|
23
|
+
suggestionResults: Record<string, Suggestion[]>;
|
|
24
|
+
options: SearchBoxPanelOptions;
|
|
25
|
+
highlightedIndex: number;
|
|
26
|
+
inputValue: string;
|
|
27
|
+
};
|
|
28
|
+
export declare type OptionsState = {
|
|
29
|
+
searchBoxOptions: SearchBoxOptions;
|
|
30
|
+
searchResultOptions: SearchResultsOptions;
|
|
31
|
+
};
|
|
32
|
+
export declare type RootState = {
|
|
33
|
+
history: HistoryState;
|
|
34
|
+
searchResult: SearchResultState;
|
|
35
|
+
params: ParamsState;
|
|
36
|
+
searchBox: SearchBoxState;
|
|
37
|
+
options: OptionsState;
|
|
38
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const PARENT_EVENT_NAME = "GetLupa";
|
|
2
|
+
export declare type AnalyticsEventType = "search" | "search_form_submit" | "autocomplete_keyword_click" | "autocomplete_product_click" | "zero_results" | "filters" | "add_to_cart";
|
|
3
|
+
export declare type AnalyticsOptions = {
|
|
4
|
+
type: "ua";
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
parentEventName: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
2
|
+
export declare enum DocumentElementType {
|
|
3
|
+
IMAGE = "image",
|
|
4
|
+
TITLE = "title",
|
|
5
|
+
CUSTOM = "custom",
|
|
6
|
+
DESCRIPTION = "description",
|
|
7
|
+
PRICE = "price",
|
|
8
|
+
REGULARPRICE = "regularPrice",
|
|
9
|
+
RATING = "rating",
|
|
10
|
+
ADDTOCART = "addToCart",
|
|
11
|
+
CUSTOM_HTML = "customHtml"
|
|
12
|
+
}
|
|
13
|
+
export declare type DocumentElementBase = {
|
|
14
|
+
type: DocumentElementType;
|
|
15
|
+
key: string;
|
|
16
|
+
display?: (document: Record<string, unknown>) => boolean;
|
|
17
|
+
isHtml?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare type ImageDocumentElement = DocumentElementBase & {
|
|
20
|
+
type: DocumentElementType.IMAGE;
|
|
21
|
+
placeholder: string;
|
|
22
|
+
baseUrl?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare type TitleDocumentElement = DocumentElementBase & {
|
|
25
|
+
type: DocumentElementType.TITLE;
|
|
26
|
+
maxLines: number;
|
|
27
|
+
link?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export declare type DescriptionDocumentElement = DocumentElementBase & {
|
|
30
|
+
type: DocumentElementType.DESCRIPTION;
|
|
31
|
+
maxLines: number;
|
|
32
|
+
};
|
|
33
|
+
export declare type CustomDocumentElement = DocumentElementBase & {
|
|
34
|
+
type: DocumentElementType.CUSTOM;
|
|
35
|
+
className: string;
|
|
36
|
+
};
|
|
37
|
+
export declare type PriceElement = DocumentElementBase & {
|
|
38
|
+
type: DocumentElementType.PRICE;
|
|
39
|
+
};
|
|
40
|
+
export declare type RegularPriceDocumentElement = DocumentElementBase & {
|
|
41
|
+
type: DocumentElementType.REGULARPRICE;
|
|
42
|
+
};
|
|
43
|
+
export declare type RatingElement = DocumentElementBase & {
|
|
44
|
+
type: DocumentElementType.RATING;
|
|
45
|
+
labels: RatingLabels;
|
|
46
|
+
links: RatingLinks;
|
|
47
|
+
totalKey: string;
|
|
48
|
+
getRatingPercentage?: (doc: Document) => number;
|
|
49
|
+
};
|
|
50
|
+
export declare type RatingLabels = {
|
|
51
|
+
numberOfRatings: string;
|
|
52
|
+
};
|
|
53
|
+
export declare type RatingLinks = {
|
|
54
|
+
ratingDetails?: string;
|
|
55
|
+
};
|
|
56
|
+
export declare type AddToCartElement = DocumentElementBase & {
|
|
57
|
+
type: DocumentElementType.ADDTOCART;
|
|
58
|
+
action: (document: Document, amount: number) => Promise<unknown> | undefined;
|
|
59
|
+
labels: {
|
|
60
|
+
addToCart: "Add to Cart";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export declare type CustomHtmlElement = DocumentElementBase & {
|
|
64
|
+
type: DocumentElementType.CUSTOM_HTML;
|
|
65
|
+
html: (document: Document) => string;
|
|
66
|
+
className: string;
|
|
67
|
+
};
|
|
68
|
+
export declare type DocumentElement = ImageDocumentElement | TitleDocumentElement | DescriptionDocumentElement | CustomDocumentElement | PriceElement | RegularPriceDocumentElement | RatingElement | AddToCartElement | CustomHtmlElement;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Environment } from "@getlupa/client-sdk/Types";
|
|
2
|
+
import { AnalyticsOptions } from "./AnalyticsOptions";
|
|
3
|
+
export declare type SdkOptions = {
|
|
4
|
+
environment: Environment;
|
|
5
|
+
};
|
|
6
|
+
export declare type TrackingOptions = {
|
|
7
|
+
trackBase?: boolean;
|
|
8
|
+
trackSession?: boolean;
|
|
9
|
+
trackUser?: boolean;
|
|
10
|
+
userKey?: string;
|
|
11
|
+
analytics?: AnalyticsOptions;
|
|
12
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Document, Suggestion, ReportableEventType } from "@getlupa/client-sdk/Types";
|
|
2
|
+
import { AnalyticsEventType } from "../AnalyticsOptions";
|
|
3
|
+
import { SearchBoxPanelType } from "./SearchBoxPanel";
|
|
4
|
+
export declare type FetchedData = {
|
|
5
|
+
items: Document[] | Suggestion[];
|
|
6
|
+
type: SearchBoxPanelType;
|
|
7
|
+
};
|
|
8
|
+
export declare type InputSuggestion = {
|
|
9
|
+
item: Suggestion;
|
|
10
|
+
queryKey: string;
|
|
11
|
+
override: boolean;
|
|
12
|
+
facet?: InputSuggestionFacet;
|
|
13
|
+
};
|
|
14
|
+
export declare type InputSuggestionFacet = {
|
|
15
|
+
label?: string;
|
|
16
|
+
count?: number;
|
|
17
|
+
key: string;
|
|
18
|
+
title: string;
|
|
19
|
+
};
|
|
20
|
+
export declare type DisplaySuggestion = {
|
|
21
|
+
suggestion: Suggestion;
|
|
22
|
+
display: string;
|
|
23
|
+
displayHighlight: string;
|
|
24
|
+
facet?: InputSuggestionFacet;
|
|
25
|
+
};
|
|
26
|
+
export declare type SelectedData = {
|
|
27
|
+
item: Document | InputSuggestion;
|
|
28
|
+
type: SearchBoxPanelType;
|
|
29
|
+
};
|
|
30
|
+
export declare type TrackableEventData = {
|
|
31
|
+
type?: ReportableEventType;
|
|
32
|
+
searchQuery?: string;
|
|
33
|
+
itemId?: string;
|
|
34
|
+
analytics?: {
|
|
35
|
+
type: AnalyticsEventType;
|
|
36
|
+
label: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare type HighlightedDocInfo = {
|
|
40
|
+
doc?: Document;
|
|
41
|
+
link?: string;
|
|
42
|
+
queryKey?: string;
|
|
43
|
+
id?: unknown;
|
|
44
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SdkOptions } from "../General";
|
|
2
|
+
import { SearchBoxHistory } from "./SearchBoxHistory";
|
|
3
|
+
import { SearchBoxPanel } from "./SearchBoxPanel";
|
|
4
|
+
export declare type SearchBoxOptions = SearchBoxPanelOptions & {
|
|
5
|
+
inputSelector: string;
|
|
6
|
+
searchTriggers?: string[];
|
|
7
|
+
};
|
|
8
|
+
export declare type SearchBoxOptionLabels = {
|
|
9
|
+
placeholder: string;
|
|
10
|
+
noResults: string;
|
|
11
|
+
moreResults: string;
|
|
12
|
+
currency: string;
|
|
13
|
+
defaultFacetLabel?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare type SearchBoxOptionLinks = {
|
|
16
|
+
searchResults: string;
|
|
17
|
+
};
|
|
18
|
+
export declare type SearchBoxInputOptions = {
|
|
19
|
+
minInputLength: number;
|
|
20
|
+
labels: SearchBoxOptionLabels;
|
|
21
|
+
links: SearchBoxOptionLinks;
|
|
22
|
+
inputAttributes?: Record<string, string>;
|
|
23
|
+
};
|
|
24
|
+
export declare type SearchBoxPanelOptions = SearchBoxInputOptions & {
|
|
25
|
+
history: SearchBoxHistory;
|
|
26
|
+
panels: SearchBoxPanel[];
|
|
27
|
+
options: SdkOptions;
|
|
28
|
+
debounce?: number;
|
|
29
|
+
showTotalCount?: boolean;
|
|
30
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DocumentElement } from "../DocumentElement";
|
|
2
|
+
export declare enum SearchBoxPanelType {
|
|
3
|
+
SUGGESTION = "suggestion",
|
|
4
|
+
DOCUMENT = "document"
|
|
5
|
+
}
|
|
6
|
+
export declare type SearchBoxPanelLinks = {
|
|
7
|
+
details: string;
|
|
8
|
+
};
|
|
9
|
+
export declare type SearchBoxPanelBase = {
|
|
10
|
+
type: SearchBoxPanelType;
|
|
11
|
+
queryKey: string;
|
|
12
|
+
limit: number;
|
|
13
|
+
};
|
|
14
|
+
export declare type DocumentSearchBoxPanel = SearchBoxPanelBase & {
|
|
15
|
+
type: SearchBoxPanelType.DOCUMENT;
|
|
16
|
+
links: SearchBoxPanelLinks;
|
|
17
|
+
elements: DocumentElement[];
|
|
18
|
+
titleKey?: string;
|
|
19
|
+
idKey?: string;
|
|
20
|
+
customClassName?: string;
|
|
21
|
+
searchBySuggestion?: boolean;
|
|
22
|
+
};
|
|
23
|
+
export declare type SuggestionSearchBoxPanel = SearchBoxPanelBase & {
|
|
24
|
+
type: SearchBoxPanelType.SUGGESTION;
|
|
25
|
+
highlight: boolean;
|
|
26
|
+
customClassName?: string;
|
|
27
|
+
};
|
|
28
|
+
export declare type SearchBoxPanel = DocumentSearchBoxPanel | SuggestionSearchBoxPanel;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
2
|
+
import { AnchorPosition } from "./SearchResultsProductCardOptions";
|
|
3
|
+
export declare type SearchResultBadgeType = "text" | "image" | "customHtml";
|
|
4
|
+
export declare type BadgeOptions = {
|
|
5
|
+
anchor: AnchorPosition;
|
|
6
|
+
elements: BadgeElement[];
|
|
7
|
+
product: Document;
|
|
8
|
+
};
|
|
9
|
+
export declare type SearchResultBadgeElement = {
|
|
10
|
+
type: SearchResultBadgeType;
|
|
11
|
+
key: string;
|
|
12
|
+
isHtml: boolean;
|
|
13
|
+
product: Document;
|
|
14
|
+
display?: (document: Record<string, unknown>) => boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare type BaseBadgeElement = SearchResultBadgeElement & {
|
|
17
|
+
value?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare type TextBadgeElement = BaseBadgeElement & {
|
|
20
|
+
type: "text";
|
|
21
|
+
prefix?: string;
|
|
22
|
+
maxItems?: number;
|
|
23
|
+
};
|
|
24
|
+
export declare type ImageBadgeElement = BaseBadgeElement & {
|
|
25
|
+
type: "image";
|
|
26
|
+
rootImageUrl?: string;
|
|
27
|
+
maxItems?: number;
|
|
28
|
+
};
|
|
29
|
+
export declare type CustomHtmlBadgeElement = BaseBadgeElement & {
|
|
30
|
+
type: "customHtml";
|
|
31
|
+
className: string;
|
|
32
|
+
html: (doc: Document) => string;
|
|
33
|
+
};
|
|
34
|
+
export declare type BadgeElement = BaseBadgeElement | TextBadgeElement;
|
|
35
|
+
export declare enum BadgeType {
|
|
36
|
+
DISCOUNTPERCENTAGE = "discountPercentage",
|
|
37
|
+
DISCOUNTAMOUNT = "discountAmount",
|
|
38
|
+
NEWITEM = "newItem",
|
|
39
|
+
TEXT = "text",
|
|
40
|
+
IMAGE = "image",
|
|
41
|
+
CUSTOM_HTML = "customHtml"
|
|
42
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare type TermFacetAction = {
|
|
2
|
+
type: "terms";
|
|
3
|
+
value: string;
|
|
4
|
+
key: string;
|
|
5
|
+
};
|
|
6
|
+
export declare type HierarchyFacetAction = {
|
|
7
|
+
type: "hierarchy";
|
|
8
|
+
value: string;
|
|
9
|
+
key: string;
|
|
10
|
+
};
|
|
11
|
+
export declare type RangeFacetAction = {
|
|
12
|
+
type: "range";
|
|
13
|
+
value: string[];
|
|
14
|
+
key: string;
|
|
15
|
+
};
|
|
16
|
+
export declare type FacetAction = TermFacetAction | RangeFacetAction | HierarchyFacetAction;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SearchResultsPaginationLabels } from "./SearchResultsPagination";
|
|
2
|
+
export declare type PaginationOptions = {
|
|
3
|
+
pageSize: PaginationPageSize;
|
|
4
|
+
pageSelect: PaginationPageSelect;
|
|
5
|
+
labels: SearchResultsPaginationLabels;
|
|
6
|
+
};
|
|
7
|
+
export declare type PaginationPageSize = {
|
|
8
|
+
sizes: number[];
|
|
9
|
+
selectedSize: number;
|
|
10
|
+
};
|
|
11
|
+
export declare type PaginationPageSelect = {
|
|
12
|
+
count: number;
|
|
13
|
+
selectedPage: number;
|
|
14
|
+
display: number;
|
|
15
|
+
};
|
|
16
|
+
export declare type PaginationDisplay = {
|
|
17
|
+
pageSize: boolean;
|
|
18
|
+
pageSelect: boolean;
|
|
19
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DocumentElement } from "../DocumentElement";
|
|
2
|
+
export declare type SearchResultsAdditionalPanelOptions = {
|
|
3
|
+
location: "top" | "bottom";
|
|
4
|
+
queryKey: string;
|
|
5
|
+
initialCountLimit: number;
|
|
6
|
+
totalCountLimit: number;
|
|
7
|
+
links?: {
|
|
8
|
+
details: string;
|
|
9
|
+
};
|
|
10
|
+
labels: {
|
|
11
|
+
showMore: string;
|
|
12
|
+
showLess: string;
|
|
13
|
+
};
|
|
14
|
+
elements: DocumentElement[];
|
|
15
|
+
};
|