@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
package/dist/iife/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DocumentElement } from "@/types/DocumentElement";
|
|
2
|
+
import { TrackableEventData } from "@/types/search-box/Common";
|
|
3
|
+
import { BadgeOptions } from "@/types/search-results/BadgeOptions";
|
|
4
|
+
import { ResultsLayout } from "@/types/search-results/ResultsLayout";
|
|
5
|
+
import { SearchResultsOptionLabels } from "@/types/search-results/SearchResultsOptions";
|
|
6
|
+
import { SearchResultsProductCardOptions } from "@/types/search-results/SearchResultsProductCardOptions";
|
|
7
|
+
import { Document, ReportableEventType } from "@getlupa/client-sdk/Types";
|
|
8
|
+
import Vue from "vue";
|
|
9
|
+
export default class SearchResultsProductCard extends Vue {
|
|
10
|
+
product: Document;
|
|
11
|
+
options: SearchResultsProductCardOptions;
|
|
12
|
+
isAdditionalPanel: boolean;
|
|
13
|
+
layout: ResultsLayout;
|
|
14
|
+
query: string;
|
|
15
|
+
trackClick: ({ queryKey, data, }: {
|
|
16
|
+
queryKey: string;
|
|
17
|
+
data: TrackableEventData;
|
|
18
|
+
}) => void;
|
|
19
|
+
get listLayoutClass(): string;
|
|
20
|
+
get badgesOptions(): BadgeOptions;
|
|
21
|
+
get imageElements(): DocumentElement[];
|
|
22
|
+
get detailElements(): DocumentElement[];
|
|
23
|
+
get labels(): SearchResultsOptionLabels;
|
|
24
|
+
get link(): string;
|
|
25
|
+
isInStock: boolean;
|
|
26
|
+
mounted(): void;
|
|
27
|
+
checkIfIsInStock(): Promise<void>;
|
|
28
|
+
get id(): string;
|
|
29
|
+
handleClick(): void;
|
|
30
|
+
handleProductEvent(item: {
|
|
31
|
+
type: ReportableEventType;
|
|
32
|
+
}): void;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ImageBadgeElement } from "@/types/search-results/BadgeOptions";
|
|
2
|
+
import Vue from "vue";
|
|
3
|
+
export default class ImageBadge extends Vue {
|
|
4
|
+
badge: ImageBadgeElement;
|
|
5
|
+
get badges(): string[];
|
|
6
|
+
getImageUrl(src: string): string;
|
|
7
|
+
get displayBadges(): string[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BadgeElement, BadgeOptions } from "@/types/search-results/BadgeOptions";
|
|
2
|
+
import { AnchorPosition } from "@/types/search-results/SearchResultsProductCardOptions";
|
|
3
|
+
import Vue from "vue";
|
|
4
|
+
export default class SearchResultsBadgeWrapper extends Vue {
|
|
5
|
+
options: BadgeOptions;
|
|
6
|
+
get anchorPosition(): AnchorPosition;
|
|
7
|
+
get badges(): BadgeElement[];
|
|
8
|
+
getBadgeComponent(type: string): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { AddToCartElement } from "@/types/DocumentElement";
|
|
4
|
+
export default class SearchResultsProductAddToCart extends Vue {
|
|
5
|
+
item: Document;
|
|
6
|
+
options: AddToCartElement;
|
|
7
|
+
inStock: boolean;
|
|
8
|
+
addToCartAmount: number;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
get label(): string;
|
|
11
|
+
handleClick(): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { SearchBoxOptionLabels } from "@/types/search-box/SearchBoxOptions";
|
|
4
|
+
import { DocumentElement } from "@/types/DocumentElement";
|
|
5
|
+
export default class SearchResultsProductCardElement extends Vue {
|
|
6
|
+
item: Document;
|
|
7
|
+
element: DocumentElement;
|
|
8
|
+
labels?: SearchBoxOptionLabels;
|
|
9
|
+
inStock?: boolean;
|
|
10
|
+
link: string;
|
|
11
|
+
get elementComponent(): string;
|
|
12
|
+
get displayElement(): boolean;
|
|
13
|
+
handleProductEvent(item: {
|
|
14
|
+
type: string;
|
|
15
|
+
}): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { CustomDocumentElement } from "@/types/DocumentElement";
|
|
4
|
+
export default class SearchResultsProductCustom extends Vue {
|
|
5
|
+
item: Document;
|
|
6
|
+
options: CustomDocumentElement;
|
|
7
|
+
get text(): string;
|
|
8
|
+
get className(): string;
|
|
9
|
+
get isHtml(): boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { DescriptionDocumentElement } from "@/types/DocumentElement";
|
|
4
|
+
export default class SearchResultsProductDescription extends Vue {
|
|
5
|
+
item: Document;
|
|
6
|
+
options: DescriptionDocumentElement;
|
|
7
|
+
get description(): unknown;
|
|
8
|
+
get isHtml(): boolean;
|
|
9
|
+
get maxLines(): number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { ImageDocumentElement } from "@/types/DocumentElement";
|
|
4
|
+
export default class SearchResultsProductImage extends Vue {
|
|
5
|
+
item: Document;
|
|
6
|
+
options: ImageDocumentElement;
|
|
7
|
+
get hasFullImageUrl(): boolean;
|
|
8
|
+
get rootImageUrl(): string | undefined;
|
|
9
|
+
get image(): string;
|
|
10
|
+
get imageUrl(): string;
|
|
11
|
+
get hasImage(): boolean;
|
|
12
|
+
get placeholder(): string;
|
|
13
|
+
replaceWithPlaceholder(e: Event): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { RegularPriceDocumentElement } from "@/types/DocumentElement";
|
|
4
|
+
import { SearchResultsOptionLabels } from "@/types/search-results/SearchResultsOptions";
|
|
5
|
+
export default class SearchResultsProductPrice extends Vue {
|
|
6
|
+
item: Document;
|
|
7
|
+
options: RegularPriceDocumentElement;
|
|
8
|
+
labels?: SearchResultsOptionLabels;
|
|
9
|
+
get price(): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { RatingElement } from "@/types/DocumentElement";
|
|
4
|
+
export default class SearchResultsProductRating extends Vue {
|
|
5
|
+
item: Document;
|
|
6
|
+
options: RatingElement;
|
|
7
|
+
get totalRatings(): string;
|
|
8
|
+
get currentRating(): number;
|
|
9
|
+
get baseStars(): string[];
|
|
10
|
+
get highlightedStars(): string[];
|
|
11
|
+
get ratingPercentage(): number;
|
|
12
|
+
get ratingLink(): string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { RegularPriceDocumentElement } from "@/types/DocumentElement";
|
|
4
|
+
import { SearchResultsOptionLabels } from "@/types/search-results/SearchResultsOptions";
|
|
5
|
+
export default class SearchResultsProductRegularPrice extends Vue {
|
|
6
|
+
item: Document;
|
|
7
|
+
options: RegularPriceDocumentElement;
|
|
8
|
+
labels: SearchResultsOptionLabels;
|
|
9
|
+
get price(): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { TitleDocumentElement } from "@/types/DocumentElement";
|
|
4
|
+
export default class SearchResultsProductTitle extends Vue {
|
|
5
|
+
item: Document;
|
|
6
|
+
options: TitleDocumentElement;
|
|
7
|
+
link: string;
|
|
8
|
+
get title(): unknown;
|
|
9
|
+
get isHtml(): boolean;
|
|
10
|
+
get maxLines(): number;
|
|
11
|
+
}
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { Document } from "@getlupa/client-sdk/Types";
|
|
3
|
+
import { CustomHtmlElement } from "@/types/DocumentElement";
|
|
4
|
+
export default class SearchResultsProductCustomHtmlElement extends Vue {
|
|
5
|
+
item: Document;
|
|
6
|
+
options: CustomHtmlElement;
|
|
7
|
+
get text(): string;
|
|
8
|
+
get className(): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { InputSuggestionFacet } from "@/types/search-box/Common";
|
|
2
|
+
import { QueryParams } from "@/types/search-results/QueryParams";
|
|
3
|
+
import { SearchResultsSimilarQueriesLabels } from "@/types/search-results/SearchResultsOptions";
|
|
4
|
+
import { SearchResultsProductCardOptions } from "@/types/search-results/SearchResultsProductCardOptions";
|
|
5
|
+
import { Document, SimilarQueryResult } from "@getlupa/client-sdk/Types";
|
|
6
|
+
import Vue from "vue";
|
|
7
|
+
export default class SearchResultsSimilarQueries extends Vue {
|
|
8
|
+
labels: SearchResultsSimilarQueriesLabels;
|
|
9
|
+
columnSize: string;
|
|
10
|
+
productCardOptions: SearchResultsProductCardOptions;
|
|
11
|
+
similarQueries: SimilarQueryResult[];
|
|
12
|
+
getProductKey(index: string, product: Document): string;
|
|
13
|
+
goToResults: ({ searchText, facet, }: {
|
|
14
|
+
searchText: string;
|
|
15
|
+
facet?: InputSuggestionFacet;
|
|
16
|
+
}) => {
|
|
17
|
+
params: QueryParams;
|
|
18
|
+
};
|
|
19
|
+
}
|
package/dist/iife/components/search-results/products/similar-queries/SimilarQueryText.vue.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SimilarQueryResult } from "@getlupa/client-sdk/Types";
|
|
2
|
+
import Vue from "vue";
|
|
3
|
+
export default class SimilarQueryText extends Vue {
|
|
4
|
+
similarQuery: SimilarQueryResult;
|
|
5
|
+
label: string;
|
|
6
|
+
searchText: string;
|
|
7
|
+
get count(): number;
|
|
8
|
+
insertValue(text: string, query: string): string[];
|
|
9
|
+
getStyle(text: string): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { QueryParams } from "@/types/search-results/QueryParams";
|
|
2
|
+
import { SearchResultsSortOptions, SortOptions } from "@/types/search-results/SearchResultsSort";
|
|
3
|
+
import Vue from "vue";
|
|
4
|
+
export default class SearchResultsSort extends Vue {
|
|
5
|
+
options: SortOptions;
|
|
6
|
+
selectedKey: string;
|
|
7
|
+
sort: string;
|
|
8
|
+
get sortItems(): SearchResultsSortOptions[];
|
|
9
|
+
get defaultSortValue(): SearchResultsSortOptions;
|
|
10
|
+
mounted(): void;
|
|
11
|
+
handleSortChange(): void;
|
|
12
|
+
setSortValue(): void;
|
|
13
|
+
appendParams: ({ params, paramsToRemove, }: {
|
|
14
|
+
params: {
|
|
15
|
+
name: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}[];
|
|
18
|
+
paramsToRemove?: string[];
|
|
19
|
+
}) => {
|
|
20
|
+
params: QueryParams;
|
|
21
|
+
};
|
|
22
|
+
handleSelect(): void;
|
|
23
|
+
}
|
package/dist/iife/components/search-results/products/sort/__tests__/SearchResultsSort.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SdkOptions } from "@/types/General";
|
|
2
|
+
import { SearchBoxPanel } from "@/types/search-box/SearchBoxPanel";
|
|
3
|
+
export declare const SEARCH_BOX_CONFIGURATION: {
|
|
4
|
+
options: SdkOptions;
|
|
5
|
+
minInputLength: number;
|
|
6
|
+
showTotalCount: boolean;
|
|
7
|
+
inputAttributes: {
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
debounce: number;
|
|
11
|
+
labels: {
|
|
12
|
+
placeholder: string;
|
|
13
|
+
noResults: string;
|
|
14
|
+
moreResults: string;
|
|
15
|
+
currency: string;
|
|
16
|
+
defaultFacetLabel: string;
|
|
17
|
+
};
|
|
18
|
+
links: {
|
|
19
|
+
searchResults: string;
|
|
20
|
+
};
|
|
21
|
+
panels: SearchBoxPanel[];
|
|
22
|
+
history: {
|
|
23
|
+
labels: {
|
|
24
|
+
clear: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { SdkOptions } from "@/types/General";
|
|
2
|
+
import { DocumentElement } from "@/types/DocumentElement";
|
|
3
|
+
import { SearchResultBadgeOptions } from "@/types/search-results/SearchResultsProductCardOptions";
|
|
4
|
+
import { SearchResultsSortOptions } from "@/types/search-results/SearchResultsSort";
|
|
5
|
+
export declare const SEARCH_RESULTS_CONFIGURATION: {
|
|
6
|
+
options: SdkOptions;
|
|
7
|
+
queryKey: string;
|
|
8
|
+
labels: {
|
|
9
|
+
pageSize: string;
|
|
10
|
+
sortBy: string;
|
|
11
|
+
itemCount: string;
|
|
12
|
+
currency: string;
|
|
13
|
+
showMore: string;
|
|
14
|
+
emptyResults: string;
|
|
15
|
+
mobileFilterButton: string;
|
|
16
|
+
htmlTitleTemplate: string;
|
|
17
|
+
noResultsSuggestion: string;
|
|
18
|
+
didYouMean: string;
|
|
19
|
+
similarQuery: string;
|
|
20
|
+
similarQueries: string;
|
|
21
|
+
};
|
|
22
|
+
grid: {
|
|
23
|
+
columns: {
|
|
24
|
+
xl: number;
|
|
25
|
+
l: number;
|
|
26
|
+
md: number;
|
|
27
|
+
sm: number;
|
|
28
|
+
xs: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
pagination: {
|
|
32
|
+
sizeSelection: {
|
|
33
|
+
position: {
|
|
34
|
+
top: boolean;
|
|
35
|
+
bottom: boolean;
|
|
36
|
+
};
|
|
37
|
+
sizes: number[];
|
|
38
|
+
};
|
|
39
|
+
pageSelection: {
|
|
40
|
+
position: {
|
|
41
|
+
top: boolean;
|
|
42
|
+
bottom: boolean;
|
|
43
|
+
};
|
|
44
|
+
display: number;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
sort: SearchResultsSortOptions[];
|
|
48
|
+
filters: {
|
|
49
|
+
currentFilters: {
|
|
50
|
+
visibility: {
|
|
51
|
+
mobileSidebar: boolean;
|
|
52
|
+
mobileToolbar: boolean;
|
|
53
|
+
};
|
|
54
|
+
labels: {
|
|
55
|
+
title: string;
|
|
56
|
+
clearAll: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
facets: {
|
|
60
|
+
labels: {
|
|
61
|
+
title: string;
|
|
62
|
+
showAll: string;
|
|
63
|
+
facetFilter: string;
|
|
64
|
+
};
|
|
65
|
+
hierarchy: {
|
|
66
|
+
maxInitialLevel: number;
|
|
67
|
+
topLevelValueCountLimit: number;
|
|
68
|
+
filterable: boolean;
|
|
69
|
+
};
|
|
70
|
+
filterable: {
|
|
71
|
+
minValues: number;
|
|
72
|
+
};
|
|
73
|
+
facetValueCountLimit: number;
|
|
74
|
+
showDocumentCount: boolean;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
isInStock: () => boolean;
|
|
78
|
+
badges: SearchResultBadgeOptions;
|
|
79
|
+
links: {
|
|
80
|
+
details: string;
|
|
81
|
+
};
|
|
82
|
+
idKey: string;
|
|
83
|
+
elements: DocumentElement[];
|
|
84
|
+
breadcrumbs: ({
|
|
85
|
+
label: string;
|
|
86
|
+
link: string;
|
|
87
|
+
} | {
|
|
88
|
+
label: string;
|
|
89
|
+
link?: undefined;
|
|
90
|
+
})[];
|
|
91
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const HISTORY_LOCAL_STORAGE_KEY = "LUPA_HISTORY";
|
|
2
|
+
export declare const TRACKING_STORAGE_KEY = "LUPA_STATS";
|
|
3
|
+
export declare const TRACKING_STORAGE_KEY_BASE = "LUPA_STATS_BASE";
|
|
4
|
+
export declare const TRACKING_ANALYTICS_KEY = "LUPA_ANALYTICS";
|
|
5
|
+
export declare const TRACKING_KEY_LENGTH = 10;
|
|
6
|
+
export declare const HISTORY_MAX_ITEMS = 7;
|
|
7
|
+
export declare const S_MIN_WIDTH = 575;
|
|
8
|
+
export declare const MD_MIN_WIDTH = 767;
|
|
9
|
+
export declare const L_MIN_WIDTH = 991;
|
|
10
|
+
export declare const XL_MIN_WIDTH = 1199;
|
|
11
|
+
export declare const MAX_FACET_VALUES = 1000;
|
|
12
|
+
export declare const CURRENCY_KEY_INDICATOR = "price";
|
|
13
|
+
export declare const DEFAULT_PAGE_SIZE = 12;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DisplaySuggestion } from "@/types/search-box/Common";
|
|
2
|
+
import { SuggestionQueryResult } from "@getlupa/client-sdk/Types";
|
|
3
|
+
export declare const SuggestionsMockData: SuggestionQueryResult;
|
|
4
|
+
export declare const DisplaySuggestionsMockData: (input: string) => DisplaySuggestion[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const QUERY_PARAMS: {
|
|
2
|
+
QUERY: string;
|
|
3
|
+
PAGE: string;
|
|
4
|
+
LIMIT: string;
|
|
5
|
+
SORT: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const QUERY_PARAMS_PARSED: {
|
|
8
|
+
QUERY: string;
|
|
9
|
+
PAGE: string;
|
|
10
|
+
LIMIT: string;
|
|
11
|
+
SORT: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const FACET_PARAMS_TYPE: {
|
|
14
|
+
TERMS: string;
|
|
15
|
+
RANGE: string;
|
|
16
|
+
HIERARCHY: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const FACET_FILTER_MAP: {
|
|
19
|
+
terms: string;
|
|
20
|
+
range: string;
|
|
21
|
+
hierarchy: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const FACET_KEY_SEPARATOR = ".";
|
|
24
|
+
export declare const FACET_RANGE_SEPARATOR = ":";
|
|
25
|
+
export declare const HIERARCHY_SEPARATOR = ">";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare const DEFAULT_SEARCH_BOX_OPTIONS: {
|
|
2
|
+
inputSelector: string;
|
|
3
|
+
options: {
|
|
4
|
+
environment: string;
|
|
5
|
+
};
|
|
6
|
+
showTotalCount: boolean;
|
|
7
|
+
minInputLength: number;
|
|
8
|
+
inputAttributes: {
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
debounce: number;
|
|
12
|
+
labels: {
|
|
13
|
+
placeholder: string;
|
|
14
|
+
noResults: string;
|
|
15
|
+
moreResults: string;
|
|
16
|
+
currency: string;
|
|
17
|
+
defaultFacetLabel: string;
|
|
18
|
+
};
|
|
19
|
+
links: {
|
|
20
|
+
searchResults: string;
|
|
21
|
+
};
|
|
22
|
+
panels: ({
|
|
23
|
+
type: string;
|
|
24
|
+
queryKey: string;
|
|
25
|
+
highlight: boolean;
|
|
26
|
+
limit: number;
|
|
27
|
+
searchBySuggestion?: undefined;
|
|
28
|
+
links?: undefined;
|
|
29
|
+
titleKey?: undefined;
|
|
30
|
+
elements?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
type: string;
|
|
33
|
+
queryKey: string;
|
|
34
|
+
limit: number;
|
|
35
|
+
searchBySuggestion: boolean;
|
|
36
|
+
links: {
|
|
37
|
+
details: string;
|
|
38
|
+
};
|
|
39
|
+
titleKey: string;
|
|
40
|
+
elements: never[];
|
|
41
|
+
highlight?: undefined;
|
|
42
|
+
})[];
|
|
43
|
+
history: {
|
|
44
|
+
labels: {
|
|
45
|
+
clear: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { AnchorPosition } from "@/types/search-results/SearchResultsProductCardOptions";
|
|
2
|
+
import { FacetStyle } from "@/types/search-results/SearchResultsOptions";
|
|
3
|
+
export declare const DEFAULT_OPTIONS_RESULTS: {
|
|
4
|
+
options: {
|
|
5
|
+
environment: string;
|
|
6
|
+
};
|
|
7
|
+
queryKey: string;
|
|
8
|
+
containerSelector: string;
|
|
9
|
+
labels: {
|
|
10
|
+
pageSize: string;
|
|
11
|
+
sortBy: string;
|
|
12
|
+
itemCount: string;
|
|
13
|
+
filteredItemCount: string;
|
|
14
|
+
currency: string;
|
|
15
|
+
showMore: string;
|
|
16
|
+
searchResults: string;
|
|
17
|
+
emptyResults: string;
|
|
18
|
+
mobileFilterButton: string;
|
|
19
|
+
htmlTitleTemplate: string;
|
|
20
|
+
noResultsSuggestion: string;
|
|
21
|
+
didYouMean: string;
|
|
22
|
+
similarQuery: string;
|
|
23
|
+
similarQueries: string;
|
|
24
|
+
};
|
|
25
|
+
grid: {
|
|
26
|
+
columns: {
|
|
27
|
+
xl: number;
|
|
28
|
+
l: number;
|
|
29
|
+
md: number;
|
|
30
|
+
sm: number;
|
|
31
|
+
xs: number;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
pagination: {
|
|
35
|
+
sizeSelection: {
|
|
36
|
+
position: {
|
|
37
|
+
top: boolean;
|
|
38
|
+
bottom: boolean;
|
|
39
|
+
};
|
|
40
|
+
sizes: number[];
|
|
41
|
+
};
|
|
42
|
+
pageSelection: {
|
|
43
|
+
position: {
|
|
44
|
+
top: boolean;
|
|
45
|
+
bottom: boolean;
|
|
46
|
+
};
|
|
47
|
+
display: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
sort: never[];
|
|
51
|
+
filters: {
|
|
52
|
+
currentFilters: {
|
|
53
|
+
visibility: {
|
|
54
|
+
mobileSidebar: boolean;
|
|
55
|
+
mobileToolbar: boolean;
|
|
56
|
+
};
|
|
57
|
+
labels: {
|
|
58
|
+
title: string;
|
|
59
|
+
clearAll: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
facets: {
|
|
63
|
+
labels: {
|
|
64
|
+
title: string;
|
|
65
|
+
showAll: string;
|
|
66
|
+
facetFilter: string;
|
|
67
|
+
facetClear: string;
|
|
68
|
+
};
|
|
69
|
+
filterable: {
|
|
70
|
+
minValues: number;
|
|
71
|
+
};
|
|
72
|
+
hierarchy: {
|
|
73
|
+
maxInitialLevel: number;
|
|
74
|
+
topLevelValueCountLimit: number;
|
|
75
|
+
filterable: boolean;
|
|
76
|
+
};
|
|
77
|
+
facetValueCountLimit: number;
|
|
78
|
+
showDocumentCount: boolean;
|
|
79
|
+
style: {
|
|
80
|
+
type: FacetStyle;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
toolbar: {
|
|
85
|
+
layoutSelector: boolean;
|
|
86
|
+
itemSummary: boolean;
|
|
87
|
+
clearFilters: boolean;
|
|
88
|
+
};
|
|
89
|
+
isInStock: () => boolean;
|
|
90
|
+
badges: {
|
|
91
|
+
anchor: AnchorPosition;
|
|
92
|
+
elements: never[];
|
|
93
|
+
};
|
|
94
|
+
links: {
|
|
95
|
+
details: string;
|
|
96
|
+
};
|
|
97
|
+
elements: never[];
|
|
98
|
+
breadcrumbs: ({
|
|
99
|
+
label: string;
|
|
100
|
+
link: string;
|
|
101
|
+
} | {
|
|
102
|
+
label: string;
|
|
103
|
+
link?: undefined;
|
|
104
|
+
})[];
|
|
105
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TrackingOptions } from "./types/General";
|
|
2
|
+
import { SearchBoxOptions } from "./types/search-box/SearchBoxOptions";
|
|
3
|
+
import { SearchResultsOptions } from "./types/search-results/SearchResultsOptions";
|
|
4
|
+
declare global {
|
|
5
|
+
interface Window {
|
|
6
|
+
getLupa: {
|
|
7
|
+
searchBox: (options: SearchBoxOptions) => void;
|
|
8
|
+
searchResults: (options: SearchResultsOptions) => void;
|
|
9
|
+
tracking: (options: TrackingOptions) => void;
|
|
10
|
+
clearSearchBox: () => void;
|
|
11
|
+
clearSearchResults: () => void;
|
|
12
|
+
};
|
|
13
|
+
lupaSearch: {
|
|
14
|
+
searchBox: (options: SearchBoxOptions) => void;
|
|
15
|
+
searchResults: (options: SearchResultsOptions) => void;
|
|
16
|
+
tracking: (options: TrackingOptions) => void;
|
|
17
|
+
clearSearchBox: () => void;
|
|
18
|
+
clearSearchResults: () => void;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SearchBoxOptions } from "./types/search-box/SearchBoxOptions";
|
|
2
|
+
import { SearchResultsOptions } from "./types/search-results/SearchResultsOptions";
|
|
3
|
+
import { TrackingOptions } from "./types/General";
|
|
4
|
+
declare const lupaSearch: {
|
|
5
|
+
searchBox: (options: SearchBoxOptions) => void;
|
|
6
|
+
searchResults: (options: SearchResultsOptions) => void;
|
|
7
|
+
tracking: (options: TrackingOptions) => void;
|
|
8
|
+
clearSearchBox: () => void;
|
|
9
|
+
clearSearchResults: () => void;
|
|
10
|
+
};
|
|
11
|
+
export default lupaSearch;
|