@sonic-equipment/ui 0.0.113 → 0.0.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{src/algolia → algolia}/algolia-active-filters.d.ts +1 -1
- package/dist/{src/algolia → algolia}/algolia-hit-type.d.ts +2 -2
- package/dist/{src/algolia → algolia}/algolia-index-config.d.ts +2 -3
- package/dist/{src/algolia → algolia}/algolia-provider.d.ts +3 -2
- package/dist/{src/algolia → algolia}/algolia-search-provider.d.ts +1 -1
- package/dist/{src/algolia → algolia}/use-algolia-hits.d.ts +3 -3
- package/dist/{src/algolia → algolia}/use-algolia-insights-provider-global-state.d.ts +1 -1
- package/dist/algolia/use-algolia-instant-search-state.d.ts +21 -0
- package/dist/{src/algolia → algolia}/use-algolia-search.d.ts +10 -10
- package/dist/{src/cards → cards}/category-card/category-card.d.ts +2 -2
- package/dist/{src/cards → cards}/orderline-card/orderline-card.d.ts +3 -3
- package/dist/{src/cards → cards}/product-card/product-card.d.ts +3 -3
- package/dist/{src/carousel → carousel}/card-carousel/card-carousel.d.ts +1 -1
- package/dist/{src/carousel → carousel}/carousel.d.ts +1 -1
- package/dist/{src/carousel → carousel}/pagination/pagination.d.ts +1 -1
- package/dist/{src/carousel → carousel}/usp-carousel/product-usp-carousel-slide.d.ts +1 -1
- package/dist/{src/carousel → carousel}/usp-carousel/product-usp-carousel.d.ts +3 -3
- package/dist/country-selector/connected-country-selector.d.ts +13 -0
- package/dist/{src/country-selector → country-selector}/country-selector-dialog/country-selector-dialog.d.ts +1 -1
- package/dist/{src/country-selector → country-selector}/country-selector-trigger/country-selector-trigger.d.ts +1 -1
- package/dist/{src/country-selector → country-selector}/use-countries-languages.d.ts +4 -3
- package/dist/{src/forms → forms}/color-checkbox/color-checkbox.d.ts +1 -1
- package/dist/{src/global-search → global-search}/categories-grid/categories-grid.d.ts +1 -1
- package/dist/{src/global-search → global-search}/plugins/popular-categories-plugin.d.ts +2 -2
- package/dist/{src/global-search → global-search}/plugins/quick-access-plugin.d.ts +2 -2
- package/dist/{src/global-search → global-search}/search-input/search-input.d.ts +1 -1
- package/dist/global-search/search-result-panel/sections/no-search-results.d.ts +1 -0
- package/dist/{src/global-search → global-search}/types.d.ts +1 -1
- package/dist/index.d.ts +246 -5107
- package/dist/index.js +10769 -8898
- package/dist/intl/formatted-message.d.ts +3 -0
- package/dist/intl/intl-context.d.ts +8 -0
- package/dist/intl/intl-provider.d.ts +8 -0
- package/dist/intl/types.d.ts +31 -0
- package/dist/intl/use-culture-code.d.ts +3 -0
- package/dist/intl/use-formatted-message.d.ts +2 -0
- package/dist/intl/use-language-code.d.ts +2 -0
- package/dist/intl/utils.d.ts +3 -0
- package/dist/{src/media → media}/image/image.d.ts +2 -2
- package/dist/{src/media → media}/image-grid/images-grid.d.ts +1 -1
- package/dist/{src/media → media}/image-lightbox/image-lightbox.d.ts +1 -1
- package/dist/{src/modals → modals}/dialog/dialog.d.ts +1 -1
- package/dist/{src/notifications → notifications}/announcements/announcement.d.ts +2 -2
- package/dist/{src/pages → pages}/page/page.d.ts +1 -1
- package/dist/{src/pages → pages}/product-details-page/components/product-details-images/product-detail-images.d.ts +1 -1
- package/dist/{src/pages → pages}/product-details-page/components/product-details-panel/product-details-panel.d.ts +1 -1
- package/dist/pages/product-listing-page/product-listing-page-data-types.d.ts +24 -0
- package/dist/{src/pages → pages}/product-listing-page/product-listing-page-provider/product-listing-page-context.d.ts +1 -1
- package/dist/{src/pages → pages}/product-listing-page/product-listing-page-provider/use-subcategories.d.ts +1 -1
- package/dist/{src/promos → promos}/promo-banner/promo-banner.d.ts +2 -2
- package/dist/{src/promos → promos}/promo-banners/promo-banners.d.ts +2 -2
- package/dist/{src/promos → promos}/promo-card/promo-card.d.ts +1 -1
- package/dist/shared/api/bff/hooks/use-fetch-announcements.d.ts +2 -0
- package/dist/shared/api/bff/hooks/use-fetch-product-details-page-data.d.ts +2 -0
- package/dist/shared/api/bff/hooks/use-fetch-product-listing-page-data.d.ts +7 -0
- package/dist/shared/api/bff/services/bff-service.d.ts +14 -0
- package/dist/shared/api/storefront/hooks/authentication/use-fetch-session.d.ts +4 -0
- package/dist/shared/api/storefront/hooks/authentication/use-invalidate-session.d.ts +1 -0
- package/dist/{src/shared → shared}/api/storefront/hooks/authentication/use-sign-in.d.ts +1 -1
- package/dist/{src/shared → shared}/api/storefront/hooks/cart/use-add-product-to-current-cart.d.ts +2 -2
- package/dist/shared/api/storefront/hooks/cart/use-delete-current-cart.d.ts +2 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-checkout-atp.d.ts +2 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-lines.d.ts +1 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-product-atp.d.ts +2 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-promotions.d.ts +1 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart.d.ts +4 -0
- package/dist/shared/api/storefront/hooks/cart/use-invalidate-current-cart.d.ts +1 -0
- package/dist/shared/api/storefront/hooks/cart/use-patch-cart.d.ts +4 -0
- package/dist/shared/api/storefront/hooks/cart/use-place-order.d.ts +4 -0
- package/dist/shared/api/storefront/hooks/cart/use-save-cart-for-later.d.ts +4 -0
- package/dist/{src/shared → shared}/api/storefront/hooks/cart/use-update-cart-line-by-id.d.ts +1 -1
- package/dist/shared/api/storefront/hooks/translation/use-fetch-translations.d.ts +4 -0
- package/dist/shared/api/storefront/hooks/website/use-fetch-countries-languages.d.ts +6 -0
- package/dist/shared/api/storefront/hooks/website/use-fetch-countries-with-languages.d.ts +3 -0
- package/dist/shared/api/storefront/hooks/website/use-fetch-settings.d.ts +4 -0
- package/dist/{src/shared → shared}/api/storefront/hooks/website/use-update-locale.d.ts +1 -1
- package/dist/{src/shared → shared}/api/storefront/hooks/wishlist/use-fetch-all-wishlists-items.d.ts +1 -1
- package/dist/{src/shared → shared}/api/storefront/hooks/wishlist/use-fetch-wishlists.d.ts +1 -1
- package/dist/{src/shared → shared}/api/storefront/model/shop.model.d.ts +64 -0
- package/dist/{src/shared → shared}/api/storefront/services/authentication-service.d.ts +9 -3
- package/dist/shared/api/storefront/services/cart-service.d.ts +30 -0
- package/dist/shared/api/storefront/services/translation-service.d.ts +2 -0
- package/dist/{src/shared → shared}/api/storefront/services/website-service.d.ts +4 -1
- package/dist/{src/shared → shared}/api/storefront/services/wishlist-service.d.ts +1 -1
- package/dist/shared/hooks/use-breakpoint.d.ts +2 -0
- package/dist/{src/shared → shared}/hooks/use-is-breakpoint.d.ts +1 -1
- package/dist/{src/shared → shared}/model/announcement.d.ts +1 -1
- package/dist/{src/shared → shared}/model/category.d.ts +3 -3
- package/dist/{src/shared → shared}/model/countries-languages.d.ts +4 -3
- package/dist/{src/shared → shared}/model/hit.d.ts +4 -4
- package/dist/{src/shared → shared}/model/image.d.ts +5 -5
- package/dist/{src/shared → shared}/model/price.d.ts +2 -2
- package/dist/{src/shared → shared}/providers/cart-provider.d.ts +1 -1
- package/dist/{src/shared → shared}/providers/favorite-provider.d.ts +4 -4
- package/dist/{src/shared → shared}/providers/global-state-provider.d.ts +1 -1
- package/dist/shared/routing/route-button.d.ts +1 -0
- package/dist/shared/routing/route-icon-button.d.ts +1 -0
- package/dist/shared/routing/route-link.d.ts +1 -0
- package/dist/shared/utils/environment.d.ts +3 -0
- package/dist/styles.css +4013 -3784
- package/package.json +6 -11
- package/dist/.storybook/RenderHook.d.ts +0 -1
- package/dist/node_modules/fast-equals/src/internalTypes.d.ts +0 -134
- package/dist/src/algolia/use-algolia-instant-search-state.d.ts +0 -21
- package/dist/src/badges/badge/badge.stories.d.ts +0 -17
- package/dist/src/badges/badge/icon-with-badge/icon-with-badge.stories.d.ts +0 -14
- package/dist/src/badges/tag/tag.stories.d.ts +0 -18
- package/dist/src/breadcrumbs/breadcrumb.stories.d.ts +0 -16
- package/dist/src/buttons/add-to-cart-button/add-to-cart-button.stories.d.ts +0 -11
- package/dist/src/buttons/button/button.stories.d.ts +0 -16
- package/dist/src/buttons/favorite/favorite-button.stories.d.ts +0 -7
- package/dist/src/buttons/icon-button/icon-button.stories.d.ts +0 -7
- package/dist/src/buttons/link/link.stories.d.ts +0 -13
- package/dist/src/buttons/print-button/print-button.stories.d.ts +0 -13
- package/dist/src/cards/category-card/category-card.stories.d.ts +0 -16
- package/dist/src/cards/orderline-card/orderline-card.stories.d.ts +0 -46
- package/dist/src/cards/product-card/product-card.stories.d.ts +0 -43
- package/dist/src/carousel/card-carousel/product-card-carousel.stories.d.ts +0 -20
- package/dist/src/carousel/card-carousel/promo-card-carousel.stories.d.ts +0 -20
- package/dist/src/carousel/category-carousel/category-carousel.stories.d.ts +0 -19
- package/dist/src/carousel/pagination/pagination.stories.d.ts +0 -14
- package/dist/src/carousel/usp-carousel/product-usp-carousel.stories.d.ts +0 -27
- package/dist/src/cart-totals/cart-totals.stories.d.ts +0 -16
- package/dist/src/collapsables/accordion/accordion.stories.d.ts +0 -20
- package/dist/src/collapsables/show-all/show-all.stories.d.ts +0 -9
- package/dist/src/country-selector/country-selector-dialog/country-selector-dialog.stories.d.ts +0 -20
- package/dist/src/country-selector/country-selector-trigger/country-selector-trigger.stories.d.ts +0 -16
- package/dist/src/country-selector/country-selector.d.ts +0 -12
- package/dist/src/country-selector/country-selector.stories.d.ts +0 -19
- package/dist/src/country-selector/use-countries-languages.stories.d.ts +0 -9
- package/dist/src/delivery-time/delivery-time.stories.d.ts +0 -13
- package/dist/src/display/product-price/product-price.stories.d.ts +0 -15
- package/dist/src/display/product-price/product-total-price.stories.d.ts +0 -14
- package/dist/src/display/product-sku/product-sku.stories.d.ts +0 -13
- package/dist/src/filters/active-filters/active-filters.stories.d.ts +0 -6
- package/dist/src/filters/multi-select/multi-select.stories.d.ts +0 -10
- package/dist/src/filters/pagination/pagination.stories.d.ts +0 -8
- package/dist/src/forms/checkbox/checkbox.stories.d.ts +0 -9
- package/dist/src/forms/color-checkbox/color-checkbox.stories.d.ts +0 -9
- package/dist/src/forms/field-error/field-error.stories.d.ts +0 -15
- package/dist/src/forms/input/input.stories.d.ts +0 -26
- package/dist/src/forms/label/label.stories.d.ts +0 -15
- package/dist/src/forms/number-field/number-field.stories.d.ts +0 -31
- package/dist/src/forms/select/select.stories.d.ts +0 -16
- package/dist/src/forms/text-field/text-field.stories.d.ts +0 -24
- package/dist/src/forms/textarea/textarea.stories.d.ts +0 -18
- package/dist/src/global-search/categories-grid/categories-grid.stories.d.ts +0 -14
- package/dist/src/global-search/global-search.stories.d.ts +0 -21
- package/dist/src/global-search/search-input/search-input.stories.d.ts +0 -6
- package/dist/src/global-search/search-result-panel/sections/no-results.d.ts +0 -1
- package/dist/src/header/cart-icon/connected-cart-icon.stories.d.ts +0 -12
- package/dist/src/index.d.ts +0 -98
- package/dist/src/intl/formatted-message.d.ts +0 -9
- package/dist/src/intl/formatted-message.stories.d.ts +0 -16
- package/dist/src/intl/intl-context.d.ts +0 -8
- package/dist/src/intl/intl-provider.d.ts +0 -8
- package/dist/src/intl/types.d.ts +0 -3
- package/dist/src/intl/use-format-message.d.ts +0 -13
- package/dist/src/intl/use-formatted-message.stories.d.ts +0 -15
- package/dist/src/intl/use-language-code.d.ts +0 -2
- package/dist/src/lists/download-document-list/document-download-list.stories.d.ts +0 -13
- package/dist/src/lists/feature-list/feature-list.stories.d.ts +0 -16
- package/dist/src/lists/orderline-list/orderline-list.stories.d.ts +0 -15
- package/dist/src/lists/product-overview-grid/product-overview-grid.stories.d.ts +0 -15
- package/dist/src/lists/ul/list-item.stories.d.ts +0 -14
- package/dist/src/lists/ul/list.stories.d.ts +0 -13
- package/dist/src/loading/progress-circle.stories.d.ts +0 -12
- package/dist/src/media/image/image.stories.d.ts +0 -17
- package/dist/src/media/image-grid/images-grid.stories.d.ts +0 -11
- package/dist/src/media/image-lightbox/image-lightbox.stories.d.ts +0 -13
- package/dist/src/modals/confirmation/confirmation-dialog.stories.d.ts +0 -19
- package/dist/src/modals/dialog/dialog.stories.d.ts +0 -45
- package/dist/src/modals/favorite/add-to-favorite-dialog.stories.d.ts +0 -12
- package/dist/src/modals/modal/modal.stories.d.ts +0 -44
- package/dist/src/modals/signin/sign-in-dialog.stories.d.ts +0 -19
- package/dist/src/notifications/announcements/announcement.stories.d.ts +0 -22
- package/dist/src/pages/page/page.stories.d.ts +0 -24
- package/dist/src/pages/page-container/page-container.stories.d.ts +0 -22
- package/dist/src/pages/product-details-page/product-details-page.stories.d.ts +0 -20
- package/dist/src/pages/product-listing-page/product-listing-page-data-types.d.ts +0 -24
- package/dist/src/pages/product-listing-page/product-listing-page.stories.d.ts +0 -23
- package/dist/src/pages/search-result-page/search-results-page.stories.d.ts +0 -22
- package/dist/src/promos/promo-banner/promo-banner.stories.d.ts +0 -19
- package/dist/src/promos/promo-banners/promo-banners.stories.d.ts +0 -16
- package/dist/src/promos/promo-card/promo-card.stories.d.ts +0 -12
- package/dist/src/shared/api/bff/hooks/use-fetch-announcements.d.ts +0 -6
- package/dist/src/shared/api/bff/hooks/use-fetch-product-details-page-data.d.ts +0 -7
- package/dist/src/shared/api/bff/hooks/use-fetch-product-details-page-data.stories.d.ts +0 -20
- package/dist/src/shared/api/bff/hooks/use-fetch-product-listing-page-data.d.ts +0 -6
- package/dist/src/shared/api/bff/hooks/use-fetch-product-listing-page-data.stories.d.ts +0 -20
- package/dist/src/shared/api/bff/services/bff-service.d.ts +0 -10
- package/dist/src/shared/api/storefront/hooks/authentication/authentication.stories.d.ts +0 -13
- package/dist/src/shared/api/storefront/hooks/authentication/use-session.d.ts +0 -4
- package/dist/src/shared/api/storefront/hooks/cart/cart.stories.d.ts +0 -12
- package/dist/src/shared/api/storefront/hooks/cart/use-fetch-current-cart-lines.d.ts +0 -2
- package/dist/src/shared/api/storefront/hooks/translation/translations.stories.d.ts +0 -9
- package/dist/src/shared/api/storefront/hooks/translation/use-fetch-translations.d.ts +0 -1
- package/dist/src/shared/api/storefront/hooks/website/use-fetch-countries-languages.d.ts +0 -4
- package/dist/src/shared/api/storefront/hooks/website/website.stories.d.ts +0 -10
- package/dist/src/shared/api/storefront/hooks/wishlist/wishlist.stories.d.ts +0 -10
- package/dist/src/shared/api/storefront/services/cart-service.d.ts +0 -16
- package/dist/src/shared/api/storefront/services/translation-service.d.ts +0 -2
- package/dist/src/shared/feature-flags/feature-flags.stories.d.ts +0 -9
- package/dist/src/shared/hooks/use-breakpoint.d.ts +0 -2
- package/dist/src/shared/model/cart.d.ts +0 -156
- package/dist/src/shared/routing/route-button.d.ts +0 -1
- package/dist/src/shared/routing/route-button.stories.d.ts +0 -15
- package/dist/src/shared/routing/route-icon-button.d.ts +0 -1
- package/dist/src/shared/routing/route-link.d.ts +0 -1
- package/dist/src/shared/routing/route-link.stories.d.ts +0 -15
- package/dist/src/shared/utils/environment.d.ts +0 -3
- package/dist/src/sidebar/sidebar.stories.d.ts +0 -8
- package/dist/src/toast/toast-provider.stories.d.ts +0 -10
- package/dist/src/toast/toast.stories.d.ts +0 -16
- package/dist/src/typography/heading/heading.stories.d.ts +0 -37
- /package/dist/{src/algolia → algolia}/algolia-active-categories.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/algolia-categories-filters.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/algolia-dummy-refinement-list-consumer.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/algolia-filter-panel.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/algolia-hits-provider.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/algolia-insight-instant-search-provider.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/algolia-insights-provider.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/algolia-instant-search-state-provider.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/algolia-intialization.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/algolia-multi-select-filter-section.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/algolia-pagination.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/algolia-query-string-routing.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/algolia-results-count.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/algolia-searchclient-offline.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/algolia-sonic-searchclient.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/algolia-sort-by.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/filter-section.d.ts +0 -0
- /package/dist/{src/algolia → algolia}/use-algolia-insights.d.ts +0 -0
- /package/dist/{src/background-overlay → background-overlay}/background-overlay.d.ts +0 -0
- /package/dist/{src/badges → badges}/badge/badge.d.ts +0 -0
- /package/dist/{src/badges → badges}/badge/icon-with-badge/icon-with-badge.d.ts +0 -0
- /package/dist/{src/badges → badges}/tag/tag.d.ts +0 -0
- /package/dist/{src/breadcrumbs → breadcrumbs}/breadcrumb.d.ts +0 -0
- /package/dist/{src/buttons → buttons}/add-to-cart-button/add-to-cart-button.d.ts +0 -0
- /package/dist/{src/buttons → buttons}/add-to-cart-button/connected-add-to-cart-button.d.ts +0 -0
- /package/dist/{src/buttons → buttons}/button/button.d.ts +0 -0
- /package/dist/{src/buttons → buttons}/favorite/connected-favorite-button.d.ts +0 -0
- /package/dist/{src/buttons → buttons}/favorite/favorite-button.d.ts +0 -0
- /package/dist/{src/buttons → buttons}/icon-button/icon-button.d.ts +0 -0
- /package/dist/{src/buttons → buttons}/link/link.d.ts +0 -0
- /package/dist/{src/buttons → buttons}/print-button/print-button.d.ts +0 -0
- /package/dist/{src/cards → cards}/orderline-card/connected-orderline-card.d.ts +0 -0
- /package/dist/{src/cards → cards}/orderline-card/connected-remove-button.d.ts +0 -0
- /package/dist/{src/cards → cards}/product-card/connected-product-card.d.ts +0 -0
- /package/dist/{src/carousel → carousel}/carousel-navigation-button.d.ts +0 -0
- /package/dist/{src/carousel → carousel}/category-carousel/category-carousel.d.ts +0 -0
- /package/dist/{src/carousel → carousel}/pagination/transitions.d.ts +0 -0
- /package/dist/{src/carousel → carousel}/usp-carousel/usp-carousel.d.ts +0 -0
- /package/dist/{src/cart-totals → cart-totals}/cart-totals.d.ts +0 -0
- /package/dist/{src/collapsables → collapsables}/accordion/accordion-item.d.ts +0 -0
- /package/dist/{src/collapsables → collapsables}/accordion/accordion.d.ts +0 -0
- /package/dist/{src/collapsables → collapsables}/show-all/show-all.d.ts +0 -0
- /package/dist/{src/config.d.ts → config.d.ts} +0 -0
- /package/dist/{src/delivery-time → delivery-time}/delivery-time.d.ts +0 -0
- /package/dist/{src/display → display}/product-price/product-price.d.ts +0 -0
- /package/dist/{src/display → display}/product-price/product-total-price.d.ts +0 -0
- /package/dist/{src/display → display}/product-sku/product-sku.d.ts +0 -0
- /package/dist/{src/filters → filters}/active-filters/active-filters.d.ts +0 -0
- /package/dist/{src/filters → filters}/multi-select/multi-select.d.ts +0 -0
- /package/dist/{src/filters → filters}/pagination/pagination.d.ts +0 -0
- /package/dist/{src/forms → forms}/checkbox/checkbox.d.ts +0 -0
- /package/dist/{src/forms → forms}/field-error/field-error.d.ts +0 -0
- /package/dist/{src/forms → forms}/input/input.d.ts +0 -0
- /package/dist/{src/forms → forms}/label/label.d.ts +0 -0
- /package/dist/{src/forms → forms}/number-field/number-field.d.ts +0 -0
- /package/dist/{src/forms → forms}/select/select.d.ts +0 -0
- /package/dist/{src/forms → forms}/text-field/text-field.d.ts +0 -0
- /package/dist/{src/forms → forms}/textarea/textarea.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/global-search-provider/global-search-provider.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/global-search-provider/use-search-disclosure.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/global-search.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/plugins/categories-plugin.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/plugins/popular-searches-plugin.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/plugins/query-suggestions-plugin.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/plugins/recent-searches-plugin.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/search-highlight/highlight.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/search-input/connected-search-input.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/search-result-panel/panel-content.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/search-result-panel/search-result-panel.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/search-result-panel/sections/no-search.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/search-result-panel/sections/section-container.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/search-result-panel/sections/with-results.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/search-section/search-list-item.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/search-section/search-list.d.ts +0 -0
- /package/dist/{src/global-search → global-search}/search-section/search-section.d.ts +0 -0
- /package/dist/{src/header → header}/cart-icon/connected-cart-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-black-left-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-black-right-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-blackcaps-left-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-blackcaps-right-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-bold-left-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-bold-right-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-boldcaps-left-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-boldcaps-right-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-regular-left-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-regular-right-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-regularcaps-left-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-regularcaps-right-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-semibold-left-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-semibold-right-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-semiboldcaps-left-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-semiboldcaps-right-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-thin-left-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-thin-right-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-thincaps-left-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-arrow-thincaps-right-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-chevrons-bold-down-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-chevrons-bold-left-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-chevrons-bold-right-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-chevrons-bold-up-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-chevrons-slim-down-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-chevrons-slim-left-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-chevrons-slim-right-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/glyph/glyphs-chevrons-slim-up-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/career-innovate-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/career-proactive-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/career-teamplayer-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/fallback-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/some-facebook-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/some-instagram-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/some-linkedin-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/some-mail-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/some-youtube-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/usp-efficiency-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/usp-style-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/usp-support-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/warranty-10y-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/warranty-1y-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/warranty-3y-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/warranty-5y-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/warranty-consumable-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/other/warranty-lifetime-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-attention-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-business-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-cart-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-clock-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-close-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-download-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-event-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-favorite-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-home-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-information-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-login-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-news-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-notice-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-okay-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-rating-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-sale-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-tag-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-trash-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-updateuser-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-vote-thumbsdown-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/solid/solid-vote-thumbsup-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-attention-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-business-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-cart-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-categories-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-checkmark-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-clock-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-close-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-closebox-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-closemenu-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-collapse-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-dehashed-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-download-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-expand-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-favorite-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-filter-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-hashed-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-home-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-information-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-login-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-menu-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-notice-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-okay-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-rating-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-recent-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-search-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-tag-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-trash-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-updateuser-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-vote-thumbsdown-icon.d.ts +0 -0
- /package/dist/{src/icons → icons}/stroke/stroke-vote-thumbsup-icon.d.ts +0 -0
- /package/dist/{src/intl → intl}/translation-id.d.ts +0 -0
- /package/dist/{src/lists → lists}/download-document-list/download-document-list.d.ts +0 -0
- /package/dist/{src/lists → lists}/feature-list/feature-list.d.ts +0 -0
- /package/dist/{src/lists → lists}/orderline-list/orderline-list.d.ts +0 -0
- /package/dist/{src/lists → lists}/product-overview-grid/product-overview-grid.d.ts +0 -0
- /package/dist/{src/lists → lists}/ul/list.d.ts +0 -0
- /package/dist/{src/loading → loading}/blank-page-spacer.d.ts +0 -0
- /package/dist/{src/loading → loading}/loading-overlay.d.ts +0 -0
- /package/dist/{src/loading → loading}/progress-circle.d.ts +0 -0
- /package/dist/{src/modals → modals}/confirmation/confirmation-dialog.d.ts +0 -0
- /package/dist/{src/modals → modals}/favorite/add-to-favorite-dialog.d.ts +0 -0
- /package/dist/{src/modals → modals}/modal/modal.d.ts +0 -0
- /package/dist/{src/modals → modals}/signin/sign-in-dialog.d.ts +0 -0
- /package/dist/{src/notifications → notifications}/announcements/announcement-provider.d.ts +0 -0
- /package/dist/{src/notifications → notifications}/announcements/connected-announcement.d.ts +0 -0
- /package/dist/{src/pages → pages}/error-page/error-page.d.ts +0 -0
- /package/dist/{src/pages → pages}/layouts/product-details-page-layout.d.ts +0 -0
- /package/dist/{src/pages → pages}/loading-page/loading-page.d.ts +0 -0
- /package/dist/{src/pages → pages}/page-container/page-container.d.ts +0 -0
- /package/dist/{src/pages → pages}/product-details-page/product-details-page.d.ts +0 -0
- /package/dist/{src/pages → pages}/product-listing-page/no-results/no-results.d.ts +0 -0
- /package/dist/{src/pages → pages}/product-listing-page/product-listing-page-category-carousel/product-listing-page-category-carousel.d.ts +0 -0
- /package/dist/{src/pages → pages}/product-listing-page/product-listing-page-provider/product-listing-page-provider.d.ts +0 -0
- /package/dist/{src/pages → pages}/product-listing-page/product-listing-page.d.ts +0 -0
- /package/dist/{src/pages → pages}/product-listing-page/product-listing-product-overview/product-listing-product-overview.d.ts +0 -0
- /package/dist/{src/pages → pages}/search-result-page/search-result-product-overview/search-result-product-overview.d.ts +0 -0
- /package/dist/{src/pages → pages}/search-result-page/search-results-page-category-carousel/search-results-page-category-carousel.d.ts +0 -0
- /package/dist/{src/pages → pages}/search-result-page/search-results-page.d.ts +0 -0
- /package/dist/{src/shared → shared}/api/bff/model/announcement.model.d.ts +0 -0
- /package/dist/{src/shared → shared}/api/bff/model/bff.model.d.ts +0 -0
- /package/dist/{src/shared → shared}/api/storefront/hooks/authentication/use-is-authenticated.d.ts +0 -0
- /package/dist/{src/shared → shared}/api/storefront/hooks/authentication/use-sign-out.d.ts +0 -0
- /package/dist/{src/shared → shared}/api/storefront/hooks/cart/use-delete-cart-line-by-id.d.ts +0 -0
- /package/dist/{src/shared → shared}/api/storefront/hooks/cart/use-fetch-current-cart-count.d.ts +0 -0
- /package/dist/{src/shared → shared}/api/storefront/hooks/website/use-fetch-countries.d.ts +0 -0
- /package/dist/{src/shared → shared}/api/storefront/hooks/wishlist/use-add-wishlist-item-to-current-wishlist.d.ts +0 -0
- /package/dist/{src/shared → shared}/api/storefront/hooks/wishlist/use-add-wishlist-item-to-wishlist.d.ts +0 -0
- /package/dist/{src/shared → shared}/api/storefront/hooks/wishlist/use-create-wishlist.d.ts +0 -0
- /package/dist/{src/shared → shared}/api/storefront/hooks/wishlist/use-delete-wishlist-item-from-wishlist.d.ts +0 -0
- /package/dist/{src/shared → shared}/feature-flags/use-feature-flags.d.ts +0 -0
- /package/dist/{src/shared → shared}/fetch/request.d.ts +0 -0
- /package/dist/{src/shared → shared}/hooks/use-cookie.d.ts +0 -0
- /package/dist/{src/shared → shared}/hooks/use-debounced-callback.d.ts +0 -0
- /package/dist/{src/shared → shared}/hooks/use-disclosure.d.ts +0 -0
- /package/dist/{src/shared → shared}/hooks/use-local-storage.d.ts +0 -0
- /package/dist/{src/shared → shared}/hooks/use-resize-observer.d.ts +0 -0
- /package/dist/{src/shared → shared}/hooks/use-scroll-lock.d.ts +0 -0
- /package/dist/{src/shared → shared}/hooks/use-scroll-to.d.ts +0 -0
- /package/dist/{src/shared → shared}/hooks/use-session-storage.d.ts +0 -0
- /package/dist/{src/shared → shared}/providers/react-query-container.d.ts +0 -0
- /package/dist/{src/shared → shared}/routing/route-provider.d.ts +0 -0
- /package/dist/{src/shared → shared}/routing/with-routing.d.ts +0 -0
- /package/dist/{src/shared → shared}/utils/breakpoints.d.ts +0 -0
- /package/dist/{src/shared → shared}/utils/date.d.ts +0 -0
- /package/dist/{src/shared → shared}/utils/date.test.d.ts +0 -0
- /package/dist/{src/shared → shared}/utils/event-emitter.d.ts +0 -0
- /package/dist/{src/shared → shared}/utils/local-storage.d.ts +0 -0
- /package/dist/{src/shared → shared}/utils/merge.d.ts +0 -0
- /package/dist/{src/shared → shared}/utils/price.d.ts +0 -0
- /package/dist/{src/shared → shared}/utils/time.d.ts +0 -0
- /package/dist/{src/shared → shared}/utils/uuid.d.ts +0 -0
- /package/dist/{src/shared → shared}/utils/wait.d.ts +0 -0
- /package/dist/{src/sidebar → sidebar}/sidebar-provider.d.ts +0 -0
- /package/dist/{src/sidebar → sidebar}/sidebar.d.ts +0 -0
- /package/dist/{src/sidebar → sidebar}/toggle-sidebar-button.d.ts +0 -0
- /package/dist/{src/sidebar → sidebar}/types.d.ts +0 -0
- /package/dist/{src/sidebar → sidebar}/use-sidebar.d.ts +0 -0
- /package/dist/{src/toast → toast}/toast-provider.d.ts +0 -0
- /package/dist/{src/toast → toast}/toast.d.ts +0 -0
- /package/dist/{src/toast → toast}/types.d.ts +0 -0
- /package/dist/{src/toast → toast}/use-toast.d.ts +0 -0
- /package/dist/{src/tokens → tokens}/tokens.d.ts +0 -0
- /package/dist/{src/typography → typography}/heading/heading.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SelectedFilter } from 'filters/active-filters/active-filters';
|
|
2
1
|
import type { CurrentRefinementsConnectorParamsRefinement } from 'instantsearch.js/es/connectors/current-refinements/connectCurrentRefinements';
|
|
2
|
+
import { SelectedFilter } from '../filters/active-filters/active-filters';
|
|
3
3
|
export interface AlgoliaSelectedFilterCategory {
|
|
4
4
|
filters: (SelectedFilter & CurrentRefinementsConnectorParamsRefinement)[];
|
|
5
5
|
label: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Hit } from '@algolia/client-search';
|
|
2
|
-
import {
|
|
2
|
+
import { ImageType } from '../shared/model/image';
|
|
3
3
|
interface AlgoliaHitBase {
|
|
4
4
|
[key: string]: any;
|
|
5
5
|
type: 'promo' | 'product';
|
|
6
6
|
}
|
|
7
7
|
export interface AlgoliaPromo extends AlgoliaHitBase {
|
|
8
8
|
[key: string]: unknown;
|
|
9
|
-
image:
|
|
9
|
+
image: ImageType;
|
|
10
10
|
isExternal: boolean;
|
|
11
11
|
type: 'promo';
|
|
12
12
|
url: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { LanguageCode } from '../intl/types';
|
|
2
|
+
import { Environment } from '../shared/utils/environment';
|
|
3
3
|
export interface Indexes {
|
|
4
4
|
default: string;
|
|
5
5
|
sort: {
|
|
@@ -10,4 +10,3 @@ export interface Indexes {
|
|
|
10
10
|
}
|
|
11
11
|
export declare const algoliaIndexesPerEnvironment: Record<Environment, Indexes>;
|
|
12
12
|
export declare const getAlgoliaIndex: (environment: Environment, languageCode: LanguageCode) => Indexes;
|
|
13
|
-
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { SearchClient } from 'algoliasearch';
|
|
3
|
+
import { LanguageCode } from '../intl/types';
|
|
3
4
|
interface AlgoliaProviderProps {
|
|
4
5
|
categoryPages?: string;
|
|
5
6
|
children: ReactNode;
|
|
6
7
|
hierarchicalCategories?: string[];
|
|
7
|
-
languageCode:
|
|
8
|
+
languageCode: LanguageCode;
|
|
8
9
|
offlineSearchClient?: SearchClient;
|
|
9
10
|
online?: boolean;
|
|
10
11
|
query?: string;
|
|
@@ -13,7 +14,7 @@ interface AlgoliaProviderProps {
|
|
|
13
14
|
export declare function AlgoliaProvider({ categoryPages, children, hierarchicalCategories, languageCode, offlineSearchClient, online: _online, query, searchClient, }: AlgoliaProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export declare function useAlgolia(): {
|
|
15
16
|
online: boolean;
|
|
16
|
-
setOnline: import("shared/providers/global-state-provider").UpdateGlobalState<boolean>;
|
|
17
|
+
setOnline: import("../shared/providers/global-state-provider").UpdateGlobalState<boolean>;
|
|
17
18
|
toggleOnline: () => void;
|
|
18
19
|
};
|
|
19
20
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { SearchClient } from 'algoliasearch';
|
|
3
|
-
import { Autocomplete, GlobalSearchContextValue } from 'global-search/types';
|
|
3
|
+
import { Autocomplete, GlobalSearchContextValue } from '../global-search/types';
|
|
4
4
|
export declare const GlobalSearchContext: React.Context<GlobalSearchContextValue | null>;
|
|
5
5
|
export declare function AlgoliaSearchProvider({ children, searchClient: _searchClient, }: {
|
|
6
6
|
children?: ReactNode | ((autocomplete: Autocomplete) => ReactNode);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ProductHit, PromoHit } from 'shared/model/hit';
|
|
1
|
+
import { ProductHit, PromoHit } from '../shared/model/hit';
|
|
2
2
|
import { AlgoliaHit } from './algolia-hit-type';
|
|
3
|
-
export declare const useAlgoliaHitsItems: () => [AlgoliaHit[], import("shared/providers/global-state-provider").UpdateGlobalState<AlgoliaHit[]>];
|
|
4
|
-
export declare const useAlgoliaHitsLoading: () => [boolean | undefined, import("shared/providers/global-state-provider").UpdateGlobalState<boolean | undefined>];
|
|
3
|
+
export declare const useAlgoliaHitsItems: () => [AlgoliaHit[], import("../shared/providers/global-state-provider").UpdateGlobalState<AlgoliaHit[]>];
|
|
4
|
+
export declare const useAlgoliaHitsLoading: () => [boolean | undefined, import("../shared/providers/global-state-provider").UpdateGlobalState<boolean | undefined>];
|
|
5
5
|
interface UseHitsReturnType {
|
|
6
6
|
hits: (ProductHit | PromoHit)[];
|
|
7
7
|
isLoading: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UpdateGlobalState } from 'shared/providers/global-state-provider';
|
|
1
|
+
import { UpdateGlobalState } from '../shared/providers/global-state-provider';
|
|
2
2
|
export interface AlgoliaInsightsProviderGlobalState {
|
|
3
3
|
index?: string | undefined;
|
|
4
4
|
queryId?: string | undefined;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type AlgoliaInstantSearchStatus = 'idle' | 'loading' | 'stalled' | 'error';
|
|
2
|
+
export declare const useAlgoliaInstantSearchStateIndex: () => [string | undefined, import("../shared/providers/global-state-provider").UpdateGlobalState<string | undefined>];
|
|
3
|
+
export declare const useAlgoliaInstantSearchStateQueryId: () => [string | undefined, import("../shared/providers/global-state-provider").UpdateGlobalState<string | undefined>];
|
|
4
|
+
export declare const useAlgoliaInstantSearchStateOnline: (initialState?: boolean) => [boolean, import("../shared/providers/global-state-provider").UpdateGlobalState<boolean>];
|
|
5
|
+
export declare const useAlgoliaInstantSearchStateStatus: (initialState?: AlgoliaInstantSearchStatus) => [AlgoliaInstantSearchStatus, import("../shared/providers/global-state-provider").UpdateGlobalState<AlgoliaInstantSearchStatus>];
|
|
6
|
+
export interface AlgoliaInstantSearchState {
|
|
7
|
+
index?: string;
|
|
8
|
+
online: boolean;
|
|
9
|
+
queryId?: string;
|
|
10
|
+
status: AlgoliaInstantSearchStatus;
|
|
11
|
+
}
|
|
12
|
+
export declare function useAlgoliaInstantSearchState(initialState?: Partial<AlgoliaInstantSearchState>): {
|
|
13
|
+
index: string | undefined;
|
|
14
|
+
online: boolean;
|
|
15
|
+
queryId: string | undefined;
|
|
16
|
+
setIndex: import("../shared/providers/global-state-provider").UpdateGlobalState<string | undefined>;
|
|
17
|
+
setOnline: import("../shared/providers/global-state-provider").UpdateGlobalState<boolean>;
|
|
18
|
+
setQueryId: import("../shared/providers/global-state-provider").UpdateGlobalState<string | undefined>;
|
|
19
|
+
setStatus: import("../shared/providers/global-state-provider").UpdateGlobalState<AlgoliaInstantSearchStatus>;
|
|
20
|
+
status: AlgoliaInstantSearchStatus;
|
|
21
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AutocompleteCollection, BaseItem, InternalAutocompleteSource } from '@algolia/autocomplete-core';
|
|
2
|
-
import { CategoryHit } from 'global-search/plugins/categories-plugin';
|
|
3
|
-
import { PopularCategoryHit } from 'global-search/plugins/popular-categories-plugin';
|
|
4
|
-
import { PopularSearchHit } from 'global-search/plugins/popular-searches-plugin';
|
|
5
|
-
import { QuerySuggestionHit } from 'global-search/plugins/query-suggestions-plugin';
|
|
6
|
-
import { QuickAccessHit } from 'global-search/plugins/quick-access-plugin';
|
|
7
|
-
import { RecentSearchHit } from 'global-search/plugins/recent-searches-plugin';
|
|
2
|
+
import { CategoryHit } from '../global-search/plugins/categories-plugin';
|
|
3
|
+
import { PopularCategoryHit } from '../global-search/plugins/popular-categories-plugin';
|
|
4
|
+
import { PopularSearchHit } from '../global-search/plugins/popular-searches-plugin';
|
|
5
|
+
import { QuerySuggestionHit } from '../global-search/plugins/query-suggestions-plugin';
|
|
6
|
+
import { QuickAccessHit } from '../global-search/plugins/quick-access-plugin';
|
|
7
|
+
import { RecentSearchHit } from '../global-search/plugins/recent-searches-plugin';
|
|
8
8
|
import { AlgoliaHit } from './algolia-hit-type';
|
|
9
9
|
interface ExtendedAutoCompleteCollection<T extends BaseItem> extends AutocompleteCollection<T> {
|
|
10
10
|
source: ExtendedInternalAutocompleteSource<T>;
|
|
@@ -18,20 +18,20 @@ export declare function useAlgoliaSearch(): {
|
|
|
18
18
|
popularCategories: AutocompleteCollection<PopularCategoryHit> | undefined;
|
|
19
19
|
popularSearches: AutocompleteCollection<PopularSearchHit> | undefined;
|
|
20
20
|
products: {
|
|
21
|
-
items: (import("shared/model/hit").PromoHit | import("shared/model/hit").ProductHit)[];
|
|
21
|
+
items: (import("../shared/model/hit").PromoHit | import("../shared/model/hit").ProductHit)[];
|
|
22
22
|
source: InternalAutocompleteSource<AlgoliaHit>;
|
|
23
23
|
} | undefined;
|
|
24
24
|
querySuggestions: AutocompleteCollection<QuerySuggestionHit> | undefined;
|
|
25
25
|
quickAccess: AutocompleteCollection<QuickAccessHit> | undefined;
|
|
26
26
|
recentSearches: ExtendedAutoCompleteCollection<RecentSearchHit> | undefined;
|
|
27
|
-
autocomplete: import("
|
|
27
|
+
autocomplete: import("..").Autocomplete;
|
|
28
28
|
formRef: React.RefObject<HTMLFormElement>;
|
|
29
29
|
inputRef: React.RefObject<HTMLInputElement>;
|
|
30
30
|
panelRef: React.RefObject<HTMLDivElement>;
|
|
31
31
|
productsIndexName: string;
|
|
32
32
|
productsQuerySuggestionsIndexName: string;
|
|
33
33
|
searchClient: import("algoliasearch").SearchClient;
|
|
34
|
-
setState: React.Dispatch<React.SetStateAction<import("
|
|
35
|
-
state: import("
|
|
34
|
+
setState: React.Dispatch<React.SetStateAction<import("..").AutocompleteState>>;
|
|
35
|
+
state: import("..").AutocompleteState;
|
|
36
36
|
};
|
|
37
37
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ImageSourceType } from '../../shared/model/image';
|
|
2
2
|
export interface CategoryCardProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
href: string;
|
|
5
|
-
image:
|
|
5
|
+
image: ImageSourceType;
|
|
6
6
|
isSelected?: boolean;
|
|
7
7
|
onClick?: VoidFunction;
|
|
8
8
|
title: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { ImageSourceType } from '../../shared/model/image';
|
|
3
|
+
import { ProductTotalPriceType } from '../../shared/model/price';
|
|
4
4
|
export interface BaseOrderLineCardProps {
|
|
5
5
|
deliveryDate?: Date;
|
|
6
6
|
href: string;
|
|
7
7
|
id: string;
|
|
8
|
-
image:
|
|
8
|
+
image: ImageSourceType;
|
|
9
9
|
price: ProductTotalPriceType;
|
|
10
10
|
readonly: boolean;
|
|
11
11
|
sku: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { ImageSourceType } from '../../shared/model/image';
|
|
3
|
+
import type { ProductPriceType } from '../../shared/model/price';
|
|
4
4
|
export interface ProductCardProps {
|
|
5
5
|
addToCartButton: ReactElement;
|
|
6
6
|
favoriteButton?: ReactElement;
|
|
7
7
|
href: string;
|
|
8
8
|
id: string;
|
|
9
|
-
image:
|
|
9
|
+
image: ImageSourceType;
|
|
10
10
|
onClick?: VoidFunction;
|
|
11
11
|
price: ProductPriceType;
|
|
12
12
|
sku: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { Breakpoint } from 'shared/utils/breakpoints';
|
|
3
2
|
import { SwiperOptions } from 'swiper/types';
|
|
4
3
|
import 'swiper/css';
|
|
4
|
+
import { Breakpoint } from '../shared/utils/breakpoints';
|
|
5
5
|
type SlidesPerViewBreakpoints = Partial<Record<Breakpoint, number | 'auto'>>;
|
|
6
6
|
type SwiperBreakpoints = SwiperOptions['breakpoints'];
|
|
7
7
|
export interface CarouselProps {
|
|
@@ -10,5 +10,5 @@ interface PaginationProps {
|
|
|
10
10
|
numberOfPages: number;
|
|
11
11
|
onChange?: (page: number) => void;
|
|
12
12
|
}
|
|
13
|
-
export declare function
|
|
13
|
+
export declare function CarouselPagination({ contained, currentPage, numberOfPages, onChange, }: PaginationProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
14
14
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ImageType } from '../../shared/model/image';
|
|
2
2
|
interface Usp {
|
|
3
3
|
heading: string;
|
|
4
|
-
icon:
|
|
5
|
-
image:
|
|
4
|
+
icon: ImageType;
|
|
5
|
+
image: ImageType;
|
|
6
6
|
text: string;
|
|
7
7
|
}
|
|
8
8
|
interface ProductUspItemProps {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CountryCode, LanguageCode } from '../intl/types';
|
|
2
|
+
import { Country, Language } from '../shared/model/countries-languages';
|
|
3
|
+
interface ConnectedCountrySelectorProps {
|
|
4
|
+
defaultCountryCode: CountryCode;
|
|
5
|
+
defaultLanguageCode: LanguageCode;
|
|
6
|
+
onChange?: (args: {
|
|
7
|
+
country: Country;
|
|
8
|
+
language: Language;
|
|
9
|
+
}) => void;
|
|
10
|
+
showCountry?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function ConnectedCountrySelector({ defaultCountryCode, defaultLanguageCode, onChange, showCountry, }: ConnectedCountrySelectorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CountryCode, LanguageCode } from '../intl/types';
|
|
2
|
+
import { CountriesLanguages, Country, Language } from '../shared/model/countries-languages';
|
|
2
3
|
interface UseCountriesLanguagesArgs {
|
|
3
|
-
defaultCountryCode:
|
|
4
|
-
defaultLanguageCode:
|
|
4
|
+
defaultCountryCode: CountryCode;
|
|
5
|
+
defaultLanguageCode: LanguageCode;
|
|
5
6
|
}
|
|
6
7
|
interface UseCountriesLanguagesReturnTypeFetching {
|
|
7
8
|
countries: undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AutocompletePlugin } from '@algolia/autocomplete-core';
|
|
2
2
|
import { Hit } from '@algolia/client-search';
|
|
3
3
|
import { SearchClient } from 'algoliasearch';
|
|
4
|
-
import {
|
|
4
|
+
import { ImageType } from '../../shared/model/image';
|
|
5
5
|
export type PopularCategoryHit = Hit<{
|
|
6
6
|
href: string;
|
|
7
|
-
image:
|
|
7
|
+
image: ImageType;
|
|
8
8
|
title: string;
|
|
9
9
|
}>;
|
|
10
10
|
export declare const popularCategoriesPlugin: ({ productsIndexName, searchClient, }: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AutocompletePlugin } from '@algolia/autocomplete-core';
|
|
2
2
|
import { Hit } from '@algolia/client-search';
|
|
3
3
|
import { SearchClient } from 'algoliasearch';
|
|
4
|
-
import {
|
|
4
|
+
import { ImageType } from '../../shared/model/image';
|
|
5
5
|
export type QuickAccessHit = Hit<{
|
|
6
6
|
action: {
|
|
7
7
|
type: string;
|
|
8
8
|
url: string;
|
|
9
9
|
};
|
|
10
|
-
image:
|
|
10
|
+
image: ImageType;
|
|
11
11
|
}>;
|
|
12
12
|
export declare const quickAccessPlugin: ({ productsIndexName, searchClient, }: {
|
|
13
13
|
productsIndexName: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function NoSearchResults(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AutocompleteApi, AutocompleteState as _AutocompleteState } from '@algolia/autocomplete-core';
|
|
2
|
-
import { AlgoliaProductHit } from 'algolia/algolia-hit-type';
|
|
3
2
|
import { SearchClient } from 'algoliasearch';
|
|
3
|
+
import { AlgoliaProductHit } from '../algolia/algolia-hit-type';
|
|
4
4
|
import { CategoryHit } from './plugins/categories-plugin';
|
|
5
5
|
import { PopularCategoryHit } from './plugins/popular-categories-plugin';
|
|
6
6
|
import { PopularSearchHit } from './plugins/popular-searches-plugin';
|