@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
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CultureCode, FormattedMessageFunction } from './types';
|
|
2
|
+
interface IntlContextType {
|
|
3
|
+
cultureCode: CultureCode;
|
|
4
|
+
formattedMessage: FormattedMessageFunction;
|
|
5
|
+
updateCultureCode: (cultureCode: CultureCode) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const IntlContext: React.Context<IntlContextType>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CultureCode, FormattedMessageFunction } from './types';
|
|
2
|
+
interface IntlProviderProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
cultureCode: CultureCode;
|
|
5
|
+
formattedMessage: FormattedMessageFunction;
|
|
6
|
+
}
|
|
7
|
+
export declare function IntlProvider({ children, cultureCode: _cultureCode, formattedMessage, }: IntlProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TranslationId } from './translation-id';
|
|
2
|
+
export type Translations = Record<TranslationId, string>;
|
|
3
|
+
type Letter = 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z';
|
|
4
|
+
export type CountryCode = Uppercase<`${Letter}${Letter}`>;
|
|
5
|
+
export type LanguageCode = Uppercase<`${Letter}${Letter}`>;
|
|
6
|
+
export declare function isCountryCode(value: unknown): value is CountryCode;
|
|
7
|
+
export declare function isLanguageCode(value: unknown): value is LanguageCode;
|
|
8
|
+
export type CultureCode = `${Lowercase<string>}-${Uppercase<string>}`;
|
|
9
|
+
export declare function isCultureCode(value: unknown): value is CultureCode;
|
|
10
|
+
export interface FormattedMessageOptions {
|
|
11
|
+
fallbackValue?: string;
|
|
12
|
+
optional?: boolean;
|
|
13
|
+
replacementValues?: Record<string, string>;
|
|
14
|
+
}
|
|
15
|
+
export interface FormattedMessageProps extends FormattedMessageOptions {
|
|
16
|
+
id: TranslationId;
|
|
17
|
+
}
|
|
18
|
+
export interface FormattedMessageFunction {
|
|
19
|
+
(id: TranslationId, options?: {
|
|
20
|
+
fallbackValue?: string;
|
|
21
|
+
optional?: boolean;
|
|
22
|
+
replacementValues?: Record<string, string>;
|
|
23
|
+
}): string;
|
|
24
|
+
}
|
|
25
|
+
export interface PluralizedFormattedMessageFunction extends FormattedMessageFunction {
|
|
26
|
+
pluralize: {
|
|
27
|
+
(translationId: string, count: number): string;
|
|
28
|
+
(translationIdPrefix: string, translationId: string, count: number): string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CultureCode, FormattedMessageFunction, LanguageCode } from './types';
|
|
2
|
+
export declare function getLanguageCodeFromCultureCode(cultureCode: CultureCode): LanguageCode;
|
|
3
|
+
export declare function spireTranslateAdapter(translate: (id: string, ...replacementValues: readonly string[]) => string | undefined): FormattedMessageFunction;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ImageType, ResponsiveImageType } from '../../shared/model/image';
|
|
2
2
|
interface ImageProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
fallbackSrc?: string;
|
|
5
5
|
fit?: 'contain' | 'cover';
|
|
6
6
|
height?: number;
|
|
7
|
-
image: ImageType |
|
|
7
|
+
image: ImageType | ResponsiveImageType | undefined;
|
|
8
8
|
loading?: 'lazy' | 'eager';
|
|
9
9
|
onError?: () => void;
|
|
10
10
|
title: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
import { Form as AriaForm } from 'react-aria-components';
|
|
3
|
-
import { ModalProps } from '
|
|
3
|
+
import { ModalProps } from '../modal/modal';
|
|
4
4
|
interface DialogProps extends Omit<ModalProps, 'children'> {
|
|
5
5
|
allowClose?: boolean;
|
|
6
6
|
cancelLabel?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnnouncementObject } from '../../shared/model/announcement';
|
|
2
2
|
export interface AnnouncementProps {
|
|
3
|
-
announcement:
|
|
3
|
+
announcement: AnnouncementObject;
|
|
4
4
|
onDismiss?: (id: string) => void;
|
|
5
5
|
}
|
|
6
6
|
export declare function Announcement({ announcement: { href, id, subType, text, title, type }, onDismiss, }: AnnouncementProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProductDetails } from 'shared/api/bff/model/bff.model';
|
|
1
|
+
import { ProductDetails } from '../../../../shared/api/bff/model/bff.model';
|
|
2
2
|
export declare function ProductDetailsPanel({ product }: {
|
|
3
3
|
product: ProductDetails;
|
|
4
4
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ImageType, ResponsiveImageType } from '../../shared/model/image';
|
|
2
|
+
export interface PromoBannerType {
|
|
3
|
+
href: string;
|
|
4
|
+
image: ResponsiveImageType;
|
|
5
|
+
}
|
|
6
|
+
export interface LinkType {
|
|
7
|
+
href: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CategoryType {
|
|
11
|
+
href: string;
|
|
12
|
+
image: ImageType;
|
|
13
|
+
title: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ProductListingPageData {
|
|
16
|
+
breadCrumb: LinkType[];
|
|
17
|
+
category: CategoryType | undefined;
|
|
18
|
+
categoryPages: string;
|
|
19
|
+
hierarchicalCategories: string[];
|
|
20
|
+
promoBanners?: {
|
|
21
|
+
top: PromoBannerType[] | undefined;
|
|
22
|
+
};
|
|
23
|
+
subcategories: CategoryType[] | undefined;
|
|
24
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProductListingPageData } from '
|
|
1
|
+
import { ProductListingPageData } from '../product-listing-page-data-types';
|
|
2
2
|
export interface ProductListingPageContextType {
|
|
3
3
|
data: ProductListingPageData | undefined;
|
|
4
4
|
error?: Error | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResponsiveImageType } from '../../shared/model/image';
|
|
2
2
|
export interface PromoBannerProps {
|
|
3
3
|
href?: string;
|
|
4
|
-
image:
|
|
4
|
+
image: ResponsiveImageType;
|
|
5
5
|
variant: 'sm' | 'lg';
|
|
6
6
|
}
|
|
7
7
|
export declare function PromoBanner({ href, image, variant }: PromoBannerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResponsiveImageType } from '../../shared/model/image';
|
|
2
2
|
export interface PromoBannersProps {
|
|
3
3
|
promoBannersData?: Array<{
|
|
4
4
|
href: string;
|
|
5
|
-
image:
|
|
5
|
+
image: ResponsiveImageType;
|
|
6
6
|
}>;
|
|
7
7
|
}
|
|
8
8
|
export declare function PromoBanners({ promoBannersData }: PromoBannersProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CultureCode } from '../../../../intl/types';
|
|
2
|
+
import { FetchProductPageDataArgs } from '../services/bff-service';
|
|
3
|
+
export interface FetchProductListingPageDataArgs {
|
|
4
|
+
cultureCode: CultureCode;
|
|
5
|
+
pageUrl: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function useFetchProductListingPageData(args: FetchProductPageDataArgs): import("@tanstack/react-query").UseQueryResult<import("../../../..").ProductListingPageData, Error>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CultureCode } from '../../../../intl/types';
|
|
2
|
+
import { ProductListingPageData } from '../../../../pages/product-listing-page/product-listing-page-data-types';
|
|
3
|
+
import { AnnouncementObject } from '../../../model/announcement';
|
|
4
|
+
import { ProductDetailsPageDataResponse } from '../model/bff.model';
|
|
5
|
+
export interface FetchAnnouncementsArgs {
|
|
6
|
+
cultureCode: CultureCode;
|
|
7
|
+
}
|
|
8
|
+
export declare function fetchAnnouncements({ cultureCode, }: FetchAnnouncementsArgs): Promise<AnnouncementObject[]>;
|
|
9
|
+
export interface FetchProductPageDataArgs {
|
|
10
|
+
cultureCode: CultureCode;
|
|
11
|
+
pageUrl: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function fetchProductDetailsPageData({ cultureCode, pageUrl, }: FetchProductPageDataArgs): Promise<ProductDetailsPageDataResponse>;
|
|
14
|
+
export declare function fetchProductListingPageData({ cultureCode, pageUrl, }: FetchProductPageDataArgs): Promise<ProductListingPageData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useInvalidateSession(): () => Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthenticationResponse } from '
|
|
1
|
+
import { AuthenticationResponse } from '../../services/authentication-service';
|
|
2
2
|
export declare function useSignIn(): import("@tanstack/react-query").UseMutationResult<AuthenticationResponse, Error, {
|
|
3
3
|
password: string;
|
|
4
4
|
userName: string;
|
package/dist/{src/shared → shared}/api/storefront/hooks/cart/use-add-product-to-current-cart.d.ts
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CartLineModel } from '../../model/shop.model';
|
|
2
|
+
import { AddProductToCurrentCartParams } from '../../services/cart-service';
|
|
3
3
|
export declare function useAddProductToCurrentCart(): import("@tanstack/react-query").UseMutationResult<CartLineModel, Error, AddProductToCurrentCartParams, unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useFetchCurrentCartLines(): import("@tanstack/react-query").UseQueryResult<import("../../model/shop.model").CartLineModel[], Error>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useFetchCurrentCartPromotions(): import("@tanstack/react-query").UseQueryResult<import("../../model/shop.model").PromotionModel[], Error>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useInvalidateCurrentCart(): () => Promise<void>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LanguageCode } from '../../../../../intl/types';
|
|
2
|
+
export declare function useFetchTranslations(languagCode: LanguageCode, { enabled }?: {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
}): import("@tanstack/react-query").UseQueryResult<import("../../../../../intl/types").Translations, Error>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function useFetchCountriesLanguages({ enabled, }?: {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
}): import("@tanstack/react-query").UseQueryResult<{
|
|
4
|
+
countries: import("../../model/shop.model").CountryModel[];
|
|
5
|
+
languages: import("../../model/shop.model").LanguageModel[];
|
|
6
|
+
}, Error>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SessionModel } from '
|
|
1
|
+
import { SessionModel } from '../../model/shop.model';
|
|
2
2
|
export declare function useUpdateLocale(): import("@tanstack/react-query").UseMutationResult<SessionModel, Error, {
|
|
3
3
|
countryId: string;
|
|
4
4
|
languageId: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WishListCollectionModel as ShopWishListCollectionModel } from '
|
|
1
|
+
import { WishListCollectionModel as ShopWishListCollectionModel } from '../../model/shop.model';
|
|
2
2
|
export declare function useFetchWishLists(): import("@tanstack/react-query").UseQueryResult<ShopWishListCollectionModel, Error>;
|
|
@@ -157,6 +157,14 @@ export interface SessionModel extends BaseModel {
|
|
|
157
157
|
userRoles: string;
|
|
158
158
|
userRolesTranslated: string;
|
|
159
159
|
}
|
|
160
|
+
export type PatchSessionModel = Partial<Omit<SessionModel, 'billTo' | 'shipTo'> & {
|
|
161
|
+
billTo?: BillToModel | {
|
|
162
|
+
id: string;
|
|
163
|
+
} | null;
|
|
164
|
+
shipTo?: ShipToModel | {
|
|
165
|
+
id: string;
|
|
166
|
+
} | null;
|
|
167
|
+
}>;
|
|
160
168
|
export interface ShipToModel extends BaseModel {
|
|
161
169
|
address1: string;
|
|
162
170
|
address2: string;
|
|
@@ -957,6 +965,11 @@ export interface CartModel extends BaseModel {
|
|
|
957
965
|
vmiLocationId?: string | null;
|
|
958
966
|
warehouses: WarehouseDto[] | null;
|
|
959
967
|
}
|
|
968
|
+
export type PatchCartModel = Partial<Omit<CartModel, 'billTo'> & {
|
|
969
|
+
billTo?: BillToModel | {
|
|
970
|
+
id: string;
|
|
971
|
+
} | null;
|
|
972
|
+
}>;
|
|
960
973
|
export interface WarehouseDto {
|
|
961
974
|
address1: string;
|
|
962
975
|
address2: string;
|
|
@@ -2945,3 +2958,54 @@ export interface WishListLine {
|
|
|
2945
2958
|
wishListItem: WishListLineModel;
|
|
2946
2959
|
}
|
|
2947
2960
|
export type WishListLines = Array<WishListLine>;
|
|
2961
|
+
export interface SearchSettingsModel extends BaseModel {
|
|
2962
|
+
allowFilteringForPreviouslyPurchasedProducts: boolean;
|
|
2963
|
+
autocompleteEnabled: boolean;
|
|
2964
|
+
enableBoostingByPurchaseHistory: boolean;
|
|
2965
|
+
searchHistoryEnabled: boolean;
|
|
2966
|
+
searchHistoryLimit: number;
|
|
2967
|
+
searchPath: string;
|
|
2968
|
+
searchProvider: string;
|
|
2969
|
+
}
|
|
2970
|
+
export interface SettingsModel extends BaseModel {
|
|
2971
|
+
settingsCollection: SettingsCollectionModel;
|
|
2972
|
+
}
|
|
2973
|
+
export interface SettingsCollectionModel {
|
|
2974
|
+
/** Settings can be extended, but the type isn't knowable to base code. */
|
|
2975
|
+
[key: string]: unknown | undefined;
|
|
2976
|
+
accountSettings: AccountSettingsModel;
|
|
2977
|
+
cartSettings: CartSettingsModel;
|
|
2978
|
+
customerSettings: CustomerSettingsModel;
|
|
2979
|
+
invoiceSettings: InvoiceSettingsModel;
|
|
2980
|
+
orderSettings: OrderSettingsModel;
|
|
2981
|
+
productSettings: ProductSettingsModel;
|
|
2982
|
+
quoteSettings: QuoteSettingsModel;
|
|
2983
|
+
searchSettings: SearchSettingsModel;
|
|
2984
|
+
websiteSettings: WebsiteSettingsModel;
|
|
2985
|
+
wishListSettings: WishListSettingsModel;
|
|
2986
|
+
}
|
|
2987
|
+
export interface ProductAtp {
|
|
2988
|
+
date: string;
|
|
2989
|
+
displayDate?: string;
|
|
2990
|
+
inStock?: boolean;
|
|
2991
|
+
productCode?: string;
|
|
2992
|
+
selected?: boolean;
|
|
2993
|
+
status?: 'OK' | 'NOT-OK';
|
|
2994
|
+
}
|
|
2995
|
+
export interface CheckoutAtpEntry {
|
|
2996
|
+
date: string | null;
|
|
2997
|
+
displayDate: string;
|
|
2998
|
+
selected: boolean;
|
|
2999
|
+
}
|
|
3000
|
+
export interface AdyenSettings {
|
|
3001
|
+
clientKey: string;
|
|
3002
|
+
}
|
|
3003
|
+
export interface PaymentAuthenticationModel {
|
|
3004
|
+
action: string;
|
|
3005
|
+
cartId: string;
|
|
3006
|
+
redirectHtml: string;
|
|
3007
|
+
region: string;
|
|
3008
|
+
sessionData: string;
|
|
3009
|
+
transactionId: string;
|
|
3010
|
+
webOrderNumber: string;
|
|
3011
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { SessionModel as ShopSessionModel } from '
|
|
2
|
-
export declare function
|
|
1
|
+
import { AccountModel, PatchSessionModel, SessionModel, SessionModel as ShopSessionModel } from '../model/shop.model';
|
|
2
|
+
export declare function fetchSession(): Promise<ShopSessionModel>;
|
|
3
|
+
export declare function patchSession({ session, }: {
|
|
4
|
+
session: PatchSessionModel;
|
|
5
|
+
}): Promise<ShopSessionModel>;
|
|
3
6
|
export interface AuthenticationResponse {
|
|
4
7
|
access_token: string;
|
|
5
8
|
error_description: string;
|
|
@@ -21,5 +24,8 @@ export declare function createSession({ accessToken, password, userName, }: {
|
|
|
21
24
|
accessToken: string;
|
|
22
25
|
password: string;
|
|
23
26
|
userName: string;
|
|
24
|
-
}): Promise<
|
|
27
|
+
}): Promise<SessionModel>;
|
|
25
28
|
export declare function signOut(): Promise<void>;
|
|
29
|
+
export declare function createGuestAccount({ defaultWarehouseId, }: {
|
|
30
|
+
defaultWarehouseId: string;
|
|
31
|
+
}): Promise<AccountModel>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CartLineModel, CartLineModel as ShopCartLineModel, CartModel, CheckoutAtpEntry, PatchCartModel, ProductAtp, PromotionModel } from '../model/shop.model';
|
|
2
|
+
export declare function fetchCurrentCart(): Promise<CartModel>;
|
|
3
|
+
export declare function fetchCurrentCartPromotions(): Promise<PromotionModel[]>;
|
|
4
|
+
export declare function fetchCurrentCartLines(): Promise<CartLineModel[] | null>;
|
|
5
|
+
export declare function updateCartLineById({ cartLine, cartLineId, }: {
|
|
6
|
+
cartLine: CartLineModel;
|
|
7
|
+
cartLineId: string;
|
|
8
|
+
}): Promise<void>;
|
|
9
|
+
export declare function patchCart({ cart }: {
|
|
10
|
+
cart: PatchCartModel;
|
|
11
|
+
}): Promise<CartModel>;
|
|
12
|
+
export declare function deleteCurrentCart(): Promise<CartModel>;
|
|
13
|
+
export declare function deleteCartLineById({ cartLineId, }: {
|
|
14
|
+
cartLineId: string;
|
|
15
|
+
}): Promise<void>;
|
|
16
|
+
export interface AddProductToCurrentCartParams {
|
|
17
|
+
productId: string;
|
|
18
|
+
qtyOrdered: number;
|
|
19
|
+
unitOfMeasure: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function addProductToCurrentCart(productOrderData: AddProductToCurrentCartParams): Promise<ShopCartLineModel>;
|
|
22
|
+
export declare function fetchCurrentCartProductAtp(): Promise<ProductAtp[]>;
|
|
23
|
+
export declare function fetchCurrentCheckoutAtp(): Promise<CheckoutAtpEntry[]>;
|
|
24
|
+
export declare function placeOrder({ cart, isPending, }: {
|
|
25
|
+
cart: CartModel;
|
|
26
|
+
isPending?: boolean;
|
|
27
|
+
}): Promise<CartModel>;
|
|
28
|
+
export declare function saveCartForLater({ cart }: {
|
|
29
|
+
cart: CartModel;
|
|
30
|
+
}): Promise<CartModel>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Country } from '../../../model/countries-languages';
|
|
2
|
+
import { CountryModel, LanguageModel, SessionModel, SettingsCollectionModel } from '../model/shop.model';
|
|
2
3
|
export declare function fetchCountries(): Promise<CountryModel[]>;
|
|
3
4
|
export declare function fetchCountriesLanguages(): Promise<{
|
|
4
5
|
countries: CountryModel[];
|
|
5
6
|
languages: LanguageModel[];
|
|
6
7
|
}>;
|
|
8
|
+
export declare function fetchCountriesWithLanguages(): Promise<Country[]>;
|
|
7
9
|
export declare function updateLocale({ countryId, languageId, }: {
|
|
8
10
|
countryId: string;
|
|
9
11
|
languageId: string;
|
|
10
12
|
}): Promise<SessionModel>;
|
|
13
|
+
export declare function fetchSettings(): Promise<SettingsCollectionModel>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WishListCollectionModel, WishListLineCollectionModel, WishListLineModel, WishListModel } from '
|
|
1
|
+
import { WishListCollectionModel, WishListLineCollectionModel, WishListLineModel, WishListModel } from '../model/shop.model';
|
|
2
2
|
export declare function getWishList({ wishListId, }: {
|
|
3
3
|
wishListId: string;
|
|
4
4
|
}): Promise<WishListModel>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Breakpoint } from '
|
|
1
|
+
import { Breakpoint } from '../utils/breakpoints';
|
|
2
2
|
export declare function useIsBreakpoint(breakpoint: Breakpoint): boolean;
|
|
@@ -2,7 +2,7 @@ export declare const announcementTypes: readonly ["promo", "service"];
|
|
|
2
2
|
export type AnnouncementType = (typeof announcementTypes)[number];
|
|
3
3
|
export declare const announcementSubTypes: readonly ["sales", "news", "critical", "informative", "notice", "event", "new_product_introduction"];
|
|
4
4
|
export type AnnouncementSubType = (typeof announcementSubTypes)[number];
|
|
5
|
-
export interface
|
|
5
|
+
export interface AnnouncementObject {
|
|
6
6
|
endDate?: Date;
|
|
7
7
|
href: string;
|
|
8
8
|
id: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RefinementListItem } from 'algolia/filter-section';
|
|
2
|
-
import type {
|
|
1
|
+
import { RefinementListItem } from '../../algolia/filter-section';
|
|
2
|
+
import type { ImageType } from './image';
|
|
3
3
|
export interface Category {
|
|
4
4
|
href: string;
|
|
5
|
-
image:
|
|
5
|
+
image: ImageType;
|
|
6
6
|
title: string;
|
|
7
7
|
}
|
|
8
8
|
export declare function transformAlgoliaCategoryData(categories: RefinementListItem[]): {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { CountryCode, CultureCode, LanguageCode } from '../../intl/types';
|
|
1
2
|
export interface Language {
|
|
2
|
-
cultureCode:
|
|
3
|
+
cultureCode: CultureCode;
|
|
3
4
|
description: string;
|
|
4
5
|
id: string;
|
|
5
|
-
languageCode:
|
|
6
|
+
languageCode: LanguageCode;
|
|
6
7
|
}
|
|
7
8
|
export interface Country {
|
|
8
|
-
abbreviation:
|
|
9
|
+
abbreviation: CountryCode;
|
|
9
10
|
id: string;
|
|
10
11
|
languages: Language[];
|
|
11
12
|
name: string;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { AlgoliaProductHit, AlgoliaPromoHit } from 'algolia/algolia-hit-type';
|
|
2
|
-
import {
|
|
1
|
+
import { AlgoliaProductHit, AlgoliaPromoHit } from '../../algolia/algolia-hit-type';
|
|
2
|
+
import { ImageType } from './image';
|
|
3
3
|
export declare function transformAlgoliaPromoHitToPromoHit(algoliaPromoHit: AlgoliaPromoHit): PromoHit;
|
|
4
4
|
export declare function transformAlgoliaProductHitToProductHit(algoliaProductHit: AlgoliaProductHit): ProductHit;
|
|
5
5
|
export interface PromoHit {
|
|
6
6
|
hit: AlgoliaPromoHit;
|
|
7
7
|
href: string;
|
|
8
8
|
id: string;
|
|
9
|
-
image:
|
|
9
|
+
image: ImageType;
|
|
10
10
|
isExternal: boolean;
|
|
11
11
|
type: 'promo';
|
|
12
12
|
}
|
|
13
13
|
export interface ProductHit {
|
|
14
14
|
hit: AlgoliaProductHit;
|
|
15
15
|
id: string;
|
|
16
|
-
image:
|
|
16
|
+
image: ImageType;
|
|
17
17
|
isVatIncluded: boolean;
|
|
18
18
|
labels: string[];
|
|
19
19
|
name: string;
|