@faststore/core 3.99.1 → 4.0.0-dev.4

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 (543) hide show
  1. package/.turbo/turbo-generate.log +29 -0
  2. package/.turbo/turbo-test.log +47 -16
  3. package/@generated/cached-operations.json +24 -0
  4. package/@generated/gql.ts +134 -210
  5. package/@generated/graphql.ts +1628 -3037
  6. package/@generated/index.ts +1 -1
  7. package/@generated/persisted-documents.json +1 -1
  8. package/@generated/schema.graphql +1854 -1743
  9. package/CHANGELOG.md +28 -4
  10. package/README.md +2 -1
  11. package/api/index.ts +6 -7
  12. package/cms/faststore/base.jsonc +1 -1
  13. package/cms/faststore/components/cms_component__alert.jsonc +5 -1
  14. package/cms/faststore/components/cms_component__bannernewsletter.jsonc +5 -1
  15. package/cms/faststore/components/cms_component__bannertext.jsonc +5 -1
  16. package/cms/faststore/components/cms_component__breadcrumb.jsonc +16 -4
  17. package/cms/faststore/components/cms_component__cartsidebar.jsonc +21 -1
  18. package/cms/faststore/components/cms_component__children.jsonc +5 -1
  19. package/cms/faststore/components/cms_component__crosssellingshelf.jsonc +5 -1
  20. package/cms/faststore/components/cms_component__emptystate.jsonc +8 -3
  21. package/cms/faststore/components/cms_component__footer.jsonc +9 -3
  22. package/cms/faststore/components/cms_component__hero.jsonc +5 -1
  23. package/cms/faststore/components/cms_component__incentives.jsonc +5 -1
  24. package/cms/faststore/components/cms_component__navbar.jsonc +139 -1
  25. package/cms/faststore/components/cms_component__newsletter.jsonc +5 -1
  26. package/cms/faststore/components/cms_component__productdetails.jsonc +33 -1
  27. package/cms/faststore/components/cms_component__productgallery.jsonc +113 -15
  28. package/cms/faststore/components/cms_component__productshelf.jsonc +5 -1
  29. package/cms/faststore/components/cms_component__producttiles.jsonc +5 -1
  30. package/cms/faststore/components/cms_component__regionbar.jsonc +5 -1
  31. package/cms/faststore/components/cms_component__regionmodal.jsonc +5 -1
  32. package/cms/faststore/components/cms_component__regionpopover.jsonc +5 -1
  33. package/cms/faststore/components/cms_component__scrolltotopbutton.jsonc +29 -0
  34. package/cms/faststore/components/cms_component__search.jsonc +5 -1
  35. package/cms/faststore/content-types.json +115 -0
  36. package/cms/faststore/pages/cms_content_type__globalsections.jsonc +52 -0
  37. package/cms/faststore/pages/cms_content_type__home.jsonc +6 -0
  38. package/cms/faststore/pages/cms_content_type__landingpage.jsonc +8 -1
  39. package/cms/faststore/pages/cms_content_type__pdp.jsonc +6 -0
  40. package/cms/faststore/pages/cms_content_type__plp.jsonc +17 -0
  41. package/cms/faststore/pages/cms_content_type__search.jsonc +17 -0
  42. package/cms/faststore/schema.json +547 -43
  43. package/cms/faststore/sections.json +330 -21
  44. package/discovery.config.default.js +49 -3
  45. package/next-env.d.ts +2 -1
  46. package/next.config.js +48 -26
  47. package/package.json +47 -60
  48. package/public/icons.svg +5 -1
  49. package/scripts/i18n.js +76 -0
  50. package/src/components/account/MyAccountDrawer/OrganizationDrawer/OrganizationDrawer.tsx +2 -1
  51. package/src/components/account/MyAccountDrawer/OrganizationDrawer/section.module.scss +25 -24
  52. package/src/components/account/MyAccountDrawer/ProfileSummary/profile-summary.scss +8 -6
  53. package/src/components/account/MyAccountLayout/styles.scss +16 -12
  54. package/src/components/account/MyAccountMenu/styles.scss +21 -22
  55. package/src/components/account/MyAccountUserDetails/styles.module.scss +4 -2
  56. package/src/components/account/components/MyAccountAccordion/styles.scss +4 -2
  57. package/src/components/account/components/MyAccountHeader/styles.scss +3 -1
  58. package/src/components/account/components/MyAccountTable/styles.scss +6 -4
  59. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/section.module.scss +21 -19
  60. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/MyAccountListOrdersTable.tsx +3 -1
  61. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/styles.scss +5 -3
  62. package/src/components/account/orders/MyAccountListOrders/styles.module.scss +25 -22
  63. package/src/components/account/orders/MyAccountOrderDetails/MyAccountBudgetsCard/styles.scss +7 -5
  64. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/styles.scss +7 -5
  65. package/src/components/account/orders/MyAccountOrderDetails/MyAccountMoreInformationCard/styles.scss +3 -1
  66. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActionModal/styles.module.scss +8 -6
  67. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActions/styles.scss +3 -1
  68. package/src/components/account/orders/MyAccountOrderDetails/MyAccountStatusCard/styles.scss +8 -6
  69. package/src/components/account/orders/MyAccountOrderDetails/section.module.scss +36 -43
  70. package/src/components/account/profile/profile.module.scss +3 -1
  71. package/src/components/account/section.module.scss +3 -1
  72. package/src/components/account/security/styles.module.scss +14 -8
  73. package/src/components/cart/CartSidebar/CartSidebar.tsx +10 -1
  74. package/src/components/cart/CartSidebar/section.module.scss +19 -17
  75. package/src/components/cart/EmptyCart/EmptyCart.tsx +12 -4
  76. package/src/components/cms/GlobalSections.tsx +12 -12
  77. package/src/components/cms/RenderSections.tsx +10 -2
  78. package/src/components/cms/plp/Components.ts +9 -0
  79. package/src/components/common/Alert/section.module.scss +10 -5
  80. package/src/components/common/PreviewTag/section.module.scss +48 -40
  81. package/src/components/common/Toast/section.module.scss +4 -2
  82. package/src/components/localization/LocalizationSelector/LocalizationSelector.tsx +320 -0
  83. package/src/components/localization/LocalizationSelector/index.ts +1 -0
  84. package/src/components/localization/LocalizationSelector/section.module.scss +18 -0
  85. package/src/components/localization/index.ts +1 -0
  86. package/src/components/navigation/Navbar/Navbar.tsx +49 -1
  87. package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +19 -1
  88. package/src/components/navigation/NavbarSlider/section.module.scss +12 -10
  89. package/src/components/product/OutOfStock/OutOfStock.tsx +6 -1
  90. package/src/components/product/ProductCard/ProductCard.tsx +1 -1
  91. package/src/components/region/RegionModal/RegionModal.tsx +4 -1
  92. package/src/components/region/RegionModal/section.module.scss +10 -8
  93. package/src/components/region/RegionPopover/RegionPopover.tsx +6 -5
  94. package/src/components/region/RegionPopover/section.module.scss +9 -7
  95. package/src/components/region/RegionSlider/RegionSlider.tsx +5 -2
  96. package/src/components/region/RegionSlider/section.module.scss +16 -13
  97. package/src/components/search/Filter/FilterDeliveryMethodFacet.tsx +5 -5
  98. package/src/components/search/Filter/FilterDesktop.tsx +13 -4
  99. package/src/components/search/Filter/FilterSlider.tsx +18 -6
  100. package/src/components/search/Filter/section.module.scss +21 -19
  101. package/src/components/search/SearchDropdown/SearchDropdown.tsx +9 -7
  102. package/src/components/search/SearchHistory/SearchHistory.tsx +7 -2
  103. package/src/components/search/SearchInput/SearchInput.tsx +21 -8
  104. package/src/components/search/SearchProductItem/SearchProductItem.tsx +10 -3
  105. package/src/components/search/SearchTop/SearchTop.tsx +30 -24
  106. package/src/components/search/Sort/Sort.tsx +17 -19
  107. package/src/components/sections/Alert/Alert.tsx +6 -1
  108. package/src/components/sections/BannerNewsletter/section.module.scss +6 -4
  109. package/src/components/sections/BannerText/section.module.scss +5 -3
  110. package/src/components/sections/Breadcrumb/Breadcrumb.tsx +6 -2
  111. package/src/components/sections/Breadcrumb/section.module.scss +7 -5
  112. package/src/components/sections/EmptyState/section.module.scss +5 -3
  113. package/src/components/sections/Footer/Footer.tsx +1 -5
  114. package/src/components/sections/Footer/section.module.scss +10 -8
  115. package/src/components/sections/Hero/Hero.tsx +3 -1
  116. package/src/components/sections/Hero/section.module.scss +6 -4
  117. package/src/components/sections/Incentives/section.module.scss +5 -3
  118. package/src/components/sections/Navbar/Navbar.tsx +45 -0
  119. package/src/components/sections/Navbar/section.module.scss +34 -33
  120. package/src/components/sections/Newsletter/section.module.scss +10 -8
  121. package/src/components/sections/ProductDetails/ProductDetails.tsx +23 -1
  122. package/src/components/sections/ProductDetails/section.module.scss +32 -30
  123. package/src/components/sections/ProductGallery/EmptyGallery.tsx +13 -16
  124. package/src/components/sections/ProductGallery/section.module.scss +42 -39
  125. package/src/components/sections/ProductShelf/section.module.scss +22 -17
  126. package/src/components/sections/ProductTiles/section.module.scss +15 -13
  127. package/src/components/sections/RegionBar/section.module.scss +5 -3
  128. package/src/components/sections/ScrollToTopButton/ScrollToTopButton.tsx +4 -3
  129. package/src/components/sections/ScrollToTopButton/section.module.scss +4 -2
  130. package/src/components/templates/LandingPage/LandingPage.tsx +22 -16
  131. package/src/components/templates/ProductListingPage/ProductListing.tsx +1 -13
  132. package/src/components/templates/ProductListingPage/ProductListingPage.tsx +8 -3
  133. package/src/components/ui/Breadcrumb/Breadcrumb.tsx +14 -11
  134. package/src/components/ui/Button/ButtonSignIn/ButtonSignIn.tsx +2 -1
  135. package/src/components/ui/Button/ButtonSignIn/ButtonSignInFallback/ButtonSignInFallback.tsx +3 -1
  136. package/src/components/ui/Link/Link.tsx +19 -2
  137. package/src/components/ui/LinkButton/LinkButton.tsx +28 -0
  138. package/src/components/ui/LinkButton/index.ts +2 -0
  139. package/src/components/ui/LocalizationButton/LocalizationButton.tsx +124 -0
  140. package/src/components/ui/LocalizationButton/index.ts +1 -0
  141. package/src/components/ui/PickupPoints/PickupPointCards.tsx +2 -4
  142. package/src/components/ui/ProductComparison/ProductComparisonSidebar.tsx +34 -17
  143. package/src/components/ui/ProductDescription/ProductDescription.tsx +8 -3
  144. package/src/components/ui/ProductDetails/AddToCartLoadingSkeleton.tsx +6 -2
  145. package/src/components/ui/ProductDetails/ProductDetailsSettings.tsx +17 -5
  146. package/src/components/ui/ProductGallery/ProductGallery.tsx +7 -3
  147. package/src/components/ui/ProductGallery/ProductGalleryPage.tsx +1 -3
  148. package/src/components/ui/ShippingSimulation/ShippingSimulation.tsx +6 -1
  149. package/src/customizations/src/styles/custom-mixins.scss +0 -2
  150. package/src/experimental/index.ts +26 -0
  151. package/src/experimental/myAccountServerSideProps.ts +11 -2
  152. package/src/experimental/searchServerSideFunctions/getServerSideProps.ts +13 -7
  153. package/src/experimental/searchServerSideFunctions/getStaticProps.ts +5 -4
  154. package/src/instrumentation.ts +20 -6
  155. package/src/pages/404.tsx +5 -4
  156. package/src/pages/500.tsx +5 -4
  157. package/src/pages/[...slug].tsx +7 -4
  158. package/src/pages/[slug]/p.tsx +26 -8
  159. package/src/pages/_app.tsx +9 -1
  160. package/src/pages/api/fs/logout.ts +3 -2
  161. package/src/pages/api/graphql.ts +7 -23
  162. package/src/pages/api/preview.ts +21 -8
  163. package/src/pages/checkout.tsx +15 -5
  164. package/src/pages/index.tsx +19 -10
  165. package/src/pages/login.tsx +5 -4
  166. package/src/pages/pvt/account/403.tsx +11 -2
  167. package/src/pages/pvt/account/404.tsx +13 -3
  168. package/src/pages/pvt/account/index.tsx +6 -4
  169. package/src/pages/pvt/account/orders/[id].tsx +11 -3
  170. package/src/pages/pvt/account/orders/index.tsx +11 -3
  171. package/src/pages/pvt/account/profile.tsx +11 -2
  172. package/src/pages/pvt/account/security.tsx +11 -2
  173. package/src/pages/pvt/account/user-details.tsx +11 -2
  174. package/src/pages/s.tsx +26 -6
  175. package/src/proxy.ts +154 -0
  176. package/src/sdk/account/refreshToken.ts +4 -4
  177. package/src/sdk/account/useReorder.ts +8 -2
  178. package/src/sdk/analytics/platform/vtex/search.ts +3 -2
  179. package/src/sdk/cart/redirectToCheckout.ts +14 -8
  180. package/src/sdk/cart/useCheckoutButton.ts +7 -1
  181. package/src/sdk/deliveryPromise/useDeliveryPromise.ts +10 -18
  182. package/src/sdk/graphql/request.ts +102 -50
  183. package/src/sdk/localization/bindingSelector.ts +91 -0
  184. package/src/sdk/localization/index.ts +4 -0
  185. package/src/sdk/localization/match-url.ts +64 -0
  186. package/src/sdk/localization/types.ts +31 -0
  187. package/src/sdk/localization/useBindingSelector.ts +183 -0
  188. package/src/sdk/localization/useLocaleValidation.ts +49 -0
  189. package/src/sdk/localization/useLocalizationConfig.tsx +160 -0
  190. package/src/sdk/offer/fetcher.ts +3 -2
  191. package/src/sdk/product/useLocalizedVariables.ts +1 -1
  192. package/src/sdk/product/usePageProductsQuery.ts +2 -2
  193. package/src/sdk/product/useProductGalleryQuery.ts +1 -2
  194. package/src/sdk/product/useProductLink.ts +3 -1
  195. package/src/sdk/search/formatSearchPath.ts +28 -3
  196. package/src/sdk/search/state.ts +22 -13
  197. package/src/sdk/search/useSearchBase.ts +10 -0
  198. package/src/sdk/search/useSearchHistory.ts +41 -7
  199. package/src/sdk/session/index.ts +21 -3
  200. package/src/sdk/shipping/useShippingSimulation.ts +10 -2
  201. package/src/sdk/tsconfig.json +6 -0
  202. package/src/sdk/ui/useLink.ts +48 -0
  203. package/src/server/cms/global.ts +40 -0
  204. package/src/server/cms/index.ts +18 -10
  205. package/src/server/cms/pdp.ts +1 -0
  206. package/src/server/cms/plp.ts +3 -0
  207. package/src/server/content/service.ts +36 -24
  208. package/src/server/content/types.ts +10 -3
  209. package/src/server/index.ts +27 -20
  210. package/src/server/options.ts +27 -2
  211. package/src/styles/global/index.scss +10 -7
  212. package/src/styles/main.scss +3 -3
  213. package/src/typings/locales.ts +41 -0
  214. package/src/utils/fetchProductGallerySSR.ts +3 -1
  215. package/src/utils/getBaseDomain.ts +2 -1
  216. package/src/utils/getRequestHostname.ts +26 -0
  217. package/src/utils/globalSettings.ts +11 -0
  218. package/src/utils/localization/bindingPaths.ts +337 -0
  219. package/src/utils/localization/validateLocaleForHostname.ts +69 -0
  220. package/src/utils/localization/withLocaleValidation.ts +36 -0
  221. package/src/utils/utilities.ts +22 -0
  222. package/test/pages/api/preview.test.ts +93 -0
  223. package/test/sdk/localization/bindingSelector.test.ts +246 -0
  224. package/test/sdk/localization/store-url.browser.test.ts +140 -0
  225. package/test/sdk/localization/store-url.test.ts +96 -0
  226. package/test/sdk/localization/useBindingSelector.test.tsx +219 -0
  227. package/test/sdk/search/useSearchHistory.test.ts +222 -0
  228. package/test/server/cms/index.test.ts +3 -4
  229. package/test/server/content/service.test.ts +98 -0
  230. package/test/server/index.test.ts +10 -22
  231. package/test/utils/cookieCacheBusting.test.ts +32 -24
  232. package/test/utils/getRequestHostname.test.ts +71 -0
  233. package/test/utils/localization/bindingPaths.test.ts +706 -0
  234. package/test/utils/match-url.test.ts +388 -0
  235. package/tsconfig.json +11 -3
  236. package/vitest.config.ts +61 -0
  237. package/.next/BUILD_ID +0 -1
  238. package/.next/build-manifest.json +0 -197
  239. package/.next/cache/.tsbuildinfo +0 -1
  240. package/.next/cache/config.json +0 -7
  241. package/.next/cache/webpack/client-production/0.pack +0 -0
  242. package/.next/cache/webpack/client-production/index.pack +0 -0
  243. package/.next/cache/webpack/edge-server-production/0.pack +0 -0
  244. package/.next/cache/webpack/edge-server-production/index.pack +0 -0
  245. package/.next/cache/webpack/server-production/0.pack +0 -0
  246. package/.next/cache/webpack/server-production/index.pack +0 -0
  247. package/.next/export-marker.json +0 -1
  248. package/.next/images-manifest.json +0 -1
  249. package/.next/next-minimal-server.js.nft.json +0 -1
  250. package/.next/next-server.js.nft.json +0 -1
  251. package/.next/package.json +0 -1
  252. package/.next/prerender-manifest.js +0 -1
  253. package/.next/prerender-manifest.json +0 -1
  254. package/.next/react-loadable-manifest.json +0 -478
  255. package/.next/required-server-files.json +0 -1
  256. package/.next/routes-manifest.json +0 -1
  257. package/.next/server/chunks/1280.js +0 -1
  258. package/.next/server/chunks/1454.js +0 -1
  259. package/.next/server/chunks/1554.js +0 -1
  260. package/.next/server/chunks/1607.js +0 -1
  261. package/.next/server/chunks/1780.js +0 -1
  262. package/.next/server/chunks/1917.js +0 -1
  263. package/.next/server/chunks/1972.js +0 -1
  264. package/.next/server/chunks/2230.js +0 -1
  265. package/.next/server/chunks/2249.js +0 -1
  266. package/.next/server/chunks/2430.js +0 -1
  267. package/.next/server/chunks/2445.js +0 -12
  268. package/.next/server/chunks/2570.js +0 -1
  269. package/.next/server/chunks/2792.js +0 -1
  270. package/.next/server/chunks/2903.js +0 -1
  271. package/.next/server/chunks/294.js +0 -1
  272. package/.next/server/chunks/2955.js +0 -1
  273. package/.next/server/chunks/3006.js +0 -1
  274. package/.next/server/chunks/3029.js +0 -1
  275. package/.next/server/chunks/3060.js +0 -1
  276. package/.next/server/chunks/3408.js +0 -1
  277. package/.next/server/chunks/3483.js +0 -1
  278. package/.next/server/chunks/3683.js +0 -1
  279. package/.next/server/chunks/3836.js +0 -1
  280. package/.next/server/chunks/3890.js +0 -494
  281. package/.next/server/chunks/3922.js +0 -1
  282. package/.next/server/chunks/3945.js +0 -1
  283. package/.next/server/chunks/3951.js +0 -7
  284. package/.next/server/chunks/416.js +0 -1
  285. package/.next/server/chunks/4194.js +0 -1
  286. package/.next/server/chunks/4365.js +0 -1
  287. package/.next/server/chunks/4451.js +0 -1
  288. package/.next/server/chunks/4803.js +0 -1
  289. package/.next/server/chunks/4913.js +0 -13
  290. package/.next/server/chunks/5402.js +0 -1
  291. package/.next/server/chunks/5723.js +0 -13
  292. package/.next/server/chunks/5796.js +0 -1
  293. package/.next/server/chunks/6393.js +0 -1
  294. package/.next/server/chunks/6457.js +0 -6
  295. package/.next/server/chunks/6698.js +0 -1
  296. package/.next/server/chunks/6804.js +0 -6
  297. package/.next/server/chunks/6886.js +0 -1
  298. package/.next/server/chunks/7098.js +0 -9
  299. package/.next/server/chunks/7169.js +0 -1
  300. package/.next/server/chunks/7228.js +0 -1
  301. package/.next/server/chunks/7275.js +0 -1
  302. package/.next/server/chunks/7371.js +0 -1
  303. package/.next/server/chunks/7692.js +0 -1
  304. package/.next/server/chunks/7799.js +0 -1
  305. package/.next/server/chunks/8068.js +0 -1
  306. package/.next/server/chunks/83.js +0 -1
  307. package/.next/server/chunks/831.js +0 -1
  308. package/.next/server/chunks/8563.js +0 -1
  309. package/.next/server/chunks/8569.js +0 -1
  310. package/.next/server/chunks/8687.js +0 -1
  311. package/.next/server/chunks/870.js +0 -1
  312. package/.next/server/chunks/8737.js +0 -1
  313. package/.next/server/chunks/8741.js +0 -1
  314. package/.next/server/chunks/9088.js +0 -1
  315. package/.next/server/chunks/9117.js +0 -1
  316. package/.next/server/chunks/9237.js +0 -1
  317. package/.next/server/chunks/948.js +0 -3
  318. package/.next/server/chunks/9563.js +0 -3
  319. package/.next/server/chunks/9570.js +0 -1
  320. package/.next/server/chunks/9740.js +0 -1
  321. package/.next/server/chunks/9853.js +0 -1
  322. package/.next/server/chunks/9984.js +0 -1
  323. package/.next/server/chunks/9985.js +0 -1
  324. package/.next/server/chunks/9990.js +0 -1
  325. package/.next/server/chunks/ButtonSignIn.js +0 -1
  326. package/.next/server/chunks/Dropdown.js +0 -1
  327. package/.next/server/chunks/DropdownButton.js +0 -1
  328. package/.next/server/chunks/DropdownItem.js +0 -1
  329. package/.next/server/chunks/DropdownMenu.js +0 -1
  330. package/.next/server/chunks/FilterSkeleton.js +0 -1
  331. package/.next/server/chunks/ScrollToTopButton.js +0 -1
  332. package/.next/server/chunks/UIBannerText.js +0 -1
  333. package/.next/server/chunks/UISKUMatrixSidebar.js +0 -1
  334. package/.next/server/chunks/font-manifest.json +0 -1
  335. package/.next/server/edge-instrumentation.js +0 -2
  336. package/.next/server/edge-instrumentation.js.map +0 -1
  337. package/.next/server/edge-runtime-webpack.js +0 -157
  338. package/.next/server/edge-runtime-webpack.js.map +0 -1
  339. package/.next/server/font-manifest.json +0 -1
  340. package/.next/server/functions-config-manifest.json +0 -1
  341. package/.next/server/instrumentation.js +0 -1
  342. package/.next/server/instrumentation.js.nft.json +0 -1
  343. package/.next/server/middleware-build-manifest.js +0 -1
  344. package/.next/server/middleware-manifest.json +0 -6
  345. package/.next/server/middleware-react-loadable-manifest.js +0 -1
  346. package/.next/server/next-font-manifest.js +0 -1
  347. package/.next/server/next-font-manifest.json +0 -1
  348. package/.next/server/pages/404.js +0 -1
  349. package/.next/server/pages/404.js.nft.json +0 -1
  350. package/.next/server/pages/500.js +0 -1
  351. package/.next/server/pages/500.js.nft.json +0 -1
  352. package/.next/server/pages/[...slug].js +0 -1
  353. package/.next/server/pages/[...slug].js.nft.json +0 -1
  354. package/.next/server/pages/[slug]/p.js +0 -1
  355. package/.next/server/pages/[slug]/p.js.nft.json +0 -1
  356. package/.next/server/pages/_app.js +0 -1
  357. package/.next/server/pages/_app.js.nft.json +0 -1
  358. package/.next/server/pages/_document.js +0 -1
  359. package/.next/server/pages/_document.js.nft.json +0 -1
  360. package/.next/server/pages/_error.js +0 -1
  361. package/.next/server/pages/_error.js.nft.json +0 -1
  362. package/.next/server/pages/api/fs/logout.js +0 -1
  363. package/.next/server/pages/api/fs/logout.js.nft.json +0 -1
  364. package/.next/server/pages/api/graphql.js +0 -3
  365. package/.next/server/pages/api/graphql.js.nft.json +0 -1
  366. package/.next/server/pages/api/health/live.js +0 -1
  367. package/.next/server/pages/api/health/live.js.nft.json +0 -1
  368. package/.next/server/pages/api/health/ready.js +0 -1
  369. package/.next/server/pages/api/health/ready.js.nft.json +0 -1
  370. package/.next/server/pages/api/preview.js +0 -1
  371. package/.next/server/pages/api/preview.js.nft.json +0 -1
  372. package/.next/server/pages/checkout.js +0 -1
  373. package/.next/server/pages/checkout.js.nft.json +0 -1
  374. package/.next/server/pages/en-US/404.html +0 -42
  375. package/.next/server/pages/en-US/404.json +0 -1
  376. package/.next/server/pages/en-US/500.html +0 -42
  377. package/.next/server/pages/en-US/500.json +0 -1
  378. package/.next/server/pages/en-US/checkout.html +0 -42
  379. package/.next/server/pages/en-US/checkout.json +0 -1
  380. package/.next/server/pages/en-US/login.html +0 -42
  381. package/.next/server/pages/en-US/login.json +0 -1
  382. package/.next/server/pages/en-US/s.html +0 -42
  383. package/.next/server/pages/en-US/s.json +0 -1
  384. package/.next/server/pages/en-US.html +0 -42
  385. package/.next/server/pages/en-US.json +0 -1
  386. package/.next/server/pages/index.js +0 -1
  387. package/.next/server/pages/index.js.nft.json +0 -1
  388. package/.next/server/pages/login.js +0 -1
  389. package/.next/server/pages/login.js.nft.json +0 -1
  390. package/.next/server/pages/pvt/account/403.js +0 -1
  391. package/.next/server/pages/pvt/account/403.js.nft.json +0 -1
  392. package/.next/server/pages/pvt/account/404.js +0 -1
  393. package/.next/server/pages/pvt/account/404.js.nft.json +0 -1
  394. package/.next/server/pages/pvt/account/[...unknown].js +0 -1
  395. package/.next/server/pages/pvt/account/[...unknown].js.nft.json +0 -1
  396. package/.next/server/pages/pvt/account/orders/[id].js +0 -1
  397. package/.next/server/pages/pvt/account/orders/[id].js.nft.json +0 -1
  398. package/.next/server/pages/pvt/account/orders.js +0 -1
  399. package/.next/server/pages/pvt/account/orders.js.nft.json +0 -1
  400. package/.next/server/pages/pvt/account/profile.js +0 -1
  401. package/.next/server/pages/pvt/account/profile.js.nft.json +0 -1
  402. package/.next/server/pages/pvt/account/security.js +0 -1
  403. package/.next/server/pages/pvt/account/security.js.nft.json +0 -1
  404. package/.next/server/pages/pvt/account/user-details.js +0 -1
  405. package/.next/server/pages/pvt/account/user-details.js.nft.json +0 -1
  406. package/.next/server/pages/pvt/account.js +0 -1
  407. package/.next/server/pages/pvt/account.js.nft.json +0 -1
  408. package/.next/server/pages/s.js +0 -1
  409. package/.next/server/pages/s.js.nft.json +0 -1
  410. package/.next/server/pages-manifest.json +0 -1
  411. package/.next/server/webpack-api-runtime.js +0 -1
  412. package/.next/server/webpack-runtime.js +0 -1
  413. package/.next/static/NAuY8lqaeBBZf9CMZuYI2/_buildManifest.js +0 -1
  414. package/.next/static/NAuY8lqaeBBZf9CMZuYI2/_ssgManifest.js +0 -1
  415. package/.next/static/chunks/227-f109b24190a008ab.js +0 -8
  416. package/.next/static/chunks/2284.185d834d9829b652.js +0 -1
  417. package/.next/static/chunks/2851.e68ed3c8d27a032a.js +0 -1
  418. package/.next/static/chunks/2927.5a79877943a6bf7c.js +0 -1
  419. package/.next/static/chunks/3155.7bc4c730a79d9ecb.js +0 -1
  420. package/.next/static/chunks/3166-0b30a3887c0c346d.js +0 -1
  421. package/.next/static/chunks/3399.017c5209b74b0d97.js +0 -1
  422. package/.next/static/chunks/3483.ef53d632a763da3f.js +0 -1
  423. package/.next/static/chunks/349.b3b38e1e9f719dda.js +0 -1
  424. package/.next/static/chunks/3802.5e8b0b689eacc0f8.js +0 -1
  425. package/.next/static/chunks/3836.620480018be48233.js +0 -1
  426. package/.next/static/chunks/4436.e7af66f0b654ee36.js +0 -1
  427. package/.next/static/chunks/4803.b1920b6e3a1a6304.js +0 -1
  428. package/.next/static/chunks/5796.4351370494d8b8b6.js +0 -1
  429. package/.next/static/chunks/6393.55f991b1a6bb4fe7.js +0 -1
  430. package/.next/static/chunks/6700.b23221a57514e737.js +0 -1
  431. package/.next/static/chunks/6789.960162355435a81d.js +0 -1
  432. package/.next/static/chunks/7191-befad64ba238a817.js +0 -1
  433. package/.next/static/chunks/7692.8d5bf4560341a2f6.js +0 -1
  434. package/.next/static/chunks/7861.7f9f1a124a43da30.js +0 -6
  435. package/.next/static/chunks/8068.43663fb64762f7b8.js +0 -1
  436. package/.next/static/chunks/83.e0c16f0299b364a5.js +0 -1
  437. package/.next/static/chunks/8325.dabe9aa22eaadeed.js +0 -1
  438. package/.next/static/chunks/8587.53c8ce185ed1a2cb.js +0 -1
  439. package/.next/static/chunks/9173-e89da04079c35360.js +0 -2
  440. package/.next/static/chunks/9237.7555603703f81bf7.js +0 -1
  441. package/.next/static/chunks/9298-1d1ed0a54133cb59.js +0 -28
  442. package/.next/static/chunks/9399.d116a7fd62024783.js +0 -1
  443. package/.next/static/chunks/941.3e2782ab9c490eb0.js +0 -1
  444. package/.next/static/chunks/9701.f9a0bfffba8807dc.js +0 -1
  445. package/.next/static/chunks/9909.787576b171184aa5.js +0 -1
  446. package/.next/static/chunks/9960.7ef77f8a8b046170.js +0 -1
  447. package/.next/static/chunks/9979.aedbc094bdc2c599.js +0 -1
  448. package/.next/static/chunks/BannerNewsletter.00328ad162109908.js +0 -1
  449. package/.next/static/chunks/BannerText.dbbec87cadb8a521.js +0 -1
  450. package/.next/static/chunks/ButtonSignIn.f6e210eaca873e48.js +0 -1
  451. package/.next/static/chunks/CartItem.b34e295377f6f94f.js +0 -1
  452. package/.next/static/chunks/CartSidebar.ac447d1ef6276da1.js +0 -1
  453. package/.next/static/chunks/Dropdown.38b48c749bad6b60.js +0 -1
  454. package/.next/static/chunks/DropdownButton.66fa6b25dddb3a07.js +0 -1
  455. package/.next/static/chunks/DropdownItem.38b8f5a07c7f422a.js +0 -1
  456. package/.next/static/chunks/DropdownMenu.48b11521a24c6efd.js +0 -1
  457. package/.next/static/chunks/EmptyCart.320e2f94a0d5e6b1.js +0 -1
  458. package/.next/static/chunks/FilterSkeleton.7ab99e28f92341c9.js +0 -1
  459. package/.next/static/chunks/Footer.166b02c2f13980c6.js +0 -1
  460. package/.next/static/chunks/Gift.c49ba26da2fbab5e.js +0 -1
  461. package/.next/static/chunks/Newsletter.fc406f6029057022.js +0 -1
  462. package/.next/static/chunks/OrderSummary.5957d69f990d9add.js +0 -1
  463. package/.next/static/chunks/PreviewTag.f4f0c8710a7bcad9.js +0 -1
  464. package/.next/static/chunks/ProductShelf.cc46f5cdeeaeaff6.js +0 -1
  465. package/.next/static/chunks/ProductTiles.9b804e51b0704d60.js +0 -1
  466. package/.next/static/chunks/RegionModal.319ad44250cb12d2.js +0 -1
  467. package/.next/static/chunks/RegionSlider.0e0e93369f4f9c92.js +0 -1
  468. package/.next/static/chunks/ScrollToTopButton.c15431f2e8bb93ef.js +0 -1
  469. package/.next/static/chunks/ShoppingAssistant.ba191eb4dbed67e5.js +0 -1
  470. package/.next/static/chunks/Toast.5f90f0436708be5e.js +0 -1
  471. package/.next/static/chunks/UIBannerText.7315b16af4457059.js +0 -1
  472. package/.next/static/chunks/UISKUMatrixSidebar.b4349b2682bbe183.js +0 -1
  473. package/.next/static/chunks/UIToast.19a8664c01a00d3a.js +0 -1
  474. package/.next/static/chunks/framework-d514426edf885c68.js +0 -33
  475. package/.next/static/chunks/main-ec03882c4375091d.js +0 -1
  476. package/.next/static/chunks/pages/404-e3dfbbac003b02a2.js +0 -1
  477. package/.next/static/chunks/pages/500-c7814e085081d7b8.js +0 -1
  478. package/.next/static/chunks/pages/[...slug]-dc8a395a43b081f1.js +0 -1
  479. package/.next/static/chunks/pages/[slug]/p-644f1132f5a0f736.js +0 -1
  480. package/.next/static/chunks/pages/_app-84aaff8a9d4de60e.js +0 -1
  481. package/.next/static/chunks/pages/_error-2b0148be56a716e9.js +0 -1
  482. package/.next/static/chunks/pages/checkout-2071467ad42dfb99.js +0 -1
  483. package/.next/static/chunks/pages/index-8774d5b4a8744eb2.js +0 -1
  484. package/.next/static/chunks/pages/login-e74747c9f9cb5b49.js +0 -1
  485. package/.next/static/chunks/pages/pvt/account/403-491e6b062487b30f.js +0 -1
  486. package/.next/static/chunks/pages/pvt/account/404-5ad472d9f2ee1980.js +0 -1
  487. package/.next/static/chunks/pages/pvt/account/[...unknown]-f80f645594d2740c.js +0 -1
  488. package/.next/static/chunks/pages/pvt/account/orders/[id]-64e42157c0974c48.js +0 -1
  489. package/.next/static/chunks/pages/pvt/account/orders-faab39f2aff05fae.js +0 -1
  490. package/.next/static/chunks/pages/pvt/account/profile-9672177ee2665bc0.js +0 -1
  491. package/.next/static/chunks/pages/pvt/account/security-03eb1ccab9a30563.js +0 -1
  492. package/.next/static/chunks/pages/pvt/account/user-details-7838e3f79781596c.js +0 -1
  493. package/.next/static/chunks/pages/pvt/account-65fefcc699344bdb.js +0 -1
  494. package/.next/static/chunks/pages/s-162ba789e6611175.js +0 -1
  495. package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +0 -1
  496. package/.next/static/chunks/webpack-f621ff3e951d2982.js +0 -1
  497. package/.next/static/css/02259c549b2179f2.css +0 -1
  498. package/.next/static/css/02eaf202d3d11fd1.css +0 -1
  499. package/.next/static/css/033e241c58ba6fbb.css +0 -1
  500. package/.next/static/css/042d012bc1895b5c.css +0 -1
  501. package/.next/static/css/14176a4704ff97b2.css +0 -1
  502. package/.next/static/css/146a8678babc61bf.css +0 -1
  503. package/.next/static/css/16d65422bfa80f51.css +0 -1
  504. package/.next/static/css/1c4983f11b861ea0.css +0 -1
  505. package/.next/static/css/204754bbd8cc4bef.css +0 -1
  506. package/.next/static/css/24d91007fc96be10.css +0 -1
  507. package/.next/static/css/2980acad3f8e1028.css +0 -1
  508. package/.next/static/css/2c19433e38fd7533.css +0 -1
  509. package/.next/static/css/31380ebc6e671486.css +0 -1
  510. package/.next/static/css/42df884711219edb.css +0 -1
  511. package/.next/static/css/4f0597b0bf0ef2e1.css +0 -1
  512. package/.next/static/css/54cedf4b65e5863f.css +0 -1
  513. package/.next/static/css/6580147d7ab8fcca.css +0 -1
  514. package/.next/static/css/6819dddf2b1b5ea7.css +0 -1
  515. package/.next/static/css/7ef7762f412ed665.css +0 -1
  516. package/.next/static/css/82f3cd529b672812.css +0 -1
  517. package/.next/static/css/837662922091162f.css +0 -1
  518. package/.next/static/css/8e6ab59ace21e03b.css +0 -1
  519. package/.next/static/css/a852afa9be31e946.css +0 -1
  520. package/.next/static/css/b684b347c5cc6514.css +0 -1
  521. package/.next/static/css/bcdaef0a83277ef5.css +0 -1
  522. package/.next/static/css/c33615999008d3f9.css +0 -1
  523. package/.next/static/css/c34f6ea9953e2f63.css +0 -1
  524. package/.next/static/css/ea11d74a2848b093.css +0 -1
  525. package/.next/static/css/f16438bcf4508fb3.css +0 -1
  526. package/.next/static/css/f60366555f563deb.css +0 -1
  527. package/.next/trace +0 -143
  528. package/.turbo/turbo-build.log +0 -140
  529. package/jest.config.js +0 -17
  530. package/public/~partytown/debug/partytown-atomics.js +0 -556
  531. package/public/~partytown/debug/partytown-media.js +0 -374
  532. package/public/~partytown/debug/partytown-sandbox-sw.js +0 -543
  533. package/public/~partytown/debug/partytown-sw.js +0 -59
  534. package/public/~partytown/debug/partytown-ww-atomics.js +0 -1789
  535. package/public/~partytown/debug/partytown-ww-sw.js +0 -1781
  536. package/public/~partytown/debug/partytown.js +0 -72
  537. package/public/~partytown/partytown-atomics.js +0 -2
  538. package/public/~partytown/partytown-media.js +0 -2
  539. package/public/~partytown/partytown-sw.js +0 -2
  540. package/public/~partytown/partytown.js +0 -2
  541. package/src/middleware__DISABLED.ts +0 -65
  542. package/src/server/generator/generateGraphQLSchemaFile.ts +0 -3
  543. package/src/server/generator/schema.ts +0 -81
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "3.99.1",
3
+ "version": "4.0.0-dev.4",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,6 +8,7 @@
8
8
  "directory": "packages/core"
9
9
  },
10
10
  "browserslist": "supports es6-module and not dead",
11
+ "packageManager": "pnpm@10.28.0",
11
12
  "exports": {
12
13
  ".": "./index.ts",
13
14
  "./api": "./api/index.ts",
@@ -15,55 +16,42 @@
15
16
  "./experimental/server": "./src/experimental/server/index.ts"
16
17
  },
17
18
  "scripts": {
18
- "generate:schema": "tsx src/server/generator/generateGraphQLSchemaFile.ts",
19
- "generate:codegen": "graphql-codegen",
20
- "format:generated": "prettier --write \"@generated/**/*.{ts,js,tsx,jsx,json}\" --loglevel error",
21
- "generate": "na run generate:schema && na run generate:codegen && na run format:generated",
22
- "prebuild": "na run partytown && na run generate",
23
- "build": "next build",
24
- "predev": "na run partytown && na run generate",
25
- "dev": "next dev",
26
- "dev-only": "next dev",
27
- "clean": "rm -r .next",
28
- "serve": "next start",
29
19
  "test:e2e": "cypress open",
30
- "test": "jest",
20
+ "test": "vitest run",
31
21
  "lhci": "lhci autorun",
32
- "postinstall": "node postinstall.js && is-ci || echo Skipped postinstall step for @faststore/core",
33
- "partytown": "partytown copylib ./public/~partytown"
22
+ "partytown": "partytown copylib ./public/~partytown",
23
+ "gen-types": "node ../cli/bin/run generate-types .",
24
+ "cache-graphql": "node ../cli/bin/run cache-graphql --config=./discovery.config.default.js --queries=./@generated/persisted-documents.json",
25
+ "generate": "pnpm run gen-types && pnpm run cache-graphql ",
26
+ "dev": "pnpm run generate && next dev"
34
27
  },
35
28
  "engines": {
36
- "node": ">=18"
37
- },
38
- "volta": {
39
- "node": "18.19.0",
40
- "pnpm": "9.15.1",
41
- "yarn": "1.22.22"
29
+ "node": ">=20"
42
30
  },
43
31
  "publishConfig": {
44
32
  "access": "public"
45
33
  },
46
34
  "sideEffects": false,
47
35
  "dependencies": {
48
- "@antfu/ni": "^0.21.12",
36
+ "@antfu/ni": "catalog:",
49
37
  "@builder.io/partytown": "^0.6.1",
50
- "@envelop/core": "^5.0.2",
51
- "@envelop/graphql-jit": "^8.0.3",
52
- "@envelop/parser-cache": "^6.0.2",
53
- "@envelop/validation-cache": "^6.0.2",
54
- "@faststore/api": "3.99.1",
55
- "@faststore/graphql-utils": "^3.99.1",
56
- "@faststore/lighthouse": "3.99.1",
57
- "@faststore/sdk": "3.99.1",
58
- "@faststore/ui": "3.99.1",
59
- "@graphql-codegen/cli": "5.0.2",
38
+ "@envelop/core": "catalog:",
39
+ "@envelop/graphql-jit": "catalog:",
40
+ "@envelop/parser-cache": "catalog:",
41
+ "@envelop/validation-cache": "catalog:",
42
+ "@faststore/api": "4.0.0-dev.4",
43
+ "@faststore/diagnostics": "4.0.0-dev.4",
44
+ "@faststore/lighthouse": "4.0.0-dev.4",
45
+ "@faststore/sdk": "4.0.0-dev.4",
46
+ "@faststore/ui": "4.0.0-dev.4",
47
+ "@graphql-codegen/cli": "catalog:",
60
48
  "@graphql-codegen/client-preset": "4.2.6",
61
- "@graphql-codegen/typescript": "4.0.7",
49
+ "@graphql-codegen/typescript": "catalog:",
62
50
  "@graphql-codegen/typescript-operations": "4.2.1",
63
51
  "@graphql-tools/load-files": "^7.0.0",
64
- "@graphql-tools/merge": "^9.0.4",
65
- "@graphql-tools/schema": "^10.0.3",
66
- "@graphql-tools/utils": "^10.2.0",
52
+ "@graphql-tools/merge": "catalog:",
53
+ "@graphql-tools/schema": "catalog:",
54
+ "@graphql-tools/utils": "catalog:",
67
55
  "@graphql-typed-document-node/core": "^3.2.0",
68
56
  "@lexical/code": "^0.34.0",
69
57
  "@lexical/headless": "^0.34.0",
@@ -72,59 +60,58 @@
72
60
  "@lexical/list": "^0.34.0",
73
61
  "@lexical/react": "^0.34.0",
74
62
  "@lexical/rich-text": "^0.34.0",
75
- "@parcel/watcher": "^2.4.0",
76
- "@types/react": "^18.2.42",
63
+ "@lhci/cli": "^0.15.1",
64
+ "@types/react": "catalog:",
77
65
  "@vtex/client-cms": "^0.2.16",
78
- "@vtex/client-cp": "0.3.5",
66
+ "@vtex/client-cp": "0.5.1",
79
67
  "@vtex/prettier-config": "1.0.0",
80
68
  "autoprefixer": "^10.4.0",
81
- "cookie": "^0.7.0",
69
+ "cookie": "catalog:",
82
70
  "css-loader": "^6.7.1",
83
71
  "deepmerge": "^4.3.1",
84
72
  "draftjs-to-html": "^0.9.1",
85
- "fast-deep-equal": "^3.1.3",
73
+ "fast-deep-equal": "catalog:",
86
74
  "fs-extra": "^10.1.0",
87
- "graphql": "^15.6.0",
88
75
  "idb-keyval": "^5.1.3",
89
- "include-media": "^1.4.10",
90
76
  "isomorphic-unfetch": "^3.1.0",
91
77
  "lexical": "^0.34.0",
92
- "next": "^13.5.9",
93
- "next-logger": "^5.0.2",
78
+ "next": "catalog:",
94
79
  "next-seo": "^6.6.0",
95
- "pino": "^9.7.0",
96
80
  "postcss": "^8.4.4",
97
81
  "prettier": "^2.2.0",
98
- "react": "^18.2.0",
99
- "react-dom": "^18.2.0",
100
- "react-intersection-observer": "^8.32.5",
101
- "sass": "^1.44.0",
82
+ "react-intersection-observer": "catalog:",
83
+ "sass": "^1.97.0",
102
84
  "sass-loader": "^12.6.0",
103
85
  "sharp": "^0.32.6",
104
86
  "style-loader": "^3.3.1",
105
87
  "swr": "^2.2.5",
106
- "tsx": "^4.6.2"
88
+ "use-sync-external-store": "^1.6.0"
107
89
  },
108
90
  "devDependencies": {
109
91
  "@cypress/code-coverage": "^3.12.1",
110
- "@envelop/testing": "^6.0.0",
111
- "@jest/globals": "29.7.0",
112
- "@lhci/cli": "^0.9.0",
92
+ "@envelop/testing": "catalog:",
113
93
  "@testing-library/cypress": "^10.0.1",
94
+ "@testing-library/react": "catalog:",
114
95
  "@types/cookie": "^0.6.0",
115
- "@types/cypress": "^1.1.3",
116
96
  "@types/fs-extra": "^9.0.13",
117
- "@types/jest": "29.1.0",
97
+ "@types/node": "catalog:",
98
+ "@vitejs/plugin-react": "^5.1.2",
118
99
  "@vtex/prettier-config": "1.0.0",
119
100
  "axe-core": "^4.8.1",
120
101
  "cypress": "12.17.4",
121
102
  "cypress-axe": "^1.5.0",
122
103
  "cypress-wait-until": "^2.0.1",
123
104
  "dotenv": "^8.2.0",
105
+ "graphql": "catalog:",
124
106
  "is-ci": "^3.0.0",
125
- "jest": "^29.7.0",
126
- "ts-jest": "29.1.1",
127
- "typescript": "5.3.2"
107
+ "jsdom": "^27.4.0",
108
+ "typescript": "catalog:",
109
+ "vitest": "catalog:"
110
+ },
111
+ "peerDependencies": {
112
+ "graphql": "catalog:",
113
+ "react": "catalog:",
114
+ "react-dom": "catalog:"
128
115
  },
129
- "gitHead": "58c9a02f542a1b6ca57296d08361646f979ec469"
116
+ "gitHead": "883f7d5f4ee5dd78a63cf6281164a58c2672ec0b"
130
117
  }
package/public/icons.svg CHANGED
@@ -69,12 +69,14 @@
69
69
 
70
70
  <symbol id="Ellipsis" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 18" ><circle opacity="0.6" cx="2" cy="11" r="2" fill="currentColor"/><circle opacity="0.6" cx="10" cy="11" r="2" fill="currentColor"/><circle opacity="0.6" cx="18" cy="11" r="2" fill="currentColor"/></symbol>
71
71
 
72
- <symbol id="Envelop" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 256 256"><path fill="none" d="M0 0h256v256H0z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m224 56-96 88-96-88"/><path d="M32 56h192v136a8 8 0 0 1-8 8H40a8 8 0 0 1-8-8V56h0Zm78.5 72-76 69.7m187 0-76-69.7" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></symbol>
72
+ <symbol id="Envelope" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 256 256"><path fill="none" d="M0 0h256v256H0z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m224 56-96 88-96-88"/><path d="M32 56h192v136a8 8 0 0 1-8 8H40a8 8 0 0 1-8-8V56h0Zm78.5 72-76 69.7m187 0-76-69.7" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></symbol>
73
73
 
74
74
  <symbol id="FadersHorizontal" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect><line x1="135.99902" y1="171.99304" x2="39.99902" y2="171.99317" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></line><line x1="215.99902" y1="171.99317" x2="167.99902" y2="171.99304" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></line><line x1="71.99902" y1="83.99304" x2="39.99902" y2="83.99246" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></line><line x1="215.99902" y1="83.99246" x2="103.99902" y2="83.99304" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></line><line x1="103.99902" y1="59.99304" x2="103.99902" y2="107.99304" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></line><line x1="167.99902" y1="195.99304" x2="167.99902" y2="147.99304" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></line></symbol>
75
75
 
76
76
  <symbol id="Gift" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect><rect x="32" y="80" width="192" height="48" rx="7.99999" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" fill="none"></rect><path d="M208,128v72a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V128" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><line x1="128" y1="80" x2="128" y2="208" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></line><path d="M173.25483,68.68629C161.94113,80,128,80,128,80s0-33.94113,11.31371-45.25483a24,24,0,0,1,33.94112,33.94112Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M82.74517,68.68629C94.05887,80,128,80,128,80s0-33.94113-11.31371-45.25483A24,24,0,0,0,82.74517,68.68629Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></symbol>
77
77
 
78
+ <symbol id="Globe" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 256 256"><path d="M128 24a104 104 0 1 0 104 104A104.12 104.12 0 0 0 128 24Zm88 104a87.61 87.61 0 0 1-3.33 24h-38.51a157.44 157.44 0 0 0 0-48h38.51a87.61 87.61 0 0 1 3.33 24Zm-114 40h52a115.11 115.11 0 0 1-26 45 115.27 115.27 0 0 1-26-45Zm-3.9-16a140.84 140.84 0 0 1 0-48h59.88a140.84 140.84 0 0 1 0 48ZM40 128a87.61 87.61 0 0 1 3.33-24h38.51a157.44 157.44 0 0 0 0 48H43.33A87.61 87.61 0 0 1 40 128Zm114-40h-52a115.11 115.11 0 0 1 26-45 115.27 115.27 0 0 1 26 45Zm52.33 0h-35.62a135.28 135.28 0 0 0-22.3-45.6A88.29 88.29 0 0 1 206.37 88Zm-98.74-45.6A135.28 135.28 0 0 0 85.29 88H49.63a88.29 88.29 0 0 1 57.96-45.6ZM49.63 168h35.66a135.28 135.28 0 0 0 22.3 45.6A88.29 88.29 0 0 1 49.63 168Zm98.78 45.6a135.28 135.28 0 0 0 22.3-45.6h35.66a88.29 88.29 0 0 1-57.96 45.6Z"/></symbol>
79
+
78
80
  <symbol id="Headphones" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect><path d="M225.45581,136h-32a16,16,0,0,0-16,16v40a16,16,0,0,0,16,16h16a16,16,0,0,0,16-16V136A96.0001,96.0001,0,0,0,128.7279,40.0027,96.00009,96.00009,0,0,0,32,136v56a16,16,0,0,0,16,16H64a16,16,0,0,0,16-16V152a16,16,0,0,0-16-16H32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></symbol>
79
81
 
80
82
  <symbol id="Heart" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 256 256"> <rect width="256" height="256" fill="none"></rect> <path d="M128,216S28,160,28,92A52,52,0,0,1,128,72h0A52,52,0,0,1,228,92C228,160,128,216,128,216Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></symbol>
@@ -120,6 +122,8 @@
120
122
  <symbol id="Truck" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect><path d="M240,120H176V80h42.58374a8,8,0,0,1,7.42781,5.02887Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><line x1="16" y1="144" x2="176" y2="144" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></line><circle cx="188" cy="192" r="24" fill="none" stroke="currentColor" stroke-miterlimit="10"></circle><circle cx="68" cy="192" r="24" fill="none" stroke="currentColor" stroke-miterlimit="10"></circle><line x1="164" y1="192" x2="92" y2="192" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></line><path d="M44,192H24a8,8,0,0,1-8-8V72a8,8,0,0,1,8-8H176V171.21508" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M176,171.21508V120h64v64a8,8,0,0,1-8,8H212" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></symbol>
121
123
  <symbol id="User" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect><circle cx="128" cy="96" r="64" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></circle><path d="M30.989,215.99064a112.03731,112.03731,0,0,1,194.02311.002" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></symbol>
122
124
 
125
+ <symbol id="Warning" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="currentColor" d="M0.833984 17.5001L10.0007 1.66675L19.1673 17.5001H0.833984ZM3.70898 15.8334H16.2923L10.0007 5.00008L3.70898 15.8334ZM10.0007 15.0001C10.2368 15.0001 10.4347 14.9202 10.5944 14.7605C10.7541 14.6008 10.834 14.4029 10.834 14.1667C10.834 13.9306 10.7541 13.7327 10.5944 13.573C10.4347 13.4133 10.2368 13.3334 10.0007 13.3334C9.76454 13.3334 9.56662 13.4133 9.4069 13.573C9.24718 13.7327 9.16732 13.9306 9.16732 14.1667C9.16732 14.4029 9.24718 14.6008 9.4069 14.7605C9.56662 14.9202 9.76454 15.0001 10.0007 15.0001ZM9.16732 12.5001H10.834V8.33341H9.16732V12.5001Z"/></symbol>
126
+
123
127
  <symbol id="X" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect><line x1="200" y1="56" x2="56" y2="200" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></line><line x1="200" y1="200" x2="56" y2="56" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></line></symbol>
124
128
 
125
129
  <symbol id="XCircle" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect><circle cx="128" cy="128" r="96" fill="none" stroke="currentColor" stroke-miterlimit="10"></circle><line x1="160" y1="96" x2="96" y2="160" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></line><line x1="160" y1="160" x2="96" y2="96" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></line></symbol>
@@ -0,0 +1,76 @@
1
+ // @ts-check
2
+
3
+ // Builds Next.js i18n domains configuration from locale settings
4
+
5
+ /**
6
+ * Checks if a binding is a valid domain-based binding (no path)
7
+ * A binding is domain-based if it has no path (or only root path '/')
8
+ * @param {Object} binding - The binding object with url property
9
+ * @returns {string|null} The hostname if valid domain-based binding, or null if path-based
10
+ */
11
+ function getValidSubdomainBinding(binding) {
12
+ if (!binding || !binding.url) {
13
+ return null
14
+ }
15
+
16
+ try {
17
+ const bindingUrl = new URL(binding.url)
18
+ const bindingHostname = bindingUrl.hostname
19
+ const bindingPathname = bindingUrl.pathname
20
+
21
+ if (bindingPathname && bindingPathname !== '/') {
22
+ // path-based binding
23
+ return null
24
+ }
25
+
26
+ return bindingHostname
27
+ } catch (error) {
28
+ console.warn(
29
+ `Invalid binding URL: ${binding.url}. Error: ${error?.message || String(error)}`
30
+ )
31
+ return null
32
+ }
33
+ }
34
+
35
+ /**
36
+ * Extracts subdomain-to-locale mappings from SDK bindings and builds Next.js i18n domains configuration
37
+ * @param {Object} [localesSettings={}] - The locales settings object
38
+ * @returns {Array<{domain: string, defaultLocale: string}>}
39
+ */
40
+ function buildI18nDomains(localesSettings = {}) {
41
+ const domainMap = new Map()
42
+
43
+ for (const [localeCode, localeData] of Object.entries(
44
+ localesSettings.locales || {}
45
+ )) {
46
+ if (!localeData.bindings || !Array.isArray(localeData.bindings)) {
47
+ continue
48
+ }
49
+
50
+ for (const binding of localeData.bindings) {
51
+ const hostname = getValidSubdomainBinding(binding)
52
+
53
+ if (!hostname) {
54
+ continue
55
+ }
56
+
57
+ if (!domainMap.has(hostname)) {
58
+ domainMap.set(hostname, {
59
+ domain: hostname,
60
+ defaultLocale: localeCode,
61
+ })
62
+ } else {
63
+ const existingLocale = domainMap.get(hostname).defaultLocale
64
+ console.warn(
65
+ `Duplicate domain: ${hostname} already mapped to locale ${existingLocale}, ignoring duplicate from locale ${localeCode}.`
66
+ )
67
+ }
68
+ }
69
+ }
70
+
71
+ return Array.from(domainMap.values())
72
+ }
73
+
74
+ module.exports = {
75
+ buildI18nDomains,
76
+ }
@@ -1,5 +1,6 @@
1
1
  import { SlideOver, useFadeEffect } from '@faststore/ui'
2
2
 
3
+ import { getStoreURL } from 'src/sdk/localization/useLocalizationConfig'
3
4
  import { useSession } from 'src/sdk/session'
4
5
  import {
5
6
  expireCookieClient,
@@ -124,7 +125,7 @@ export const doLogout = async (_event?: unknown) => {
124
125
  } finally {
125
126
  setReloadAfterLogoutReturn()
126
127
  window.location.assign(
127
- `${storeConfig.secureSubdomain}/api/vtexid/pub/logout?scope=${storeConfig.api.storeId}&returnUrl=${storeConfig.storeUrl}`
128
+ `${storeConfig.secureSubdomain}/api/vtexid/pub/logout?scope=${storeConfig.api.storeId}&returnUrl=${getStoreURL()}`
128
129
  )
129
130
  }
130
131
  }
@@ -1,27 +1,30 @@
1
+ @use "sass:meta";
2
+ @use "@faststore/ui/src/styles/base/utilities";
3
+
1
4
  @layer components {
2
5
  .section {
3
- @import "@faststore/ui/src/components/atoms/Icon/styles.scss";
4
- @import "@faststore/ui/src/components/atoms/Overlay/styles.scss";
5
- @import "@faststore/ui/src/components/atoms/Badge/styles.scss";
6
- @import "@faststore/ui/src/components/atoms/Button/styles.scss";
7
- @import "@faststore/ui/src/components/atoms/Link/styles.scss";
8
- @import "@faststore/ui/src/components/atoms/List/styles.scss";
9
- @import "@faststore/ui/src/components/atoms/Price/styles.scss";
10
- @import "@faststore/ui/src/components/molecules/Alert/styles.scss";
11
- @import "@faststore/ui/src/components/molecules/Modal/styles.scss";
12
- @import "@faststore/ui/src/components/molecules/CartItem/styles.scss";
13
- @import "@faststore/ui/src/components/molecules/Gift/styles.scss";
14
- @import "@faststore/ui/src/components/molecules/QuantitySelector/styles.scss";
15
- @import "@faststore/ui/src/components/molecules/OrderSummary/styles.scss";
16
- @import "@faststore/ui/src/components/molecules/ProductPrice/styles.scss";
17
- @import "@faststore/ui/src/components/organisms/EmptyState/styles.scss";
18
- @import "@faststore/ui/src/components/organisms/SlideOver/styles.scss";
19
- @import "@faststore/ui/src/components/organisms/CartSidebar/styles.scss";
20
- @import "../ProfileSummary/profile-summary.scss";
6
+ @include meta.load-css("~@faststore/ui/src/components/atoms/Icon/styles.scss");
7
+ @include meta.load-css("~@faststore/ui/src/components/atoms/Overlay/styles.scss");
8
+ @include meta.load-css("~@faststore/ui/src/components/atoms/Badge/styles.scss");
9
+ @include meta.load-css("~@faststore/ui/src/components/atoms/Button/styles.scss");
10
+ @include meta.load-css("~@faststore/ui/src/components/atoms/Link/styles.scss");
11
+ @include meta.load-css("~@faststore/ui/src/components/atoms/List/styles.scss");
12
+ @include meta.load-css("~@faststore/ui/src/components/atoms/Price/styles.scss");
13
+ @include meta.load-css("~@faststore/ui/src/components/molecules/Alert/styles.scss");
14
+ @include meta.load-css("~@faststore/ui/src/components/molecules/Modal/styles.scss");
15
+ @include meta.load-css("~@faststore/ui/src/components/molecules/CartItem/styles.scss");
16
+ @include meta.load-css("~@faststore/ui/src/components/molecules/Gift/styles.scss");
17
+ @include meta.load-css("~@faststore/ui/src/components/molecules/QuantitySelector/styles.scss");
18
+ @include meta.load-css("~@faststore/ui/src/components/molecules/OrderSummary/styles.scss");
19
+ @include meta.load-css("~@faststore/ui/src/components/molecules/ProductPrice/styles.scss");
20
+ @include meta.load-css("~@faststore/ui/src/components/organisms/EmptyState/styles.scss");
21
+ @include meta.load-css("~@faststore/ui/src/components/organisms/SlideOver/styles.scss");
22
+ @include meta.load-css("~@faststore/ui/src/components/organisms/CartSidebar/styles.scss");
23
+ @include meta.load-css("../ProfileSummary/profile-summary.scss");
21
24
 
22
25
  [data-fs-organization-drawer] {
23
- --fs-organization-drawer-header-contract-color : #cbe9ff;
24
- --fs-organization-drawer-body-link-color : #f5f5f5;
26
+ --fs-organization-drawer-header-contract-color: #cbe9ff;
27
+ --fs-organization-drawer-body-link-color: #f5f5f5;
25
28
 
26
29
  display: flex;
27
30
  flex-direction: column;
@@ -93,9 +96,7 @@
93
96
  width: 100%;
94
97
 
95
98
  [data-fs-organization-drawer-body-link] {
96
- padding:
97
- var(--fs-spacing-2)
98
- calc(var(--fs-spacing-3) + var(--fs-spacing-0));
99
+ padding: var(--fs-spacing-2) calc(var(--fs-spacing-3) + var(--fs-spacing-0));
99
100
  font-size: var(--fs-text-size-1);
100
101
  font-weight: var(--fs-text-weight-semibold);
101
102
  line-height: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
@@ -116,7 +117,7 @@
116
117
  [data-fs-organization-drawer-footer-wrapper] {
117
118
  padding: var(--fs-spacing-6) var(--fs-spacing-5);
118
119
 
119
- @include media("<tablet") {
120
+ @include utilities.media("<tablet") {
120
121
  padding: var(--fs-spacing-2);
121
122
  }
122
123
  }
@@ -1,3 +1,5 @@
1
+ @use "@faststore/ui/src/styles/base/utilities";
2
+
1
3
  [data-fs-profile-summary] {
2
4
  display: flex;
3
5
  flex-direction: column;
@@ -46,11 +48,11 @@
46
48
  min-width: min-content;
47
49
  padding: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
48
50
 
49
- @include media("<notebook") {
51
+ @include utilities.media("<notebook") {
50
52
  justify-content: space-between;
51
53
  }
52
54
 
53
- @include media("<tablet") {
55
+ @include utilities.media("<tablet") {
54
56
  padding: calc(var(--fs-spacing-0) + var(--fs-spacing-0));
55
57
  }
56
58
 
@@ -58,7 +60,7 @@
58
60
  display: flex;
59
61
  align-items: center;
60
62
 
61
- @include media(">=notebook") {
63
+ @include utilities.media(">=notebook") {
62
64
  width: 60%;
63
65
  }
64
66
  }
@@ -76,7 +78,7 @@
76
78
  background-color: #cbe9ff;
77
79
  border-radius: var(--fs-border-radius-pill);
78
80
 
79
- @include media("<=tablet") {
81
+ @include utilities.media("<=tablet") {
80
82
  margin-right: var(--fs-spacing-1);
81
83
  }
82
84
  }
@@ -87,11 +89,11 @@
87
89
  gap: var(--fs-spacing-0);
88
90
  font-size: var(--fs-text-size-legend);
89
91
 
90
- @include media(">=notebook") {
92
+ @include utilities.media(">=notebook") {
91
93
  width: 75%;
92
94
  }
93
95
 
94
- @include media("<=tablet") {
96
+ @include utilities.media("<=tablet") {
95
97
  font-size: var(--fs-text-size-tiny);
96
98
  }
97
99
 
@@ -1,30 +1,34 @@
1
+ @use "sass:meta";
2
+ @use "@faststore/ui/src/styles/base/utilities";
3
+
1
4
  .layout {
2
- @import "@faststore/ui/src/components/atoms/Badge/styles.scss";
3
- @import "@faststore/ui/src/components/atoms/Button/styles.scss";
4
- @import "@faststore/ui/src/components/atoms/Link/styles.scss";
5
- @import "@faststore/ui/src/components/atoms/Icon/styles.scss";
6
- @import "@faststore/ui/src/components/atoms/Input/styles.scss";
7
- @import "@faststore/ui/src/components/molecules/LinkButton/styles.scss";
8
- @import "@faststore/ui/src/components/molecules/SearchInputField/styles.scss";
9
- @import "../MyAccountMenu/styles.scss";
10
- @import "../components/MyAccountHeader/styles.scss";
5
+ @include meta.load-css("~@faststore/ui/src/components/atoms/Badge/styles.scss");
6
+ @include meta.load-css("~@faststore/ui/src/components/atoms/Button/styles.scss");
7
+ @include meta.load-css("~@faststore/ui/src/components/atoms/Link/styles.scss");
8
+ @include meta.load-css("~@faststore/ui/src/components/atoms/Icon/styles.scss");
9
+ @include meta.load-css("~@faststore/ui/src/components/atoms/Input/styles.scss");
10
+ @include meta.load-css("~@faststore/ui/src/components/molecules/LinkButton/styles.scss");
11
+ @include meta.load-css("~@faststore/ui/src/components/molecules/SearchInputField/styles.scss");
12
+ @include meta.load-css("../MyAccountMenu/styles.scss");
13
+ @include meta.load-css("../components/MyAccountHeader/styles.scss");
11
14
 
12
15
  display: grid;
13
16
  grid-template-rows: auto 1fr;
14
17
  min-height: calc(100vh - 18rem);
15
18
 
16
- @include media(">=notebook") {
19
+ @include utilities.media(">=notebook") {
17
20
  grid-template-rows: none;
18
- grid-template-columns: max(300px) 1fr;
21
+ grid-template-columns: max(300px) 80%;
19
22
  gap: var(--fs-spacing-3);
20
23
  max-width: var(--fs-grid-breakpoint-desktop);
24
+ padding: 0 var(--fs-spacing-3) 0 var(--fs-spacing-6);
21
25
  margin: 0 auto;
22
26
  }
23
27
 
24
28
  [data-fs-account-layout-content] {
25
29
  padding: 0 var(--fs-spacing-4);
26
30
 
27
- @include media(">=notebook") {
31
+ @include utilities.media(">=notebook") {
28
32
  padding: 0 var(--fs-spacing-8);
29
33
  }
30
34
  }
@@ -1,3 +1,5 @@
1
+ @use "@faststore/ui/src/styles/base/utilities";
2
+
1
3
  .menu {
2
4
  display: flex;
3
5
  flex-direction: column;
@@ -6,6 +8,12 @@
6
8
  overflow: scroll;
7
9
  scrollbar-width: none;
8
10
  -ms-overflow-style: none;
11
+
12
+ @include utilities.media(">=notebook") {
13
+ padding: 0;
14
+ padding-top: var(--fs-spacing-6);
15
+ overflow: visible;
16
+ }
9
17
  }
10
18
 
11
19
  .account {
@@ -31,7 +39,9 @@
31
39
  }
32
40
 
33
41
  .switchButton {
34
- display: none; /* While it's use case is not implemented */
42
+ display: none;
43
+
44
+ /* While it's use case is not implemented */
35
45
  max-width: fit-content;
36
46
  height: 1.5rem;
37
47
  }
@@ -39,6 +49,11 @@
39
49
  .nav {
40
50
  display: flex;
41
51
  gap: var(--fs-spacing-1);
52
+
53
+ @include utilities.media(">=notebook") {
54
+ flex-direction: column;
55
+ gap: var(--fs-spacing-0);
56
+ }
42
57
  }
43
58
 
44
59
  .navItem {
@@ -67,7 +82,7 @@
67
82
  background-color: var(--fs-color-tertiary-bkg-disabled);
68
83
  }
69
84
 
70
- > a,
85
+ >a,
71
86
  a:link,
72
87
  a:visited {
73
88
  display: inline-block;
@@ -86,30 +101,14 @@
86
101
  box-shadow: none;
87
102
  }
88
103
  }
89
- }
90
104
 
91
- @include media(">=notebook") {
92
- grid-template-rows: none;
93
- grid-template-columns: max(300px) 80%;
94
- gap: var(--fs-spacing-3);
95
- padding: 0 var(--fs-spacing-3) 0 var(--fs-spacing-6);
96
-
97
- .menu {
98
- padding: 0;
99
- padding-top: var(--fs-spacing-6);
100
- overflow: visible;
101
- }
102
-
103
- .nav {
104
- flex-direction: column;
105
- gap: var(--fs-spacing-0);
106
- }
107
-
108
- .navItem {
105
+ @include utilities.media(">=notebook") {
109
106
  margin-left: -16px;
110
107
  }
108
+ }
111
109
 
112
- .avatar {
110
+ .avatar {
111
+ @include utilities.media(">=notebook") {
113
112
  display: flex;
114
113
  align-items: center;
115
114
  justify-content: center;
@@ -1,7 +1,9 @@
1
+ @use "sass:meta";
2
+
1
3
  @layer components {
2
4
  .section {
3
- @import "../components/MyAccountTag/styles.scss";
4
- @import "../components/MyAccountTable/styles.scss";
5
+ @include meta.load-css("../components/MyAccountTag/styles.scss");
6
+ @include meta.load-css("../components/MyAccountTable/styles.scss");
5
7
 
6
8
  // --------------------------------------------------------
7
9
  // Design Tokens
@@ -1,3 +1,5 @@
1
+ @use "@faststore/ui/src/styles/base/utilities";
2
+
1
3
  [data-fs-my-account-accordion] {
2
4
  // --------------------------------------------------------
3
5
  // Design Tokens
@@ -38,7 +40,7 @@
38
40
  width: 100%;
39
41
  padding: 0;
40
42
 
41
- @include media(">=notebook") {
43
+ @include utilities.media(">=notebook") {
42
44
  display: flex;
43
45
  flex: 1;
44
46
  align-items: center;
@@ -64,7 +66,7 @@
64
66
  color: var(--fs-color-text);
65
67
  text-align: start;
66
68
 
67
- @include truncate-title(1);
69
+ @include utilities.truncate-title(1);
68
70
  }
69
71
  }
70
72
 
@@ -1,7 +1,9 @@
1
+ @use "@faststore/ui/src/styles/base/utilities";
2
+
1
3
  [data-fs-account-header] {
2
4
  padding: var(--fs-spacing-3) 0;
3
5
 
4
- @include media(">=notebook") {
6
+ @include utilities.media(">=notebook") {
5
7
  padding: var(--fs-spacing-6) 0;
6
8
  }
7
9