@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.
Files changed (461) hide show
  1. package/dist/{src/algolia → algolia}/algolia-active-filters.d.ts +1 -1
  2. package/dist/{src/algolia → algolia}/algolia-hit-type.d.ts +2 -2
  3. package/dist/{src/algolia → algolia}/algolia-index-config.d.ts +2 -3
  4. package/dist/{src/algolia → algolia}/algolia-provider.d.ts +3 -2
  5. package/dist/{src/algolia → algolia}/algolia-search-provider.d.ts +1 -1
  6. package/dist/{src/algolia → algolia}/use-algolia-hits.d.ts +3 -3
  7. package/dist/{src/algolia → algolia}/use-algolia-insights-provider-global-state.d.ts +1 -1
  8. package/dist/algolia/use-algolia-instant-search-state.d.ts +21 -0
  9. package/dist/{src/algolia → algolia}/use-algolia-search.d.ts +10 -10
  10. package/dist/{src/cards → cards}/category-card/category-card.d.ts +2 -2
  11. package/dist/{src/cards → cards}/orderline-card/orderline-card.d.ts +3 -3
  12. package/dist/{src/cards → cards}/product-card/product-card.d.ts +3 -3
  13. package/dist/{src/carousel → carousel}/card-carousel/card-carousel.d.ts +1 -1
  14. package/dist/{src/carousel → carousel}/carousel.d.ts +1 -1
  15. package/dist/{src/carousel → carousel}/pagination/pagination.d.ts +1 -1
  16. package/dist/{src/carousel → carousel}/usp-carousel/product-usp-carousel-slide.d.ts +1 -1
  17. package/dist/{src/carousel → carousel}/usp-carousel/product-usp-carousel.d.ts +3 -3
  18. package/dist/country-selector/connected-country-selector.d.ts +13 -0
  19. package/dist/{src/country-selector → country-selector}/country-selector-dialog/country-selector-dialog.d.ts +1 -1
  20. package/dist/{src/country-selector → country-selector}/country-selector-trigger/country-selector-trigger.d.ts +1 -1
  21. package/dist/{src/country-selector → country-selector}/use-countries-languages.d.ts +4 -3
  22. package/dist/{src/forms → forms}/color-checkbox/color-checkbox.d.ts +1 -1
  23. package/dist/{src/global-search → global-search}/categories-grid/categories-grid.d.ts +1 -1
  24. package/dist/{src/global-search → global-search}/plugins/popular-categories-plugin.d.ts +2 -2
  25. package/dist/{src/global-search → global-search}/plugins/quick-access-plugin.d.ts +2 -2
  26. package/dist/{src/global-search → global-search}/search-input/search-input.d.ts +1 -1
  27. package/dist/global-search/search-result-panel/sections/no-search-results.d.ts +1 -0
  28. package/dist/{src/global-search → global-search}/types.d.ts +1 -1
  29. package/dist/index.d.ts +246 -5107
  30. package/dist/index.js +10769 -8898
  31. package/dist/intl/formatted-message.d.ts +3 -0
  32. package/dist/intl/intl-context.d.ts +8 -0
  33. package/dist/intl/intl-provider.d.ts +8 -0
  34. package/dist/intl/types.d.ts +31 -0
  35. package/dist/intl/use-culture-code.d.ts +3 -0
  36. package/dist/intl/use-formatted-message.d.ts +2 -0
  37. package/dist/intl/use-language-code.d.ts +2 -0
  38. package/dist/intl/utils.d.ts +3 -0
  39. package/dist/{src/media → media}/image/image.d.ts +2 -2
  40. package/dist/{src/media → media}/image-grid/images-grid.d.ts +1 -1
  41. package/dist/{src/media → media}/image-lightbox/image-lightbox.d.ts +1 -1
  42. package/dist/{src/modals → modals}/dialog/dialog.d.ts +1 -1
  43. package/dist/{src/notifications → notifications}/announcements/announcement.d.ts +2 -2
  44. package/dist/{src/pages → pages}/page/page.d.ts +1 -1
  45. package/dist/{src/pages → pages}/product-details-page/components/product-details-images/product-detail-images.d.ts +1 -1
  46. package/dist/{src/pages → pages}/product-details-page/components/product-details-panel/product-details-panel.d.ts +1 -1
  47. package/dist/pages/product-listing-page/product-listing-page-data-types.d.ts +24 -0
  48. package/dist/{src/pages → pages}/product-listing-page/product-listing-page-provider/product-listing-page-context.d.ts +1 -1
  49. package/dist/{src/pages → pages}/product-listing-page/product-listing-page-provider/use-subcategories.d.ts +1 -1
  50. package/dist/{src/promos → promos}/promo-banner/promo-banner.d.ts +2 -2
  51. package/dist/{src/promos → promos}/promo-banners/promo-banners.d.ts +2 -2
  52. package/dist/{src/promos → promos}/promo-card/promo-card.d.ts +1 -1
  53. package/dist/shared/api/bff/hooks/use-fetch-announcements.d.ts +2 -0
  54. package/dist/shared/api/bff/hooks/use-fetch-product-details-page-data.d.ts +2 -0
  55. package/dist/shared/api/bff/hooks/use-fetch-product-listing-page-data.d.ts +7 -0
  56. package/dist/shared/api/bff/services/bff-service.d.ts +14 -0
  57. package/dist/shared/api/storefront/hooks/authentication/use-fetch-session.d.ts +4 -0
  58. package/dist/shared/api/storefront/hooks/authentication/use-invalidate-session.d.ts +1 -0
  59. package/dist/{src/shared → shared}/api/storefront/hooks/authentication/use-sign-in.d.ts +1 -1
  60. package/dist/{src/shared → shared}/api/storefront/hooks/cart/use-add-product-to-current-cart.d.ts +2 -2
  61. package/dist/shared/api/storefront/hooks/cart/use-delete-current-cart.d.ts +2 -0
  62. package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-checkout-atp.d.ts +2 -0
  63. package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-lines.d.ts +1 -0
  64. package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-product-atp.d.ts +2 -0
  65. package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-promotions.d.ts +1 -0
  66. package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart.d.ts +4 -0
  67. package/dist/shared/api/storefront/hooks/cart/use-invalidate-current-cart.d.ts +1 -0
  68. package/dist/shared/api/storefront/hooks/cart/use-patch-cart.d.ts +4 -0
  69. package/dist/shared/api/storefront/hooks/cart/use-place-order.d.ts +4 -0
  70. package/dist/shared/api/storefront/hooks/cart/use-save-cart-for-later.d.ts +4 -0
  71. package/dist/{src/shared → shared}/api/storefront/hooks/cart/use-update-cart-line-by-id.d.ts +1 -1
  72. package/dist/shared/api/storefront/hooks/translation/use-fetch-translations.d.ts +4 -0
  73. package/dist/shared/api/storefront/hooks/website/use-fetch-countries-languages.d.ts +6 -0
  74. package/dist/shared/api/storefront/hooks/website/use-fetch-countries-with-languages.d.ts +3 -0
  75. package/dist/shared/api/storefront/hooks/website/use-fetch-settings.d.ts +4 -0
  76. package/dist/{src/shared → shared}/api/storefront/hooks/website/use-update-locale.d.ts +1 -1
  77. package/dist/{src/shared → shared}/api/storefront/hooks/wishlist/use-fetch-all-wishlists-items.d.ts +1 -1
  78. package/dist/{src/shared → shared}/api/storefront/hooks/wishlist/use-fetch-wishlists.d.ts +1 -1
  79. package/dist/{src/shared → shared}/api/storefront/model/shop.model.d.ts +64 -0
  80. package/dist/{src/shared → shared}/api/storefront/services/authentication-service.d.ts +9 -3
  81. package/dist/shared/api/storefront/services/cart-service.d.ts +30 -0
  82. package/dist/shared/api/storefront/services/translation-service.d.ts +2 -0
  83. package/dist/{src/shared → shared}/api/storefront/services/website-service.d.ts +4 -1
  84. package/dist/{src/shared → shared}/api/storefront/services/wishlist-service.d.ts +1 -1
  85. package/dist/shared/hooks/use-breakpoint.d.ts +2 -0
  86. package/dist/{src/shared → shared}/hooks/use-is-breakpoint.d.ts +1 -1
  87. package/dist/{src/shared → shared}/model/announcement.d.ts +1 -1
  88. package/dist/{src/shared → shared}/model/category.d.ts +3 -3
  89. package/dist/{src/shared → shared}/model/countries-languages.d.ts +4 -3
  90. package/dist/{src/shared → shared}/model/hit.d.ts +4 -4
  91. package/dist/{src/shared → shared}/model/image.d.ts +5 -5
  92. package/dist/{src/shared → shared}/model/price.d.ts +2 -2
  93. package/dist/{src/shared → shared}/providers/cart-provider.d.ts +1 -1
  94. package/dist/{src/shared → shared}/providers/favorite-provider.d.ts +4 -4
  95. package/dist/{src/shared → shared}/providers/global-state-provider.d.ts +1 -1
  96. package/dist/shared/routing/route-button.d.ts +1 -0
  97. package/dist/shared/routing/route-icon-button.d.ts +1 -0
  98. package/dist/shared/routing/route-link.d.ts +1 -0
  99. package/dist/shared/utils/environment.d.ts +3 -0
  100. package/dist/styles.css +4013 -3784
  101. package/package.json +6 -11
  102. package/dist/.storybook/RenderHook.d.ts +0 -1
  103. package/dist/node_modules/fast-equals/src/internalTypes.d.ts +0 -134
  104. package/dist/src/algolia/use-algolia-instant-search-state.d.ts +0 -21
  105. package/dist/src/badges/badge/badge.stories.d.ts +0 -17
  106. package/dist/src/badges/badge/icon-with-badge/icon-with-badge.stories.d.ts +0 -14
  107. package/dist/src/badges/tag/tag.stories.d.ts +0 -18
  108. package/dist/src/breadcrumbs/breadcrumb.stories.d.ts +0 -16
  109. package/dist/src/buttons/add-to-cart-button/add-to-cart-button.stories.d.ts +0 -11
  110. package/dist/src/buttons/button/button.stories.d.ts +0 -16
  111. package/dist/src/buttons/favorite/favorite-button.stories.d.ts +0 -7
  112. package/dist/src/buttons/icon-button/icon-button.stories.d.ts +0 -7
  113. package/dist/src/buttons/link/link.stories.d.ts +0 -13
  114. package/dist/src/buttons/print-button/print-button.stories.d.ts +0 -13
  115. package/dist/src/cards/category-card/category-card.stories.d.ts +0 -16
  116. package/dist/src/cards/orderline-card/orderline-card.stories.d.ts +0 -46
  117. package/dist/src/cards/product-card/product-card.stories.d.ts +0 -43
  118. package/dist/src/carousel/card-carousel/product-card-carousel.stories.d.ts +0 -20
  119. package/dist/src/carousel/card-carousel/promo-card-carousel.stories.d.ts +0 -20
  120. package/dist/src/carousel/category-carousel/category-carousel.stories.d.ts +0 -19
  121. package/dist/src/carousel/pagination/pagination.stories.d.ts +0 -14
  122. package/dist/src/carousel/usp-carousel/product-usp-carousel.stories.d.ts +0 -27
  123. package/dist/src/cart-totals/cart-totals.stories.d.ts +0 -16
  124. package/dist/src/collapsables/accordion/accordion.stories.d.ts +0 -20
  125. package/dist/src/collapsables/show-all/show-all.stories.d.ts +0 -9
  126. package/dist/src/country-selector/country-selector-dialog/country-selector-dialog.stories.d.ts +0 -20
  127. package/dist/src/country-selector/country-selector-trigger/country-selector-trigger.stories.d.ts +0 -16
  128. package/dist/src/country-selector/country-selector.d.ts +0 -12
  129. package/dist/src/country-selector/country-selector.stories.d.ts +0 -19
  130. package/dist/src/country-selector/use-countries-languages.stories.d.ts +0 -9
  131. package/dist/src/delivery-time/delivery-time.stories.d.ts +0 -13
  132. package/dist/src/display/product-price/product-price.stories.d.ts +0 -15
  133. package/dist/src/display/product-price/product-total-price.stories.d.ts +0 -14
  134. package/dist/src/display/product-sku/product-sku.stories.d.ts +0 -13
  135. package/dist/src/filters/active-filters/active-filters.stories.d.ts +0 -6
  136. package/dist/src/filters/multi-select/multi-select.stories.d.ts +0 -10
  137. package/dist/src/filters/pagination/pagination.stories.d.ts +0 -8
  138. package/dist/src/forms/checkbox/checkbox.stories.d.ts +0 -9
  139. package/dist/src/forms/color-checkbox/color-checkbox.stories.d.ts +0 -9
  140. package/dist/src/forms/field-error/field-error.stories.d.ts +0 -15
  141. package/dist/src/forms/input/input.stories.d.ts +0 -26
  142. package/dist/src/forms/label/label.stories.d.ts +0 -15
  143. package/dist/src/forms/number-field/number-field.stories.d.ts +0 -31
  144. package/dist/src/forms/select/select.stories.d.ts +0 -16
  145. package/dist/src/forms/text-field/text-field.stories.d.ts +0 -24
  146. package/dist/src/forms/textarea/textarea.stories.d.ts +0 -18
  147. package/dist/src/global-search/categories-grid/categories-grid.stories.d.ts +0 -14
  148. package/dist/src/global-search/global-search.stories.d.ts +0 -21
  149. package/dist/src/global-search/search-input/search-input.stories.d.ts +0 -6
  150. package/dist/src/global-search/search-result-panel/sections/no-results.d.ts +0 -1
  151. package/dist/src/header/cart-icon/connected-cart-icon.stories.d.ts +0 -12
  152. package/dist/src/index.d.ts +0 -98
  153. package/dist/src/intl/formatted-message.d.ts +0 -9
  154. package/dist/src/intl/formatted-message.stories.d.ts +0 -16
  155. package/dist/src/intl/intl-context.d.ts +0 -8
  156. package/dist/src/intl/intl-provider.d.ts +0 -8
  157. package/dist/src/intl/types.d.ts +0 -3
  158. package/dist/src/intl/use-format-message.d.ts +0 -13
  159. package/dist/src/intl/use-formatted-message.stories.d.ts +0 -15
  160. package/dist/src/intl/use-language-code.d.ts +0 -2
  161. package/dist/src/lists/download-document-list/document-download-list.stories.d.ts +0 -13
  162. package/dist/src/lists/feature-list/feature-list.stories.d.ts +0 -16
  163. package/dist/src/lists/orderline-list/orderline-list.stories.d.ts +0 -15
  164. package/dist/src/lists/product-overview-grid/product-overview-grid.stories.d.ts +0 -15
  165. package/dist/src/lists/ul/list-item.stories.d.ts +0 -14
  166. package/dist/src/lists/ul/list.stories.d.ts +0 -13
  167. package/dist/src/loading/progress-circle.stories.d.ts +0 -12
  168. package/dist/src/media/image/image.stories.d.ts +0 -17
  169. package/dist/src/media/image-grid/images-grid.stories.d.ts +0 -11
  170. package/dist/src/media/image-lightbox/image-lightbox.stories.d.ts +0 -13
  171. package/dist/src/modals/confirmation/confirmation-dialog.stories.d.ts +0 -19
  172. package/dist/src/modals/dialog/dialog.stories.d.ts +0 -45
  173. package/dist/src/modals/favorite/add-to-favorite-dialog.stories.d.ts +0 -12
  174. package/dist/src/modals/modal/modal.stories.d.ts +0 -44
  175. package/dist/src/modals/signin/sign-in-dialog.stories.d.ts +0 -19
  176. package/dist/src/notifications/announcements/announcement.stories.d.ts +0 -22
  177. package/dist/src/pages/page/page.stories.d.ts +0 -24
  178. package/dist/src/pages/page-container/page-container.stories.d.ts +0 -22
  179. package/dist/src/pages/product-details-page/product-details-page.stories.d.ts +0 -20
  180. package/dist/src/pages/product-listing-page/product-listing-page-data-types.d.ts +0 -24
  181. package/dist/src/pages/product-listing-page/product-listing-page.stories.d.ts +0 -23
  182. package/dist/src/pages/search-result-page/search-results-page.stories.d.ts +0 -22
  183. package/dist/src/promos/promo-banner/promo-banner.stories.d.ts +0 -19
  184. package/dist/src/promos/promo-banners/promo-banners.stories.d.ts +0 -16
  185. package/dist/src/promos/promo-card/promo-card.stories.d.ts +0 -12
  186. package/dist/src/shared/api/bff/hooks/use-fetch-announcements.d.ts +0 -6
  187. package/dist/src/shared/api/bff/hooks/use-fetch-product-details-page-data.d.ts +0 -7
  188. package/dist/src/shared/api/bff/hooks/use-fetch-product-details-page-data.stories.d.ts +0 -20
  189. package/dist/src/shared/api/bff/hooks/use-fetch-product-listing-page-data.d.ts +0 -6
  190. package/dist/src/shared/api/bff/hooks/use-fetch-product-listing-page-data.stories.d.ts +0 -20
  191. package/dist/src/shared/api/bff/services/bff-service.d.ts +0 -10
  192. package/dist/src/shared/api/storefront/hooks/authentication/authentication.stories.d.ts +0 -13
  193. package/dist/src/shared/api/storefront/hooks/authentication/use-session.d.ts +0 -4
  194. package/dist/src/shared/api/storefront/hooks/cart/cart.stories.d.ts +0 -12
  195. package/dist/src/shared/api/storefront/hooks/cart/use-fetch-current-cart-lines.d.ts +0 -2
  196. package/dist/src/shared/api/storefront/hooks/translation/translations.stories.d.ts +0 -9
  197. package/dist/src/shared/api/storefront/hooks/translation/use-fetch-translations.d.ts +0 -1
  198. package/dist/src/shared/api/storefront/hooks/website/use-fetch-countries-languages.d.ts +0 -4
  199. package/dist/src/shared/api/storefront/hooks/website/website.stories.d.ts +0 -10
  200. package/dist/src/shared/api/storefront/hooks/wishlist/wishlist.stories.d.ts +0 -10
  201. package/dist/src/shared/api/storefront/services/cart-service.d.ts +0 -16
  202. package/dist/src/shared/api/storefront/services/translation-service.d.ts +0 -2
  203. package/dist/src/shared/feature-flags/feature-flags.stories.d.ts +0 -9
  204. package/dist/src/shared/hooks/use-breakpoint.d.ts +0 -2
  205. package/dist/src/shared/model/cart.d.ts +0 -156
  206. package/dist/src/shared/routing/route-button.d.ts +0 -1
  207. package/dist/src/shared/routing/route-button.stories.d.ts +0 -15
  208. package/dist/src/shared/routing/route-icon-button.d.ts +0 -1
  209. package/dist/src/shared/routing/route-link.d.ts +0 -1
  210. package/dist/src/shared/routing/route-link.stories.d.ts +0 -15
  211. package/dist/src/shared/utils/environment.d.ts +0 -3
  212. package/dist/src/sidebar/sidebar.stories.d.ts +0 -8
  213. package/dist/src/toast/toast-provider.stories.d.ts +0 -10
  214. package/dist/src/toast/toast.stories.d.ts +0 -16
  215. package/dist/src/typography/heading/heading.stories.d.ts +0 -37
  216. /package/dist/{src/algolia → algolia}/algolia-active-categories.d.ts +0 -0
  217. /package/dist/{src/algolia → algolia}/algolia-categories-filters.d.ts +0 -0
  218. /package/dist/{src/algolia → algolia}/algolia-dummy-refinement-list-consumer.d.ts +0 -0
  219. /package/dist/{src/algolia → algolia}/algolia-filter-panel.d.ts +0 -0
  220. /package/dist/{src/algolia → algolia}/algolia-hits-provider.d.ts +0 -0
  221. /package/dist/{src/algolia → algolia}/algolia-insight-instant-search-provider.d.ts +0 -0
  222. /package/dist/{src/algolia → algolia}/algolia-insights-provider.d.ts +0 -0
  223. /package/dist/{src/algolia → algolia}/algolia-instant-search-state-provider.d.ts +0 -0
  224. /package/dist/{src/algolia → algolia}/algolia-intialization.d.ts +0 -0
  225. /package/dist/{src/algolia → algolia}/algolia-multi-select-filter-section.d.ts +0 -0
  226. /package/dist/{src/algolia → algolia}/algolia-pagination.d.ts +0 -0
  227. /package/dist/{src/algolia → algolia}/algolia-query-string-routing.d.ts +0 -0
  228. /package/dist/{src/algolia → algolia}/algolia-results-count.d.ts +0 -0
  229. /package/dist/{src/algolia → algolia}/algolia-searchclient-offline.d.ts +0 -0
  230. /package/dist/{src/algolia → algolia}/algolia-sonic-searchclient.d.ts +0 -0
  231. /package/dist/{src/algolia → algolia}/algolia-sort-by.d.ts +0 -0
  232. /package/dist/{src/algolia → algolia}/filter-section.d.ts +0 -0
  233. /package/dist/{src/algolia → algolia}/use-algolia-insights.d.ts +0 -0
  234. /package/dist/{src/background-overlay → background-overlay}/background-overlay.d.ts +0 -0
  235. /package/dist/{src/badges → badges}/badge/badge.d.ts +0 -0
  236. /package/dist/{src/badges → badges}/badge/icon-with-badge/icon-with-badge.d.ts +0 -0
  237. /package/dist/{src/badges → badges}/tag/tag.d.ts +0 -0
  238. /package/dist/{src/breadcrumbs → breadcrumbs}/breadcrumb.d.ts +0 -0
  239. /package/dist/{src/buttons → buttons}/add-to-cart-button/add-to-cart-button.d.ts +0 -0
  240. /package/dist/{src/buttons → buttons}/add-to-cart-button/connected-add-to-cart-button.d.ts +0 -0
  241. /package/dist/{src/buttons → buttons}/button/button.d.ts +0 -0
  242. /package/dist/{src/buttons → buttons}/favorite/connected-favorite-button.d.ts +0 -0
  243. /package/dist/{src/buttons → buttons}/favorite/favorite-button.d.ts +0 -0
  244. /package/dist/{src/buttons → buttons}/icon-button/icon-button.d.ts +0 -0
  245. /package/dist/{src/buttons → buttons}/link/link.d.ts +0 -0
  246. /package/dist/{src/buttons → buttons}/print-button/print-button.d.ts +0 -0
  247. /package/dist/{src/cards → cards}/orderline-card/connected-orderline-card.d.ts +0 -0
  248. /package/dist/{src/cards → cards}/orderline-card/connected-remove-button.d.ts +0 -0
  249. /package/dist/{src/cards → cards}/product-card/connected-product-card.d.ts +0 -0
  250. /package/dist/{src/carousel → carousel}/carousel-navigation-button.d.ts +0 -0
  251. /package/dist/{src/carousel → carousel}/category-carousel/category-carousel.d.ts +0 -0
  252. /package/dist/{src/carousel → carousel}/pagination/transitions.d.ts +0 -0
  253. /package/dist/{src/carousel → carousel}/usp-carousel/usp-carousel.d.ts +0 -0
  254. /package/dist/{src/cart-totals → cart-totals}/cart-totals.d.ts +0 -0
  255. /package/dist/{src/collapsables → collapsables}/accordion/accordion-item.d.ts +0 -0
  256. /package/dist/{src/collapsables → collapsables}/accordion/accordion.d.ts +0 -0
  257. /package/dist/{src/collapsables → collapsables}/show-all/show-all.d.ts +0 -0
  258. /package/dist/{src/config.d.ts → config.d.ts} +0 -0
  259. /package/dist/{src/delivery-time → delivery-time}/delivery-time.d.ts +0 -0
  260. /package/dist/{src/display → display}/product-price/product-price.d.ts +0 -0
  261. /package/dist/{src/display → display}/product-price/product-total-price.d.ts +0 -0
  262. /package/dist/{src/display → display}/product-sku/product-sku.d.ts +0 -0
  263. /package/dist/{src/filters → filters}/active-filters/active-filters.d.ts +0 -0
  264. /package/dist/{src/filters → filters}/multi-select/multi-select.d.ts +0 -0
  265. /package/dist/{src/filters → filters}/pagination/pagination.d.ts +0 -0
  266. /package/dist/{src/forms → forms}/checkbox/checkbox.d.ts +0 -0
  267. /package/dist/{src/forms → forms}/field-error/field-error.d.ts +0 -0
  268. /package/dist/{src/forms → forms}/input/input.d.ts +0 -0
  269. /package/dist/{src/forms → forms}/label/label.d.ts +0 -0
  270. /package/dist/{src/forms → forms}/number-field/number-field.d.ts +0 -0
  271. /package/dist/{src/forms → forms}/select/select.d.ts +0 -0
  272. /package/dist/{src/forms → forms}/text-field/text-field.d.ts +0 -0
  273. /package/dist/{src/forms → forms}/textarea/textarea.d.ts +0 -0
  274. /package/dist/{src/global-search → global-search}/global-search-provider/global-search-provider.d.ts +0 -0
  275. /package/dist/{src/global-search → global-search}/global-search-provider/use-search-disclosure.d.ts +0 -0
  276. /package/dist/{src/global-search → global-search}/global-search.d.ts +0 -0
  277. /package/dist/{src/global-search → global-search}/plugins/categories-plugin.d.ts +0 -0
  278. /package/dist/{src/global-search → global-search}/plugins/popular-searches-plugin.d.ts +0 -0
  279. /package/dist/{src/global-search → global-search}/plugins/query-suggestions-plugin.d.ts +0 -0
  280. /package/dist/{src/global-search → global-search}/plugins/recent-searches-plugin.d.ts +0 -0
  281. /package/dist/{src/global-search → global-search}/search-highlight/highlight.d.ts +0 -0
  282. /package/dist/{src/global-search → global-search}/search-input/connected-search-input.d.ts +0 -0
  283. /package/dist/{src/global-search → global-search}/search-result-panel/panel-content.d.ts +0 -0
  284. /package/dist/{src/global-search → global-search}/search-result-panel/search-result-panel.d.ts +0 -0
  285. /package/dist/{src/global-search → global-search}/search-result-panel/sections/no-search.d.ts +0 -0
  286. /package/dist/{src/global-search → global-search}/search-result-panel/sections/section-container.d.ts +0 -0
  287. /package/dist/{src/global-search → global-search}/search-result-panel/sections/with-results.d.ts +0 -0
  288. /package/dist/{src/global-search → global-search}/search-section/search-list-item.d.ts +0 -0
  289. /package/dist/{src/global-search → global-search}/search-section/search-list.d.ts +0 -0
  290. /package/dist/{src/global-search → global-search}/search-section/search-section.d.ts +0 -0
  291. /package/dist/{src/header → header}/cart-icon/connected-cart-icon.d.ts +0 -0
  292. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-black-left-icon.d.ts +0 -0
  293. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-black-right-icon.d.ts +0 -0
  294. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-blackcaps-left-icon.d.ts +0 -0
  295. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-blackcaps-right-icon.d.ts +0 -0
  296. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-bold-left-icon.d.ts +0 -0
  297. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-bold-right-icon.d.ts +0 -0
  298. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-boldcaps-left-icon.d.ts +0 -0
  299. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-boldcaps-right-icon.d.ts +0 -0
  300. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-regular-left-icon.d.ts +0 -0
  301. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-regular-right-icon.d.ts +0 -0
  302. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-regularcaps-left-icon.d.ts +0 -0
  303. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-regularcaps-right-icon.d.ts +0 -0
  304. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-semibold-left-icon.d.ts +0 -0
  305. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-semibold-right-icon.d.ts +0 -0
  306. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-semiboldcaps-left-icon.d.ts +0 -0
  307. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-semiboldcaps-right-icon.d.ts +0 -0
  308. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-thin-left-icon.d.ts +0 -0
  309. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-thin-right-icon.d.ts +0 -0
  310. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-thincaps-left-icon.d.ts +0 -0
  311. /package/dist/{src/icons → icons}/glyph/glyphs-arrow-thincaps-right-icon.d.ts +0 -0
  312. /package/dist/{src/icons → icons}/glyph/glyphs-chevrons-bold-down-icon.d.ts +0 -0
  313. /package/dist/{src/icons → icons}/glyph/glyphs-chevrons-bold-left-icon.d.ts +0 -0
  314. /package/dist/{src/icons → icons}/glyph/glyphs-chevrons-bold-right-icon.d.ts +0 -0
  315. /package/dist/{src/icons → icons}/glyph/glyphs-chevrons-bold-up-icon.d.ts +0 -0
  316. /package/dist/{src/icons → icons}/glyph/glyphs-chevrons-slim-down-icon.d.ts +0 -0
  317. /package/dist/{src/icons → icons}/glyph/glyphs-chevrons-slim-left-icon.d.ts +0 -0
  318. /package/dist/{src/icons → icons}/glyph/glyphs-chevrons-slim-right-icon.d.ts +0 -0
  319. /package/dist/{src/icons → icons}/glyph/glyphs-chevrons-slim-up-icon.d.ts +0 -0
  320. /package/dist/{src/icons → icons}/other/career-innovate-icon.d.ts +0 -0
  321. /package/dist/{src/icons → icons}/other/career-proactive-icon.d.ts +0 -0
  322. /package/dist/{src/icons → icons}/other/career-teamplayer-icon.d.ts +0 -0
  323. /package/dist/{src/icons → icons}/other/fallback-icon.d.ts +0 -0
  324. /package/dist/{src/icons → icons}/other/some-facebook-icon.d.ts +0 -0
  325. /package/dist/{src/icons → icons}/other/some-instagram-icon.d.ts +0 -0
  326. /package/dist/{src/icons → icons}/other/some-linkedin-icon.d.ts +0 -0
  327. /package/dist/{src/icons → icons}/other/some-mail-icon.d.ts +0 -0
  328. /package/dist/{src/icons → icons}/other/some-youtube-icon.d.ts +0 -0
  329. /package/dist/{src/icons → icons}/other/usp-efficiency-icon.d.ts +0 -0
  330. /package/dist/{src/icons → icons}/other/usp-style-icon.d.ts +0 -0
  331. /package/dist/{src/icons → icons}/other/usp-support-icon.d.ts +0 -0
  332. /package/dist/{src/icons → icons}/other/warranty-10y-icon.d.ts +0 -0
  333. /package/dist/{src/icons → icons}/other/warranty-1y-icon.d.ts +0 -0
  334. /package/dist/{src/icons → icons}/other/warranty-3y-icon.d.ts +0 -0
  335. /package/dist/{src/icons → icons}/other/warranty-5y-icon.d.ts +0 -0
  336. /package/dist/{src/icons → icons}/other/warranty-consumable-icon.d.ts +0 -0
  337. /package/dist/{src/icons → icons}/other/warranty-lifetime-icon.d.ts +0 -0
  338. /package/dist/{src/icons → icons}/solid/solid-attention-icon.d.ts +0 -0
  339. /package/dist/{src/icons → icons}/solid/solid-business-icon.d.ts +0 -0
  340. /package/dist/{src/icons → icons}/solid/solid-cart-icon.d.ts +0 -0
  341. /package/dist/{src/icons → icons}/solid/solid-clock-icon.d.ts +0 -0
  342. /package/dist/{src/icons → icons}/solid/solid-close-icon.d.ts +0 -0
  343. /package/dist/{src/icons → icons}/solid/solid-download-icon.d.ts +0 -0
  344. /package/dist/{src/icons → icons}/solid/solid-event-icon.d.ts +0 -0
  345. /package/dist/{src/icons → icons}/solid/solid-favorite-icon.d.ts +0 -0
  346. /package/dist/{src/icons → icons}/solid/solid-home-icon.d.ts +0 -0
  347. /package/dist/{src/icons → icons}/solid/solid-information-icon.d.ts +0 -0
  348. /package/dist/{src/icons → icons}/solid/solid-login-icon.d.ts +0 -0
  349. /package/dist/{src/icons → icons}/solid/solid-news-icon.d.ts +0 -0
  350. /package/dist/{src/icons → icons}/solid/solid-notice-icon.d.ts +0 -0
  351. /package/dist/{src/icons → icons}/solid/solid-okay-icon.d.ts +0 -0
  352. /package/dist/{src/icons → icons}/solid/solid-rating-icon.d.ts +0 -0
  353. /package/dist/{src/icons → icons}/solid/solid-sale-icon.d.ts +0 -0
  354. /package/dist/{src/icons → icons}/solid/solid-tag-icon.d.ts +0 -0
  355. /package/dist/{src/icons → icons}/solid/solid-trash-icon.d.ts +0 -0
  356. /package/dist/{src/icons → icons}/solid/solid-updateuser-icon.d.ts +0 -0
  357. /package/dist/{src/icons → icons}/solid/solid-vote-thumbsdown-icon.d.ts +0 -0
  358. /package/dist/{src/icons → icons}/solid/solid-vote-thumbsup-icon.d.ts +0 -0
  359. /package/dist/{src/icons → icons}/stroke/stroke-attention-icon.d.ts +0 -0
  360. /package/dist/{src/icons → icons}/stroke/stroke-business-icon.d.ts +0 -0
  361. /package/dist/{src/icons → icons}/stroke/stroke-cart-icon.d.ts +0 -0
  362. /package/dist/{src/icons → icons}/stroke/stroke-categories-icon.d.ts +0 -0
  363. /package/dist/{src/icons → icons}/stroke/stroke-checkmark-icon.d.ts +0 -0
  364. /package/dist/{src/icons → icons}/stroke/stroke-clock-icon.d.ts +0 -0
  365. /package/dist/{src/icons → icons}/stroke/stroke-close-icon.d.ts +0 -0
  366. /package/dist/{src/icons → icons}/stroke/stroke-closebox-icon.d.ts +0 -0
  367. /package/dist/{src/icons → icons}/stroke/stroke-closemenu-icon.d.ts +0 -0
  368. /package/dist/{src/icons → icons}/stroke/stroke-collapse-icon.d.ts +0 -0
  369. /package/dist/{src/icons → icons}/stroke/stroke-dehashed-icon.d.ts +0 -0
  370. /package/dist/{src/icons → icons}/stroke/stroke-download-icon.d.ts +0 -0
  371. /package/dist/{src/icons → icons}/stroke/stroke-expand-icon.d.ts +0 -0
  372. /package/dist/{src/icons → icons}/stroke/stroke-favorite-icon.d.ts +0 -0
  373. /package/dist/{src/icons → icons}/stroke/stroke-filter-icon.d.ts +0 -0
  374. /package/dist/{src/icons → icons}/stroke/stroke-hashed-icon.d.ts +0 -0
  375. /package/dist/{src/icons → icons}/stroke/stroke-home-icon.d.ts +0 -0
  376. /package/dist/{src/icons → icons}/stroke/stroke-information-icon.d.ts +0 -0
  377. /package/dist/{src/icons → icons}/stroke/stroke-login-icon.d.ts +0 -0
  378. /package/dist/{src/icons → icons}/stroke/stroke-menu-icon.d.ts +0 -0
  379. /package/dist/{src/icons → icons}/stroke/stroke-notice-icon.d.ts +0 -0
  380. /package/dist/{src/icons → icons}/stroke/stroke-okay-icon.d.ts +0 -0
  381. /package/dist/{src/icons → icons}/stroke/stroke-rating-icon.d.ts +0 -0
  382. /package/dist/{src/icons → icons}/stroke/stroke-recent-icon.d.ts +0 -0
  383. /package/dist/{src/icons → icons}/stroke/stroke-search-icon.d.ts +0 -0
  384. /package/dist/{src/icons → icons}/stroke/stroke-tag-icon.d.ts +0 -0
  385. /package/dist/{src/icons → icons}/stroke/stroke-trash-icon.d.ts +0 -0
  386. /package/dist/{src/icons → icons}/stroke/stroke-updateuser-icon.d.ts +0 -0
  387. /package/dist/{src/icons → icons}/stroke/stroke-vote-thumbsdown-icon.d.ts +0 -0
  388. /package/dist/{src/icons → icons}/stroke/stroke-vote-thumbsup-icon.d.ts +0 -0
  389. /package/dist/{src/intl → intl}/translation-id.d.ts +0 -0
  390. /package/dist/{src/lists → lists}/download-document-list/download-document-list.d.ts +0 -0
  391. /package/dist/{src/lists → lists}/feature-list/feature-list.d.ts +0 -0
  392. /package/dist/{src/lists → lists}/orderline-list/orderline-list.d.ts +0 -0
  393. /package/dist/{src/lists → lists}/product-overview-grid/product-overview-grid.d.ts +0 -0
  394. /package/dist/{src/lists → lists}/ul/list.d.ts +0 -0
  395. /package/dist/{src/loading → loading}/blank-page-spacer.d.ts +0 -0
  396. /package/dist/{src/loading → loading}/loading-overlay.d.ts +0 -0
  397. /package/dist/{src/loading → loading}/progress-circle.d.ts +0 -0
  398. /package/dist/{src/modals → modals}/confirmation/confirmation-dialog.d.ts +0 -0
  399. /package/dist/{src/modals → modals}/favorite/add-to-favorite-dialog.d.ts +0 -0
  400. /package/dist/{src/modals → modals}/modal/modal.d.ts +0 -0
  401. /package/dist/{src/modals → modals}/signin/sign-in-dialog.d.ts +0 -0
  402. /package/dist/{src/notifications → notifications}/announcements/announcement-provider.d.ts +0 -0
  403. /package/dist/{src/notifications → notifications}/announcements/connected-announcement.d.ts +0 -0
  404. /package/dist/{src/pages → pages}/error-page/error-page.d.ts +0 -0
  405. /package/dist/{src/pages → pages}/layouts/product-details-page-layout.d.ts +0 -0
  406. /package/dist/{src/pages → pages}/loading-page/loading-page.d.ts +0 -0
  407. /package/dist/{src/pages → pages}/page-container/page-container.d.ts +0 -0
  408. /package/dist/{src/pages → pages}/product-details-page/product-details-page.d.ts +0 -0
  409. /package/dist/{src/pages → pages}/product-listing-page/no-results/no-results.d.ts +0 -0
  410. /package/dist/{src/pages → pages}/product-listing-page/product-listing-page-category-carousel/product-listing-page-category-carousel.d.ts +0 -0
  411. /package/dist/{src/pages → pages}/product-listing-page/product-listing-page-provider/product-listing-page-provider.d.ts +0 -0
  412. /package/dist/{src/pages → pages}/product-listing-page/product-listing-page.d.ts +0 -0
  413. /package/dist/{src/pages → pages}/product-listing-page/product-listing-product-overview/product-listing-product-overview.d.ts +0 -0
  414. /package/dist/{src/pages → pages}/search-result-page/search-result-product-overview/search-result-product-overview.d.ts +0 -0
  415. /package/dist/{src/pages → pages}/search-result-page/search-results-page-category-carousel/search-results-page-category-carousel.d.ts +0 -0
  416. /package/dist/{src/pages → pages}/search-result-page/search-results-page.d.ts +0 -0
  417. /package/dist/{src/shared → shared}/api/bff/model/announcement.model.d.ts +0 -0
  418. /package/dist/{src/shared → shared}/api/bff/model/bff.model.d.ts +0 -0
  419. /package/dist/{src/shared → shared}/api/storefront/hooks/authentication/use-is-authenticated.d.ts +0 -0
  420. /package/dist/{src/shared → shared}/api/storefront/hooks/authentication/use-sign-out.d.ts +0 -0
  421. /package/dist/{src/shared → shared}/api/storefront/hooks/cart/use-delete-cart-line-by-id.d.ts +0 -0
  422. /package/dist/{src/shared → shared}/api/storefront/hooks/cart/use-fetch-current-cart-count.d.ts +0 -0
  423. /package/dist/{src/shared → shared}/api/storefront/hooks/website/use-fetch-countries.d.ts +0 -0
  424. /package/dist/{src/shared → shared}/api/storefront/hooks/wishlist/use-add-wishlist-item-to-current-wishlist.d.ts +0 -0
  425. /package/dist/{src/shared → shared}/api/storefront/hooks/wishlist/use-add-wishlist-item-to-wishlist.d.ts +0 -0
  426. /package/dist/{src/shared → shared}/api/storefront/hooks/wishlist/use-create-wishlist.d.ts +0 -0
  427. /package/dist/{src/shared → shared}/api/storefront/hooks/wishlist/use-delete-wishlist-item-from-wishlist.d.ts +0 -0
  428. /package/dist/{src/shared → shared}/feature-flags/use-feature-flags.d.ts +0 -0
  429. /package/dist/{src/shared → shared}/fetch/request.d.ts +0 -0
  430. /package/dist/{src/shared → shared}/hooks/use-cookie.d.ts +0 -0
  431. /package/dist/{src/shared → shared}/hooks/use-debounced-callback.d.ts +0 -0
  432. /package/dist/{src/shared → shared}/hooks/use-disclosure.d.ts +0 -0
  433. /package/dist/{src/shared → shared}/hooks/use-local-storage.d.ts +0 -0
  434. /package/dist/{src/shared → shared}/hooks/use-resize-observer.d.ts +0 -0
  435. /package/dist/{src/shared → shared}/hooks/use-scroll-lock.d.ts +0 -0
  436. /package/dist/{src/shared → shared}/hooks/use-scroll-to.d.ts +0 -0
  437. /package/dist/{src/shared → shared}/hooks/use-session-storage.d.ts +0 -0
  438. /package/dist/{src/shared → shared}/providers/react-query-container.d.ts +0 -0
  439. /package/dist/{src/shared → shared}/routing/route-provider.d.ts +0 -0
  440. /package/dist/{src/shared → shared}/routing/with-routing.d.ts +0 -0
  441. /package/dist/{src/shared → shared}/utils/breakpoints.d.ts +0 -0
  442. /package/dist/{src/shared → shared}/utils/date.d.ts +0 -0
  443. /package/dist/{src/shared → shared}/utils/date.test.d.ts +0 -0
  444. /package/dist/{src/shared → shared}/utils/event-emitter.d.ts +0 -0
  445. /package/dist/{src/shared → shared}/utils/local-storage.d.ts +0 -0
  446. /package/dist/{src/shared → shared}/utils/merge.d.ts +0 -0
  447. /package/dist/{src/shared → shared}/utils/price.d.ts +0 -0
  448. /package/dist/{src/shared → shared}/utils/time.d.ts +0 -0
  449. /package/dist/{src/shared → shared}/utils/uuid.d.ts +0 -0
  450. /package/dist/{src/shared → shared}/utils/wait.d.ts +0 -0
  451. /package/dist/{src/sidebar → sidebar}/sidebar-provider.d.ts +0 -0
  452. /package/dist/{src/sidebar → sidebar}/sidebar.d.ts +0 -0
  453. /package/dist/{src/sidebar → sidebar}/toggle-sidebar-button.d.ts +0 -0
  454. /package/dist/{src/sidebar → sidebar}/types.d.ts +0 -0
  455. /package/dist/{src/sidebar → sidebar}/use-sidebar.d.ts +0 -0
  456. /package/dist/{src/toast → toast}/toast-provider.d.ts +0 -0
  457. /package/dist/{src/toast → toast}/toast.d.ts +0 -0
  458. /package/dist/{src/toast → toast}/types.d.ts +0 -0
  459. /package/dist/{src/toast → toast}/use-toast.d.ts +0 -0
  460. /package/dist/{src/tokens → tokens}/tokens.d.ts +0 -0
  461. /package/dist/{src/typography → typography}/heading/heading.d.ts +0 -0
@@ -0,0 +1,3 @@
1
+ import { ComponentType } from 'react';
2
+ import { FormattedMessageProps } from './types';
3
+ export declare const FormattedMessage: ComponentType<FormattedMessageProps>;
@@ -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 } from './types';
2
+ export declare function useCultureCode(): CultureCode;
3
+ export declare function useUpdateCultureCode(): (cultureCode: CultureCode) => void;
@@ -0,0 +1,2 @@
1
+ import { PluralizedFormattedMessageFunction } from './types';
2
+ export declare function useFormattedMessage(): PluralizedFormattedMessageFunction;
@@ -0,0 +1,2 @@
1
+ import { LanguageCode } from './types';
2
+ export declare function useLanguageCode(): LanguageCode;
@@ -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 Image as ImageType, ResponsiveImage } from 'shared/model/image';
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 | ResponsiveImage | undefined;
7
+ image: ImageType | ResponsiveImageType | undefined;
8
8
  loading?: 'lazy' | 'eager';
9
9
  onError?: () => void;
10
10
  title: string;
@@ -1,4 +1,4 @@
1
- import { Image as ImageType } from 'shared/model/image';
1
+ import { ImageType } from '../../shared/model/image';
2
2
  interface ImagesGridProps {
3
3
  images: ImageType[];
4
4
  onSelectImage?: (image: ImageType, index: number) => void;
@@ -1,5 +1,5 @@
1
- import { Image as ImageType } from 'shared/model/image';
2
1
  import 'swiper/css';
2
+ import { ImageType } from '../../shared/model/image';
3
3
  export interface ImageLightboxProps {
4
4
  images: ImageType[];
5
5
  initialSelectedIndex?: number;
@@ -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 'modals/modal/modal';
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 { Announcement as AnnouncementType } from 'shared/model/announcement';
1
+ import { AnnouncementObject } from '../../shared/model/announcement';
2
2
  export interface AnnouncementProps {
3
- announcement: AnnouncementType;
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,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { BreadcrumbLink } from 'breadcrumbs/breadcrumb';
2
+ import { BreadcrumbLink } from '../../breadcrumbs/breadcrumb';
3
3
  export interface PageProps {
4
4
  breadCrumb: BreadcrumbLink[];
5
5
  children: ReactNode;
@@ -1,4 +1,4 @@
1
- import { Image as ImageType } from 'shared/model/image';
1
+ import { ImageType } from '../../../../shared/model/image';
2
2
  interface ProductDetailImagesProps {
3
3
  images: ImageType[];
4
4
  }
@@ -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 'pages/product-listing-page/product-listing-page-data-types';
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,4 +1,4 @@
1
1
  export declare function useSubcatagories(): {
2
2
  isLoading: boolean | undefined;
3
- subcategories: import("../product-listing-page-data-types").Category[] | undefined;
3
+ subcategories: import("../product-listing-page-data-types").CategoryType[] | undefined;
4
4
  };
@@ -1,7 +1,7 @@
1
- import { ResponsiveImage } from 'shared/model/image';
1
+ import { ResponsiveImageType } from '../../shared/model/image';
2
2
  export interface PromoBannerProps {
3
3
  href?: string;
4
- image: ResponsiveImage;
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 { ResponsiveImage } from 'shared/model/image';
1
+ import { ResponsiveImageType } from '../../shared/model/image';
2
2
  export interface PromoBannersProps {
3
3
  promoBannersData?: Array<{
4
4
  href: string;
5
- image: ResponsiveImage;
5
+ image: ResponsiveImageType;
6
6
  }>;
7
7
  }
8
8
  export declare function PromoBanners({ promoBannersData }: PromoBannersProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { Image as ImageType } from 'shared/model/image';
1
+ import { ImageType } from '../../shared/model/image';
2
2
  export interface PromoCardProps {
3
3
  href: string;
4
4
  image: ImageType;
@@ -0,0 +1,2 @@
1
+ import { FetchAnnouncementsArgs } from '../services/bff-service';
2
+ export declare function useFetchAnnouncements({ cultureCode }: FetchAnnouncementsArgs): import("@tanstack/react-query").UseQueryResult<import("../../../..").AnnouncementObject[], Error>;
@@ -0,0 +1,2 @@
1
+ import { FetchProductPageDataArgs } from '../services/bff-service';
2
+ export declare function useFetchProductDetailsPageData(args: FetchProductPageDataArgs): import("@tanstack/react-query").UseQueryResult<import("../model/bff.model").ProductDetailsPageDataResponse, Error>;
@@ -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,4 @@
1
+ import { SessionModel as ShopSessionModel } from '../../model/shop.model';
2
+ export declare function useFetchSession({ enabled, }?: {
3
+ enabled?: boolean;
4
+ }): import("@tanstack/react-query").UseQueryResult<ShopSessionModel, Error>;
@@ -0,0 +1 @@
1
+ export declare function useInvalidateSession(): () => Promise<void>;
@@ -1,4 +1,4 @@
1
- import { AuthenticationResponse } from 'shared/api/storefront/services/authentication-service';
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;
@@ -1,3 +1,3 @@
1
- import { AddProductToCurrentCartParams } from 'shared/api/storefront/services/cart-service';
2
- import { CartLineModel } from 'shared/model/cart';
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,2 @@
1
+ import { CartModel } from '../../model/shop.model';
2
+ export declare const useDeleteCurrentCart: () => import("@tanstack/react-query").UseMutationResult<CartModel, Error, void, unknown>;
@@ -0,0 +1,2 @@
1
+ import { CheckoutAtpEntry } from '../../model/shop.model';
2
+ export declare function useFetchCurrentCheckoutAtp(): import("@tanstack/react-query").UseQueryResult<CheckoutAtpEntry[], Error>;
@@ -0,0 +1 @@
1
+ export declare function useFetchCurrentCartLines(): import("@tanstack/react-query").UseQueryResult<import("../../model/shop.model").CartLineModel[], Error>;
@@ -0,0 +1,2 @@
1
+ import { ProductAtp } from '../../model/shop.model';
2
+ export declare function useFetchCurrentCartProductAtp(): import("@tanstack/react-query").UseQueryResult<ProductAtp[], Error>;
@@ -0,0 +1 @@
1
+ export declare function useFetchCurrentCartPromotions(): import("@tanstack/react-query").UseQueryResult<import("../../model/shop.model").PromotionModel[], Error>;
@@ -0,0 +1,4 @@
1
+ import { CartModel } from '../../model/shop.model';
2
+ export declare function useFetchCurrentCart<T = CartModel>({ select, }?: {
3
+ select?: (data: CartModel) => T;
4
+ }): import("@tanstack/react-query").UseQueryResult<T, Error>;
@@ -0,0 +1 @@
1
+ export declare function useInvalidateCurrentCart(): () => Promise<void>;
@@ -0,0 +1,4 @@
1
+ import { CartModel, PatchCartModel } from '../../model/shop.model';
2
+ export declare function usePatchCart(): import("@tanstack/react-query").UseMutationResult<CartModel, Error, {
3
+ cart: PatchCartModel;
4
+ }, unknown>;
@@ -0,0 +1,4 @@
1
+ import { CartModel } from '../../model/shop.model';
2
+ export declare const usePlaceOrder: () => import("@tanstack/react-query").UseMutationResult<CartModel, Error, {
3
+ cart: CartModel;
4
+ }, unknown>;
@@ -0,0 +1,4 @@
1
+ import { CartModel } from '../../model/shop.model';
2
+ export declare function useSaveCartForLater(): import("@tanstack/react-query").UseMutationResult<CartModel, Error, {
3
+ cart: CartModel;
4
+ }, unknown>;
@@ -1,4 +1,4 @@
1
- import { CartLineModel } from 'shared/model/cart';
1
+ import { CartLineModel } from '../../model/shop.model';
2
2
  export interface UpdateCartLineParams {
3
3
  cartLine: CartLineModel;
4
4
  cartLineId: string;
@@ -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>;
@@ -0,0 +1,3 @@
1
+ export declare function useFetchCountriesWithLanguages({ enabled, }?: {
2
+ enabled?: boolean;
3
+ }): import("@tanstack/react-query").UseQueryResult<import("../../../../..").Country[], Error>;
@@ -0,0 +1,4 @@
1
+ import { SettingsCollectionModel } from '../../model/shop.model';
2
+ export declare function useFetchSettings({ enabled, }?: {
3
+ enabled?: boolean;
4
+ }): import("@tanstack/react-query").UseQueryResult<SettingsCollectionModel, Error>;
@@ -1,4 +1,4 @@
1
- import { SessionModel } from 'shared/api/storefront/model/shop.model';
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,4 +1,4 @@
1
- import { WishListLines } from 'shared/api/storefront/model/shop.model';
1
+ import { WishListLines } from '../../model/shop.model';
2
2
  interface UseFetchAllWishListsItemsArgs {
3
3
  enabled?: boolean;
4
4
  }
@@ -1,2 +1,2 @@
1
- import { WishListCollectionModel as ShopWishListCollectionModel } from 'shared/api/storefront/model/shop.model';
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 'shared/api/storefront/model/shop.model';
2
- export declare function getSession(): Promise<ShopSessionModel>;
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<void>;
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>;
@@ -0,0 +1,2 @@
1
+ import { LanguageCode, Translations } from '../../../../intl/types';
2
+ export declare function fetchTranslations(languageCode: LanguageCode): Promise<Translations>;
@@ -1,10 +1,13 @@
1
- import { CountryModel, LanguageModel, SessionModel } from 'shared/api/storefront/model/shop.model';
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 'shared/api/storefront/model/shop.model';
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>;
@@ -0,0 +1,2 @@
1
+ import { BreakpointsReturnType } from '../utils/breakpoints';
2
+ export declare const useBreakpoint: () => BreakpointsReturnType;
@@ -1,2 +1,2 @@
1
- import { Breakpoint } from 'shared/utils/breakpoints';
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 Announcement {
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 { Image } from './image';
1
+ import { RefinementListItem } from '../../algolia/filter-section';
2
+ import type { ImageType } from './image';
3
3
  export interface Category {
4
4
  href: string;
5
- image: 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: string;
3
+ cultureCode: CultureCode;
3
4
  description: string;
4
5
  id: string;
5
- languageCode: string;
6
+ languageCode: LanguageCode;
6
7
  }
7
8
  export interface Country {
8
- abbreviation: string;
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 { Image } from 'shared/model/image';
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: 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: Image;
16
+ image: ImageType;
17
17
  isVatIncluded: boolean;
18
18
  labels: string[];
19
19
  name: string;