@salla.sa/twilight-theme-engine 1.0.135 → 1.0.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddToCartForm-ODVZPTKN.js → AddToCartForm-NKY5PPUO.js} +4 -3
- package/dist/AddToCartForm-NKY5PPUO.js.map +1 -0
- package/dist/{BlogAuthorPage-BU23SINI.js → BlogAuthorPage-BEFTTLZP.js} +19 -18
- package/dist/BlogAuthorPage-BEFTTLZP.js.map +1 -0
- package/dist/{BlogCategoryPage-ZVITUHP4.js → BlogCategoryPage-ZHI4BOOC.js} +19 -18
- package/dist/BlogCategoryPage-ZHI4BOOC.js.map +1 -0
- package/dist/{BlogPage-IN3V7FYK.js → BlogPage-YYZFF5TI.js} +17 -16
- package/dist/BlogPage-YYZFF5TI.js.map +1 -0
- package/dist/{BlogSinglePage-UJG7YPYZ.js → BlogSinglePage-B7LWBOTP.js} +17 -16
- package/dist/BlogSinglePage-B7LWBOTP.js.map +1 -0
- package/dist/{BlogTagPage-XDETNKGR.js → BlogTagPage-MRHYZNWV.js} +19 -18
- package/dist/BlogTagPage-MRHYZNWV.js.map +1 -0
- package/dist/{BrandsPage-CBU7JFSX.js → BrandsPage-EBQRAGCH.js} +18 -17
- package/dist/BrandsPage-EBQRAGCH.js.map +1 -0
- package/dist/{Breadcrumb-EA2XETAM.js → Breadcrumb-LXOPBBN4.js} +17 -16
- package/dist/Breadcrumb-LXOPBBN4.js.map +1 -0
- package/dist/{CartItem-2TW36QTW.js → CartItem-7MMLNUN4.js} +17 -16
- package/dist/CartItem-7MMLNUN4.js.map +1 -0
- package/dist/{CartSummary-TW2CAX57.js → CartSummary-G547ABBP.js} +17 -16
- package/dist/CartSummary-G547ABBP.js.map +1 -0
- package/dist/{Copyright-57XPE75X.js → Copyright-73W4NHW7.js} +4 -3
- package/dist/Copyright-73W4NHW7.js.map +1 -0
- package/dist/{CustomerLayout-A2M7IY34.js → CustomerLayout-JTKY24VZ.js} +17 -16
- package/dist/CustomerLayout-JTKY24VZ.js.map +1 -0
- package/dist/{Footer-L5BIYCZ2.js → Footer-E2KUIBSW.js} +6 -5
- package/dist/{Footer-L5BIYCZ2.js.map → Footer-E2KUIBSW.js.map} +1 -1
- package/dist/{Header-NLBDW4MR.js → Header-FVSR2NSQ.js} +9 -8
- package/dist/{Header-NLBDW4MR.js.map → Header-FVSR2NSQ.js.map} +1 -1
- package/dist/{LoyaltyPage-BVTDPSP3.js → LoyaltyPage-MTUCGVJ5.js} +17 -16
- package/dist/LoyaltyPage-MTUCGVJ5.js.map +1 -0
- package/dist/{LoyaltyPointsPage-HZYPCO7C.js → LoyaltyPointsPage-CF2X3ZHW.js} +7 -6
- package/dist/LoyaltyPointsPage-CF2X3ZHW.js.map +1 -0
- package/dist/{MainMenu-3HP3YJDH.js → MainMenu-IDJXM45R.js} +6 -5
- package/dist/MainMenu-IDJXM45R.js.map +1 -0
- package/dist/{MasterLayout-KD3GLYYX.js → MasterLayout-44QYYOSX.js} +17 -16
- package/dist/{MasterLayout-KD3GLYYX.js.map → MasterLayout-44QYYOSX.js.map} +1 -1
- package/dist/{MobileMenu-3UEQTURY.js → MobileMenu-TLDDRK6H.js} +18 -17
- package/dist/MobileMenu-TLDDRK6H.js.map +1 -0
- package/dist/{NotificationsPage-C6LNYZTB.js → NotificationsPage-6MJCAI6D.js} +17 -16
- package/dist/NotificationsPage-6MJCAI6D.js.map +1 -0
- package/dist/{OrderSinglePage-LXKINOXP.js → OrderSinglePage-ZRKP4PJX.js} +18 -17
- package/dist/OrderSinglePage-ZRKP4PJX.js.map +1 -0
- package/dist/{OrdersPage-VBF3P3JH.js → OrdersPage-U3GHFHDO.js} +17 -16
- package/dist/OrdersPage-U3GHFHDO.js.map +1 -0
- package/dist/{PageSingle-E7DTNIY7.js → PageSingle-TOJXQ5LW.js} +4 -3
- package/dist/PageSingle-TOJXQ5LW.js.map +1 -0
- package/dist/{ProductDetails-ZQLQWU7S.js → ProductDetails-WX5LQXLW.js} +5 -4
- package/dist/ProductDetails-WX5LQXLW.js.map +1 -0
- package/dist/{ProfilePage-7LAIDEHS.js → ProfilePage-EVVDBLYL.js} +17 -16
- package/dist/ProfilePage-EVVDBLYL.js.map +1 -0
- package/dist/{ReviewsPage-FA3V745S.js → ReviewsPage-B2K3VNYU.js} +4 -3
- package/dist/ReviewsPage-B2K3VNYU.js.map +1 -0
- package/dist/{SeoCartWidget-4456ASOT.js → SeoCartWidget-R5ZCOT4Q.js} +17 -16
- package/dist/SeoCartWidget-R5ZCOT4Q.js.map +1 -0
- package/dist/{SettingsPage-IVOHCXVY.js → SettingsPage-WGBMWUTX.js} +17 -16
- package/dist/SettingsPage-WGBMWUTX.js.map +1 -0
- package/dist/{StoreClosedNotification-DIF6SKBX.js → StoreClosedNotification-2ZEUFOMA.js} +18 -17
- package/dist/{StoreClosedNotification-DIF6SKBX.js.map → StoreClosedNotification-2ZEUFOMA.js.map} +1 -1
- package/dist/{TestimonialsPage-JY7MF5NW.js → TestimonialsPage-UVUX2PE3.js} +4 -3
- package/dist/TestimonialsPage-UVUX2PE3.js.map +1 -0
- package/dist/{ThankYouPage-KNHHBFPZ.js → ThankYouPage-EIQ57UHN.js} +17 -16
- package/dist/ThankYouPage-EIQ57UHN.js.map +1 -0
- package/dist/{WalletPage-HH72DHOC.js → WalletPage-HQAM2ZXP.js} +18 -17
- package/dist/WalletPage-HQAM2ZXP.js.map +1 -0
- package/dist/{WishlistPage-5BR63SMU.js → WishlistPage-2IOAOQGS.js} +19 -18
- package/dist/WishlistPage-2IOAOQGS.js.map +1 -0
- package/dist/api/advertisement.js +2 -2
- package/dist/api/apps.js +2 -2
- package/dist/api/blog.js +3 -3
- package/dist/api/brands.js +3 -3
- package/dist/api/cart.js +3 -3
- package/dist/api/category.js +3 -3
- package/dist/api/client.js +1 -1
- package/dist/api/home.js +2 -2
- package/dist/api/loyalty.js +3 -3
- package/dist/api/menu.js +2 -2
- package/dist/api/notification.js +2 -2
- package/dist/api/order.js +3 -3
- package/dist/api/page.js +3 -3
- package/dist/api/product.js +3 -3
- package/dist/api/profile.js +1 -1
- package/dist/api/store.js +2 -2
- package/dist/api/translations.js +2 -2
- package/dist/api/user.js +2 -2
- package/dist/api/wallet.js +2 -2
- package/dist/api/wishlist.js +4 -4
- package/dist/{chunk-P3D67RVR.js → chunk-2WEGBUAG.js} +12 -10
- package/dist/chunk-2WEGBUAG.js.map +1 -0
- package/dist/{chunk-D53M5ASN.js → chunk-3PHBJ3TA.js} +3 -3
- package/dist/{chunk-D53M5ASN.js.map → chunk-3PHBJ3TA.js.map} +1 -1
- package/dist/{chunk-UHGDQIIF.js → chunk-5MIP3DUG.js} +4 -4
- package/dist/{chunk-UHGDQIIF.js.map → chunk-5MIP3DUG.js.map} +1 -1
- package/dist/{chunk-WVSGVFMM.js → chunk-5Y4NL57B.js} +3 -3
- package/dist/{chunk-WVSGVFMM.js.map → chunk-5Y4NL57B.js.map} +1 -1
- package/dist/{chunk-P6TJCCM3.js → chunk-67J4DMB3.js} +4 -4
- package/dist/{chunk-P6TJCCM3.js.map → chunk-67J4DMB3.js.map} +1 -1
- package/dist/{chunk-SGB7HCXF.js → chunk-7GBVI6SK.js} +4 -4
- package/dist/{chunk-SGB7HCXF.js.map → chunk-7GBVI6SK.js.map} +1 -1
- package/dist/{chunk-ZRJXN766.js → chunk-7IQX4GHT.js} +4 -4
- package/dist/{chunk-ZRJXN766.js.map → chunk-7IQX4GHT.js.map} +1 -1
- package/dist/{chunk-A5AU64GV.js → chunk-7VYVQMYE.js} +4 -4
- package/dist/{chunk-A5AU64GV.js.map → chunk-7VYVQMYE.js.map} +1 -1
- package/dist/{chunk-5A37NING.js → chunk-BPCSMALD.js} +3 -3
- package/dist/{chunk-5A37NING.js.map → chunk-BPCSMALD.js.map} +1 -1
- package/dist/{chunk-LUPDYN4T.js → chunk-BYP72WXK.js} +4 -4
- package/dist/{chunk-LUPDYN4T.js.map → chunk-BYP72WXK.js.map} +1 -1
- package/dist/{chunk-YKNDXZAD.js → chunk-COSCD4AH.js} +36 -29
- package/dist/chunk-COSCD4AH.js.map +1 -0
- package/dist/{chunk-WEKO2DAN.js → chunk-CYDQFZRF.js} +3 -3
- package/dist/{chunk-WEKO2DAN.js.map → chunk-CYDQFZRF.js.map} +1 -1
- package/dist/{chunk-25UDBM27.js → chunk-DKYNZHZN.js} +3 -3
- package/dist/{chunk-25UDBM27.js.map → chunk-DKYNZHZN.js.map} +1 -1
- package/dist/{chunk-KWJUCI7M.js → chunk-E74WBS5R.js} +3 -3
- package/dist/{chunk-KWJUCI7M.js.map → chunk-E74WBS5R.js.map} +1 -1
- package/dist/{chunk-XHWBJYJL.js → chunk-GHM37DUT.js} +3 -3
- package/dist/{chunk-XHWBJYJL.js.map → chunk-GHM37DUT.js.map} +1 -1
- package/dist/{chunk-WHFKJ3AS.js → chunk-GKM24XYF.js} +4 -4
- package/dist/{chunk-WHFKJ3AS.js.map → chunk-GKM24XYF.js.map} +1 -1
- package/dist/{chunk-4CM6JIQF.js → chunk-HFWQRV3W.js} +4 -4
- package/dist/{chunk-4CM6JIQF.js.map → chunk-HFWQRV3W.js.map} +1 -1
- package/dist/{chunk-VZPEPWDF.js → chunk-HJGBOABY.js} +11 -9
- package/dist/chunk-HJGBOABY.js.map +1 -0
- package/dist/{chunk-X5QZBD5V.js → chunk-IC6Z6BB2.js} +13 -9
- package/dist/chunk-IC6Z6BB2.js.map +1 -0
- package/dist/{chunk-VNDUKDZG.js → chunk-JK7WLO72.js} +9 -8
- package/dist/chunk-JK7WLO72.js.map +1 -0
- package/dist/{chunk-5AOW2SQW.js → chunk-K356POFX.js} +3 -3
- package/dist/{chunk-5AOW2SQW.js.map → chunk-K356POFX.js.map} +1 -1
- package/dist/{chunk-E5DP3MHE.js → chunk-K7BDIB3L.js} +3 -3
- package/dist/{chunk-E5DP3MHE.js.map → chunk-K7BDIB3L.js.map} +1 -1
- package/dist/chunk-KYMWEUN2.js +10 -0
- package/dist/chunk-KYMWEUN2.js.map +1 -0
- package/dist/{chunk-YBIL64R7.js → chunk-L22FKPMY.js} +3 -3
- package/dist/{chunk-YBIL64R7.js.map → chunk-L22FKPMY.js.map} +1 -1
- package/dist/{chunk-6VYW7CVL.js → chunk-LQBDOXLO.js} +4 -4
- package/dist/{chunk-6VYW7CVL.js.map → chunk-LQBDOXLO.js.map} +1 -1
- package/dist/{chunk-4SCGS2CM.js → chunk-MT7DVK2V.js} +3 -3
- package/dist/{chunk-4SCGS2CM.js.map → chunk-MT7DVK2V.js.map} +1 -1
- package/dist/{chunk-SXI2XBCC.js → chunk-N6ZE6HUX.js} +199 -3
- package/dist/chunk-N6ZE6HUX.js.map +1 -0
- package/dist/{chunk-TTLRRVM2.js → chunk-NPN23RYM.js} +5 -5
- package/dist/{chunk-TTLRRVM2.js.map → chunk-NPN23RYM.js.map} +1 -1
- package/dist/{chunk-OJKTKMWS.js → chunk-NZX2ZEF7.js} +4 -4
- package/dist/{chunk-OJKTKMWS.js.map → chunk-NZX2ZEF7.js.map} +1 -1
- package/dist/chunk-O47T67E3.js +16 -0
- package/dist/chunk-O47T67E3.js.map +1 -0
- package/dist/{chunk-HDSY5DWF.js → chunk-OXUIG3H3.js} +3 -3
- package/dist/{chunk-HDSY5DWF.js.map → chunk-OXUIG3H3.js.map} +1 -1
- package/dist/chunk-OYD6FP42.js +25 -0
- package/dist/chunk-OYD6FP42.js.map +1 -0
- package/dist/{chunk-RLJLG4EN.js → chunk-PEENIBSF.js} +3 -3
- package/dist/{chunk-RLJLG4EN.js.map → chunk-PEENIBSF.js.map} +1 -1
- package/dist/{chunk-MWG734P7.js → chunk-PYDHLM3Y.js} +11 -9
- package/dist/chunk-PYDHLM3Y.js.map +1 -0
- package/dist/{chunk-HIOYW3CS.js → chunk-QG2ORHKD.js} +3 -3
- package/dist/{chunk-HIOYW3CS.js.map → chunk-QG2ORHKD.js.map} +1 -1
- package/dist/{chunk-4NZKBANW.js → chunk-QU5J4QXM.js} +3 -3
- package/dist/{chunk-4NZKBANW.js.map → chunk-QU5J4QXM.js.map} +1 -1
- package/dist/{chunk-RBXGVURD.js → chunk-SLAP5YVD.js} +4 -4
- package/dist/{chunk-RBXGVURD.js.map → chunk-SLAP5YVD.js.map} +1 -1
- package/dist/{chunk-IOLNWPRO.js → chunk-T2WCFT6J.js} +4 -4
- package/dist/{chunk-IOLNWPRO.js.map → chunk-T2WCFT6J.js.map} +1 -1
- package/dist/{chunk-YJWJPS25.js → chunk-V7RDFLP6.js} +59 -13
- package/dist/chunk-V7RDFLP6.js.map +1 -0
- package/dist/{chunk-AXWX5SJC.js → chunk-VT4HELNA.js} +3 -3
- package/dist/{chunk-AXWX5SJC.js.map → chunk-VT4HELNA.js.map} +1 -1
- package/dist/chunk-VYGA5AT5.js +27 -0
- package/dist/chunk-VYGA5AT5.js.map +1 -0
- package/dist/{chunk-7U5OLKOS.js → chunk-W6BDJU4X.js} +3 -3
- package/dist/{chunk-7U5OLKOS.js.map → chunk-W6BDJU4X.js.map} +1 -1
- package/dist/components/cart/index.js +2 -1
- package/dist/components/cart/lazy.d.ts +3 -3
- package/dist/components/cart/lazy.d.ts.map +1 -1
- package/dist/components/common/index.js +2 -1
- package/dist/components/common/lazy.d.ts +5 -5
- package/dist/components/common/lazy.d.ts.map +1 -1
- package/dist/components/drawer/index.js +15 -14
- package/dist/components/home/index.js +19 -18
- package/dist/components/home/lazy.d.ts +1 -1
- package/dist/components/home/lazy.d.ts.map +1 -1
- package/dist/components/layout/MasterLayout.d.ts.map +1 -1
- package/dist/components/layout/index.js +5 -4
- package/dist/components/layout/lazy.d.ts +6 -6
- package/dist/components/layout/lazy.d.ts.map +1 -1
- package/dist/components/live-editor/index.d.ts.map +1 -1
- package/dist/components/modal/index.js +2 -1
- package/dist/components/modal/lazy.d.ts +1 -1
- package/dist/components/modal/lazy.d.ts.map +1 -1
- package/dist/components/navigation/lazy.d.ts +2 -2
- package/dist/components/navigation/lazy.d.ts.map +1 -1
- package/dist/components/product/index.js +16 -15
- package/dist/components/product/lazy.d.ts +2 -2
- package/dist/components/product/lazy.d.ts.map +1 -1
- package/dist/components/snippets/AppsSnippets.d.ts.map +1 -1
- package/dist/components/store/index.js +16 -15
- package/dist/components/store/lazy.d.ts +2 -2
- package/dist/components/store/lazy.d.ts.map +1 -1
- package/dist/components/tracking/index.js +4 -3
- package/dist/components/tracking/index.js.map +1 -1
- package/dist/components/tracking/lazy.d.ts +2 -2
- package/dist/components/tracking/lazy.d.ts.map +1 -1
- package/dist/dev/editor/index.js +1 -1
- package/dist/dev/index.js +1 -1
- package/dist/{document-class-3GOSUA4H.js → document-class-TCFZKDMC.js} +13 -12
- package/dist/{document-class-3GOSUA4H.js.map → document-class-TCFZKDMC.js.map} +1 -1
- package/dist/hooks/index.js +15 -14
- package/dist/hooks/registerDefaultHooks.d.ts.map +1 -1
- package/dist/hooks/useGtm.js +15 -14
- package/dist/hooks/useMoney.js +15 -14
- package/dist/hooks/useStore.js +15 -14
- package/dist/hooks/useUser.js +3 -3
- package/dist/index.js +15 -14
- package/dist/index.js.map +1 -1
- package/dist/{navigation-ZV4TGIAA.js → navigation-7F6D5AI5.js} +5 -5
- package/dist/{navigation-ZV4TGIAA.js.map → navigation-7F6D5AI5.js.map} +1 -1
- package/dist/{navigation-SN2ZTS4V.js → navigation-OID45FWX.js} +4 -4
- package/dist/{navigation-SN2ZTS4V.js.map → navigation-OID45FWX.js.map} +1 -1
- package/dist/{not-found-J3UJVHNJ.js → not-found-377JUHOW.js} +18 -17
- package/dist/not-found-377JUHOW.js.map +1 -0
- package/dist/providers/DocumentSyncRegistry.d.ts +3 -3
- package/dist/providers/DocumentSyncRegistry.d.ts.map +1 -1
- package/dist/providers/index.js +15 -14
- package/dist/providers/navigation-setups.d.ts +3 -3
- package/dist/providers/navigation-setups.d.ts.map +1 -1
- package/dist/routes/account/notifications/index.d.ts +2 -2
- package/dist/routes/account/notifications/index.d.ts.map +1 -1
- package/dist/routes/account/orders/index.d.ts +4 -4
- package/dist/routes/account/orders/index.d.ts.map +1 -1
- package/dist/routes/account/orders.js +5 -4
- package/dist/routes/account/profile/index.d.ts +2 -2
- package/dist/routes/account/profile/index.d.ts.map +1 -1
- package/dist/routes/account/settings/index.d.ts +2 -2
- package/dist/routes/account/settings/index.d.ts.map +1 -1
- package/dist/routes/account/wallet/index.d.ts +2 -2
- package/dist/routes/account/wallet/index.d.ts.map +1 -1
- package/dist/routes/account/wishlist/index.d.ts +2 -2
- package/dist/routes/account/wishlist/index.d.ts.map +1 -1
- package/dist/routes/account.js +20 -18
- package/dist/routes/account.js.map +1 -1
- package/dist/routes/blog/index.d.ts +10 -10
- package/dist/routes/blog/index.d.ts.map +1 -1
- package/dist/routes/blog.js +15 -13
- package/dist/routes/blog.js.map +1 -1
- package/dist/routes/brands/index.d.ts +2 -2
- package/dist/routes/brands/index.d.ts.map +1 -1
- package/dist/routes/brands.js +7 -5
- package/dist/routes/brands.js.map +1 -1
- package/dist/routes/cart.js +23 -22
- package/dist/routes/cart.js.map +1 -1
- package/dist/routes/home.js +20 -19
- package/dist/routes/index.js +3 -3
- package/dist/routes/lazy.d.ts +22 -22
- package/dist/routes/lazy.d.ts.map +1 -1
- package/dist/routes/loyalty/index.d.ts +4 -4
- package/dist/routes/loyalty/index.d.ts.map +1 -1
- package/dist/routes/loyalty.js +8 -8
- package/dist/routes/loyalty.js.map +1 -1
- package/dist/routes/page/index.d.ts +2 -2
- package/dist/routes/page/index.d.ts.map +1 -1
- package/dist/routes/page.js +7 -5
- package/dist/routes/page.js.map +1 -1
- package/dist/routes/product-listing.js +21 -20
- package/dist/routes/product-listing.js.map +1 -1
- package/dist/routes/product.js +19 -18
- package/dist/routes/product.js.map +1 -1
- package/dist/routes/root/beforeLoad.d.ts.map +1 -1
- package/dist/routes/seo-redirects.js +3 -3
- package/dist/routes/testimonials/index.d.ts +4 -4
- package/dist/routes/testimonials/index.d.ts.map +1 -1
- package/dist/routes/testimonials.js +5 -5
- package/dist/routes/testimonials.js.map +1 -1
- package/dist/routes/thank-you/index.d.ts +2 -2
- package/dist/routes/thank-you/index.d.ts.map +1 -1
- package/dist/routes/thank-you.js +6 -6
- package/dist/routes/thank-you.js.map +1 -1
- package/dist/skeleton.js +20 -19
- package/dist/{store-lookup-U6TJNLZM.js → store-lookup-FNWIAJLT.js} +8 -8
- package/dist/{store-lookup-U6TJNLZM.js.map → store-lookup-FNWIAJLT.js.map} +1 -1
- package/dist/tanstack/router.d.ts.map +1 -1
- package/dist/tanstack.js +13 -12
- package/dist/tanstack.js.map +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/lazy-component.d.ts +26 -0
- package/dist/utils/lazy-component.d.ts.map +1 -0
- package/dist/utils/snippet-page-compat.d.ts +45 -0
- package/dist/utils/snippet-page-compat.d.ts.map +1 -0
- package/package.json +1 -1
- package/tailwind/components/cart/lazy.ts.txt +6 -4
- package/tailwind/components/common/lazy.ts.txt +6 -6
- package/tailwind/components/home/lazy.ts.txt +2 -2
- package/tailwind/components/layout/MasterLayout.tsx.txt +5 -4
- package/tailwind/components/layout/lazy.ts.txt +11 -7
- package/tailwind/components/live-editor/index.tsx.txt +3 -2
- package/tailwind/components/modal/lazy.ts.txt +2 -2
- package/tailwind/components/navigation/lazy.ts.txt +5 -3
- package/tailwind/components/product/lazy.ts.txt +3 -3
- package/tailwind/components/snippets/AppsSnippets.tsx.txt +4 -0
- package/tailwind/components/store/lazy.ts.txt +3 -3
- package/tailwind/components/tracking/lazy.ts.txt +3 -3
- package/tailwind/routes/account/notifications/index.tsx.txt +3 -2
- package/tailwind/routes/account/orders/index.tsx.txt +6 -3
- package/tailwind/routes/account/profile/index.tsx.txt +3 -2
- package/tailwind/routes/account/settings/index.tsx.txt +3 -2
- package/tailwind/routes/account/wallet/index.tsx.txt +5 -2
- package/tailwind/routes/account/wishlist/index.tsx.txt +3 -2
- package/tailwind/routes/blog/index.tsx.txt +9 -6
- package/tailwind/routes/brands/index.tsx.txt +5 -2
- package/tailwind/routes/lazy.ts.txt +23 -23
- package/tailwind/routes/loyalty/index.tsx.txt +4 -3
- package/tailwind/routes/page/index.tsx.txt +5 -2
- package/tailwind/routes/root/beforeLoad.ts.txt +6 -0
- package/tailwind/routes/testimonials/index.tsx.txt +4 -3
- package/tailwind/routes/thank-you/index.tsx.txt +3 -2
- package/dist/AddToCartForm-ODVZPTKN.js.map +0 -1
- package/dist/BlogAuthorPage-BU23SINI.js.map +0 -1
- package/dist/BlogCategoryPage-ZVITUHP4.js.map +0 -1
- package/dist/BlogPage-IN3V7FYK.js.map +0 -1
- package/dist/BlogSinglePage-UJG7YPYZ.js.map +0 -1
- package/dist/BlogTagPage-XDETNKGR.js.map +0 -1
- package/dist/BrandsPage-CBU7JFSX.js.map +0 -1
- package/dist/Breadcrumb-EA2XETAM.js.map +0 -1
- package/dist/CartItem-2TW36QTW.js.map +0 -1
- package/dist/CartSummary-TW2CAX57.js.map +0 -1
- package/dist/Copyright-57XPE75X.js.map +0 -1
- package/dist/CustomerLayout-A2M7IY34.js.map +0 -1
- package/dist/LoyaltyPage-BVTDPSP3.js.map +0 -1
- package/dist/LoyaltyPointsPage-HZYPCO7C.js.map +0 -1
- package/dist/MainMenu-3HP3YJDH.js.map +0 -1
- package/dist/MobileMenu-3UEQTURY.js.map +0 -1
- package/dist/NotificationsPage-C6LNYZTB.js.map +0 -1
- package/dist/OrderSinglePage-LXKINOXP.js.map +0 -1
- package/dist/OrdersPage-VBF3P3JH.js.map +0 -1
- package/dist/PageSingle-E7DTNIY7.js.map +0 -1
- package/dist/ProductDetails-ZQLQWU7S.js.map +0 -1
- package/dist/ProfilePage-7LAIDEHS.js.map +0 -1
- package/dist/ReviewsPage-FA3V745S.js.map +0 -1
- package/dist/SeoCartWidget-4456ASOT.js.map +0 -1
- package/dist/SettingsPage-IVOHCXVY.js.map +0 -1
- package/dist/TestimonialsPage-JY7MF5NW.js.map +0 -1
- package/dist/ThankYouPage-KNHHBFPZ.js.map +0 -1
- package/dist/WalletPage-HH72DHOC.js.map +0 -1
- package/dist/WishlistPage-5BR63SMU.js.map +0 -1
- package/dist/chunk-2GSYVPQS.js +0 -21
- package/dist/chunk-2GSYVPQS.js.map +0 -1
- package/dist/chunk-7V5HOZW4.js +0 -10
- package/dist/chunk-7V5HOZW4.js.map +0 -1
- package/dist/chunk-MWG734P7.js.map +0 -1
- package/dist/chunk-OKKS2RA4.js +0 -14
- package/dist/chunk-OKKS2RA4.js.map +0 -1
- package/dist/chunk-P3D67RVR.js.map +0 -1
- package/dist/chunk-SXI2XBCC.js.map +0 -1
- package/dist/chunk-VNDUKDZG.js.map +0 -1
- package/dist/chunk-VZPEPWDF.js.map +0 -1
- package/dist/chunk-X5QZBD5V.js.map +0 -1
- package/dist/chunk-YJWJPS25.js.map +0 -1
- package/dist/chunk-YKNDXZAD.js.map +0 -1
- package/dist/not-found-J3UJVHNJ.js.map +0 -1
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Suspense } from 'react';
|
|
2
2
|
import { Header } from './Header';
|
|
3
3
|
import { Footer } from './Footer';
|
|
4
4
|
import type { LayoutProps } from '../../types';
|
|
5
5
|
import { useTwilight } from '../../providers/twilight-context';
|
|
6
6
|
import { useUser } from '../../hooks';
|
|
7
|
+
import { lazyComponent } from '../../utils/lazy-component';
|
|
7
8
|
|
|
8
|
-
const SallaLoginModal =
|
|
9
|
+
const SallaLoginModal = lazyComponent(() =>
|
|
9
10
|
import('@salla.sa/twilight-components-react/login-modal').then((m) => ({
|
|
10
11
|
default: m.SallaLoginModal,
|
|
11
12
|
}))
|
|
12
13
|
);
|
|
13
|
-
const SallaScopes =
|
|
14
|
+
const SallaScopes = lazyComponent(() =>
|
|
14
15
|
import('@salla.sa/twilight-components-react/scopes').then((m) => ({
|
|
15
16
|
default: m.SallaScopes,
|
|
16
17
|
}))
|
|
17
18
|
);
|
|
18
|
-
const SallaOfferModal =
|
|
19
|
+
const SallaOfferModal = lazyComponent(() =>
|
|
19
20
|
import('@salla.sa/twilight-components-react/offer-modal').then((m) => ({
|
|
20
21
|
default: m.SallaOfferModal,
|
|
21
22
|
}))
|
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { lazyComponent } from '../../utils/lazy-component';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Lazy-loaded layout components
|
|
5
5
|
* Use these for code-splitting layout sections
|
|
6
6
|
*/
|
|
7
|
-
export const LazyHeader =
|
|
7
|
+
export const LazyHeader = lazyComponent(() =>
|
|
8
|
+
import('./Header').then((m) => ({ default: m.Header }))
|
|
9
|
+
);
|
|
8
10
|
|
|
9
|
-
export const LazyFooter =
|
|
11
|
+
export const LazyFooter = lazyComponent(() =>
|
|
12
|
+
import('./Footer').then((m) => ({ default: m.Footer }))
|
|
13
|
+
);
|
|
10
14
|
|
|
11
|
-
export const LazyCopyright =
|
|
15
|
+
export const LazyCopyright = lazyComponent(() =>
|
|
12
16
|
import('./Copyright').then((m) => ({ default: m.Copyright }))
|
|
13
17
|
);
|
|
14
18
|
|
|
15
|
-
export const LazyMasterLayout =
|
|
19
|
+
export const LazyMasterLayout = lazyComponent(() =>
|
|
16
20
|
import('./MasterLayout').then((m) => ({ default: m.MasterLayout }))
|
|
17
21
|
);
|
|
18
22
|
|
|
19
|
-
export const LazyWidgetHead =
|
|
23
|
+
export const LazyWidgetHead = lazyComponent(() =>
|
|
20
24
|
import('./WidgetHead').then((m) => ({ default: m.WidgetHead }))
|
|
21
25
|
);
|
|
22
26
|
|
|
23
|
-
export const LazyCustomerLayout =
|
|
27
|
+
export const LazyCustomerLayout = lazyComponent(() =>
|
|
24
28
|
import('./CustomerLayout').then((m) => ({ default: m.CustomerLayout }))
|
|
25
29
|
);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Suspense, useEffect, useState, type ReactElement } from 'react';
|
|
2
2
|
import { editorFrame, FRAME_LOADED_ACTION, postToEditor, type EditorFrame } from './frame';
|
|
3
|
+
import { lazyComponent } from '../../utils/lazy-component';
|
|
3
4
|
|
|
4
5
|
/** Off the shell chunk: only a store framed by the theme editor ever loads it. */
|
|
5
|
-
const LazyLiveEditorBar =
|
|
6
|
+
const LazyLiveEditorBar = lazyComponent(() =>
|
|
6
7
|
import('./LiveEditorBar').then((m) => ({ default: m.LiveEditorBar }))
|
|
7
8
|
);
|
|
8
9
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { lazyComponent } from '../../utils/lazy-component';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Lazy-loaded modal components
|
|
5
5
|
* ImageModal is lazy-loaded since it's a standalone component.
|
|
6
6
|
* Modal is kept eager because it uses compound component pattern.
|
|
7
7
|
*/
|
|
8
|
-
export const LazyImageModal =
|
|
8
|
+
export const LazyImageModal = lazyComponent(() =>
|
|
9
9
|
import('./ImageModal').then((m) => ({ default: m.ImageModal }))
|
|
10
10
|
);
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { lazyComponent } from '../../utils/lazy-component';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Lazy-loaded navigation components
|
|
5
5
|
* Use these for code-splitting navigation sections
|
|
6
6
|
*/
|
|
7
|
-
export const LazyMainMenu =
|
|
7
|
+
export const LazyMainMenu = lazyComponent(() =>
|
|
8
|
+
import('./MainMenu').then((m) => ({ default: m.MainMenu }))
|
|
9
|
+
);
|
|
8
10
|
|
|
9
|
-
export const LazyMobileMenu =
|
|
11
|
+
export const LazyMobileMenu = lazyComponent(() =>
|
|
10
12
|
import('./MobileMenu').then((m) => ({ default: m.MobileMenu }))
|
|
11
13
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { lazyComponent } from '../../utils/lazy-component';
|
|
2
2
|
|
|
3
|
-
export const LazyProductDetails =
|
|
3
|
+
export const LazyProductDetails = lazyComponent(() =>
|
|
4
4
|
import('./ProductDetails').then((m) => ({ default: m.ProductDetails }))
|
|
5
5
|
);
|
|
6
6
|
|
|
7
|
-
export const LazyAddToCartForm =
|
|
7
|
+
export const LazyAddToCartForm = lazyComponent(() =>
|
|
8
8
|
import('./AddToCartForm').then((m) => ({ default: m.AddToCartForm }))
|
|
9
9
|
);
|
|
@@ -3,6 +3,7 @@ import { useQuery } from '@tanstack/react-query';
|
|
|
3
3
|
import { apps, type AppSnippetRow } from '../../api/apps';
|
|
4
4
|
import { installAppScope } from '../../utils/app-scope';
|
|
5
5
|
import { applyThemeHookSlots } from '../../utils/theme-hook-slots';
|
|
6
|
+
import { setSnippetPageTargets } from '../../utils/snippet-page-compat';
|
|
6
7
|
import { getTwilightContext } from '../../twilight/context';
|
|
7
8
|
|
|
8
9
|
/** How long to wait on the SDK / settings before injecting anyway. */
|
|
@@ -180,6 +181,9 @@ export function AppsSnippets() {
|
|
|
180
181
|
[data]
|
|
181
182
|
);
|
|
182
183
|
|
|
184
|
+
// Pages these snippets check once on load: navigating to or from them reloads the document.
|
|
185
|
+
useEffect(() => setSnippetPageTargets(owned), [owned]);
|
|
186
|
+
|
|
183
187
|
// Every CDN snippet → a real `<script>` tag in the SSR body (rendered below).
|
|
184
188
|
const ssrCdnScripts = useMemo<SsrCdnScript[]>(
|
|
185
189
|
() =>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { lazyComponent } from '../../utils/lazy-component';
|
|
2
2
|
|
|
3
3
|
/** Lazy-loaded StoreClosedNotification component. */
|
|
4
|
-
export const LazyStoreClosedNotification =
|
|
4
|
+
export const LazyStoreClosedNotification = lazyComponent(() =>
|
|
5
5
|
import('./StoreClosedNotification').then((m) => ({
|
|
6
6
|
default: m.StoreClosedNotification,
|
|
7
7
|
}))
|
|
8
8
|
);
|
|
9
9
|
|
|
10
10
|
/** Lazy-loaded MaintenancePage: off the shell chunk, since almost no visit renders it. */
|
|
11
|
-
export const LazyMaintenancePage =
|
|
11
|
+
export const LazyMaintenancePage = lazyComponent(() =>
|
|
12
12
|
import('./MaintenancePage').then((m) => ({ default: m.MaintenancePage }))
|
|
13
13
|
);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { lazyComponent } from '../../utils/lazy-component';
|
|
2
2
|
|
|
3
3
|
/** Lazy-loaded GoogleTagBody component. */
|
|
4
|
-
export const LazyGoogleTagBody =
|
|
4
|
+
export const LazyGoogleTagBody = lazyComponent(() =>
|
|
5
5
|
import('./GoogleTag').then((m) => ({ default: m.GoogleTagBody }))
|
|
6
6
|
);
|
|
7
7
|
|
|
8
8
|
/** Lazy-loaded SiftSnippet component. */
|
|
9
|
-
export const LazySiftSnippet =
|
|
9
|
+
export const LazySiftSnippet = lazyComponent(() =>
|
|
10
10
|
import('./SiftSnippet').then((m) => ({ default: m.SiftSnippet }))
|
|
11
11
|
);
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { HeadDescriptor } from '../../../utils/head';
|
|
2
2
|
import { buildHreflangAlternates } from '../../../utils/baseHead';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { notificationsLoader } from './loader';
|
|
5
5
|
import type { NotificationsPageProps } from './types';
|
|
6
6
|
import type { TwilightContext } from '../../../twilight/context';
|
|
7
7
|
import { RouteId } from '../../../router/route-ids';
|
|
8
|
+
import { lazyComponent } from '../../../utils/lazy-component';
|
|
8
9
|
|
|
9
|
-
const LazyNotificationsPage =
|
|
10
|
+
const LazyNotificationsPage = lazyComponent(() =>
|
|
10
11
|
import('./NotificationsPage').then((m) => ({ default: m.NotificationsPage }))
|
|
11
12
|
);
|
|
12
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HeadDescriptor } from '../../../utils/head';
|
|
2
2
|
import { buildHreflangAlternates } from '../../../utils/baseHead';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { ordersLoader, orderSingleLoader } from './loader';
|
|
5
5
|
import type { OrdersPageProps, OrderSinglePageProps, OrdersSearchParams } from './types';
|
|
6
6
|
import type { IdParams } from '../../types';
|
|
@@ -8,8 +8,10 @@ import type { TwilightContext } from '../../../twilight/context';
|
|
|
8
8
|
import { RouteId } from '../../../router/route-ids';
|
|
9
9
|
|
|
10
10
|
// Lazy-load components for code-splitting
|
|
11
|
-
const LazyOrdersPage =
|
|
12
|
-
|
|
11
|
+
const LazyOrdersPage = lazyComponent(() =>
|
|
12
|
+
import('./OrdersPage').then((m) => ({ default: m.OrdersPage }))
|
|
13
|
+
);
|
|
14
|
+
const LazyOrderSinglePage = lazyComponent(() =>
|
|
13
15
|
import('./OrderSinglePage').then((m) => ({ default: m.OrderSinglePage }))
|
|
14
16
|
);
|
|
15
17
|
|
|
@@ -22,6 +24,7 @@ export type {
|
|
|
22
24
|
OrdersSearchParams,
|
|
23
25
|
OrdersQuery,
|
|
24
26
|
} from './types';
|
|
27
|
+
import { lazyComponent } from '../../../utils/lazy-component';
|
|
25
28
|
|
|
26
29
|
async function ordersLoaderWithExtend(
|
|
27
30
|
ctx: { search?: OrdersSearchParams; locale?: string; with_items?: boolean | number },
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { HeadDescriptor } from '../../../utils/head';
|
|
2
2
|
import { buildHreflangAlternates } from '../../../utils/baseHead';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { profileLoader } from './loader';
|
|
5
5
|
import type { ProfilePageProps } from './types';
|
|
6
6
|
import type { TwilightContext } from '../../../twilight/context';
|
|
7
7
|
import { RouteId } from '../../../router/route-ids';
|
|
8
|
+
import { lazyComponent } from '../../../utils/lazy-component';
|
|
8
9
|
|
|
9
|
-
const LazyProfilePage =
|
|
10
|
+
const LazyProfilePage = lazyComponent(() =>
|
|
10
11
|
import('./ProfilePage').then((m) => ({ default: m.ProfilePage }))
|
|
11
12
|
);
|
|
12
13
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { HeadDescriptor } from '../../../utils/head';
|
|
2
2
|
import { buildHreflangAlternates } from '../../../utils/baseHead';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { settingsLoader } from './loader';
|
|
5
5
|
import type { SettingsPageProps } from './types';
|
|
6
6
|
import type { TwilightContext } from '../../../twilight/context';
|
|
7
7
|
import { RouteId } from '../../../router/route-ids';
|
|
8
|
+
import { lazyComponent } from '../../../utils/lazy-component';
|
|
8
9
|
|
|
9
|
-
const LazySettingsPage =
|
|
10
|
+
const LazySettingsPage = lazyComponent(() =>
|
|
10
11
|
import('./SettingsPage').then((m) => ({ default: m.SettingsPage }))
|
|
11
12
|
);
|
|
12
13
|
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import type { HeadDescriptor } from '../../../utils/head';
|
|
2
2
|
import { buildHreflangAlternates } from '../../../utils/baseHead';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { walletLoader } from './loader';
|
|
5
5
|
import type { WalletPageProps } from './types';
|
|
6
6
|
import type { LoaderContext } from '../../types';
|
|
7
7
|
import type { TwilightContext } from '../../../twilight/context';
|
|
8
8
|
import { RouteId } from '../../../router/route-ids';
|
|
9
|
+
import { lazyComponent } from '../../../utils/lazy-component';
|
|
9
10
|
|
|
10
|
-
const LazyWalletPage =
|
|
11
|
+
const LazyWalletPage = lazyComponent(() =>
|
|
12
|
+
import('./WalletPage').then((m) => ({ default: m.WalletPage }))
|
|
13
|
+
);
|
|
11
14
|
|
|
12
15
|
export const WalletPage = LazyWalletPage;
|
|
13
16
|
export { walletLoader } from './loader';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { HeadDescriptor } from '../../../utils/head';
|
|
2
2
|
import { buildHreflangAlternates } from '../../../utils/baseHead';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { wishlistLoader } from './loader';
|
|
5
5
|
import type { WishlistPageProps } from './types';
|
|
6
6
|
import type { LoaderContext } from '../../types';
|
|
7
7
|
import type { TwilightContext } from '../../../twilight/context';
|
|
8
8
|
import { RouteId } from '../../../router/route-ids';
|
|
9
|
+
import { lazyComponent } from '../../../utils/lazy-component';
|
|
9
10
|
|
|
10
|
-
const LazyWishlistPage =
|
|
11
|
+
const LazyWishlistPage = lazyComponent(() =>
|
|
11
12
|
import('./WishlistPage').then((m) => ({ default: m.WishlistPage }))
|
|
12
13
|
);
|
|
13
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HeadDescriptor } from '../../utils/head';
|
|
2
2
|
import { buildHreflangAlternates } from '../../utils/baseHead';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import {
|
|
5
5
|
blogLoader,
|
|
6
6
|
blogSingleLoader,
|
|
@@ -27,17 +27,19 @@ import type { IdParams, SlugIdParams } from '../types';
|
|
|
27
27
|
import type { TwilightContext } from '../../twilight/context';
|
|
28
28
|
import { RouteId } from '../../router/route-ids';
|
|
29
29
|
|
|
30
|
-
const LazyBlogPage =
|
|
31
|
-
|
|
30
|
+
const LazyBlogPage = lazyComponent(() =>
|
|
31
|
+
import('./BlogPage').then((m) => ({ default: m.BlogPage }))
|
|
32
|
+
);
|
|
33
|
+
const LazyBlogSinglePage = lazyComponent(() =>
|
|
32
34
|
import('./BlogSinglePage').then((m) => ({ default: m.BlogSinglePage }))
|
|
33
35
|
);
|
|
34
|
-
const LazyBlogAuthorPage =
|
|
36
|
+
const LazyBlogAuthorPage = lazyComponent(() =>
|
|
35
37
|
import('./BlogAuthorPage').then((m) => ({ default: m.BlogAuthorPage }))
|
|
36
38
|
);
|
|
37
|
-
const LazyBlogCategoryPage =
|
|
39
|
+
const LazyBlogCategoryPage = lazyComponent(() =>
|
|
38
40
|
import('./BlogCategoryPage').then((m) => ({ default: m.BlogCategoryPage }))
|
|
39
41
|
);
|
|
40
|
-
const LazyBlogTagPage =
|
|
42
|
+
const LazyBlogTagPage = lazyComponent(() =>
|
|
41
43
|
import('./BlogTagPage').then((m) => ({ default: m.BlogTagPage }))
|
|
42
44
|
);
|
|
43
45
|
|
|
@@ -53,6 +55,7 @@ export {
|
|
|
53
55
|
blogCategoryLoader,
|
|
54
56
|
blogTagLoader,
|
|
55
57
|
} from './loader';
|
|
58
|
+
import { lazyComponent } from '../../utils/lazy-component';
|
|
56
59
|
export type {
|
|
57
60
|
BlogAuthorLoaderData,
|
|
58
61
|
BlogCategoryLoaderData,
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import type { HeadDescriptor } from '../../utils/head';
|
|
2
2
|
import { buildHreflangAlternates } from '../../utils/baseHead';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { brandsLoader } from './loader';
|
|
5
5
|
import type { BrandsPageProps } from './types';
|
|
6
6
|
import type { TwilightContext } from '../../twilight/context';
|
|
7
7
|
import { RouteId } from '../../router/route-ids';
|
|
8
|
+
import { lazyComponent } from '../../utils/lazy-component';
|
|
8
9
|
|
|
9
10
|
// Lazy-load components for code-splitting
|
|
10
|
-
const LazyBrandsPage =
|
|
11
|
+
const LazyBrandsPage = lazyComponent(() =>
|
|
12
|
+
import('./BrandsPage').then((m) => ({ default: m.BrandsPage }))
|
|
13
|
+
);
|
|
11
14
|
|
|
12
15
|
export const BrandsPage = LazyBrandsPage;
|
|
13
16
|
export { brandsLoader };
|
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { lazyComponent } from '../utils/lazy-component';
|
|
2
2
|
|
|
3
3
|
// Home
|
|
4
|
-
export const LazyHomePage =
|
|
4
|
+
export const LazyHomePage = lazyComponent(() =>
|
|
5
5
|
import('./home/HomePage').then((m) => ({ default: m.HomePage }))
|
|
6
6
|
);
|
|
7
7
|
|
|
8
8
|
// Cart
|
|
9
|
-
export const LazyCartPage =
|
|
9
|
+
export const LazyCartPage = lazyComponent(() =>
|
|
10
10
|
import('./cart/CartPage').then((m) => ({ default: m.CartPage }))
|
|
11
11
|
);
|
|
12
12
|
|
|
13
13
|
// Product
|
|
14
|
-
export const LazyProductPage =
|
|
14
|
+
export const LazyProductPage = lazyComponent(() =>
|
|
15
15
|
import('./product/ProductPage').then((m) => ({ default: m.ProductPage }))
|
|
16
16
|
);
|
|
17
17
|
|
|
18
18
|
// Product Listing (unified for all product list pages: category, search, tag, latest, most-sales, offers)
|
|
19
|
-
export const LazyProductListingPage =
|
|
19
|
+
export const LazyProductListingPage = lazyComponent(() =>
|
|
20
20
|
import('./product-listing/ProductListPage').then((m) => ({ default: m.ProductListPage }))
|
|
21
21
|
);
|
|
22
22
|
|
|
23
23
|
// Blog
|
|
24
|
-
export const LazyBlogPage =
|
|
24
|
+
export const LazyBlogPage = lazyComponent(() =>
|
|
25
25
|
import('./blog/BlogPage').then((m) => ({ default: m.BlogPage }))
|
|
26
26
|
);
|
|
27
27
|
|
|
28
|
-
export const LazyBlogSinglePage =
|
|
28
|
+
export const LazyBlogSinglePage = lazyComponent(() =>
|
|
29
29
|
import('./blog/BlogSinglePage').then((m) => ({ default: m.BlogSinglePage }))
|
|
30
30
|
);
|
|
31
31
|
|
|
32
|
-
export const LazyBlogAuthorPage =
|
|
32
|
+
export const LazyBlogAuthorPage = lazyComponent(() =>
|
|
33
33
|
import('./blog/BlogAuthorPage').then((m) => ({ default: m.BlogAuthorPage }))
|
|
34
34
|
);
|
|
35
35
|
|
|
36
|
-
export const LazyBlogCategoryPage =
|
|
36
|
+
export const LazyBlogCategoryPage = lazyComponent(() =>
|
|
37
37
|
import('./blog/BlogCategoryPage').then((m) => ({ default: m.BlogCategoryPage }))
|
|
38
38
|
);
|
|
39
39
|
|
|
40
|
-
export const LazyBlogTagPage =
|
|
40
|
+
export const LazyBlogTagPage = lazyComponent(() =>
|
|
41
41
|
import('./blog/BlogTagPage').then((m) => ({ default: m.BlogTagPage }))
|
|
42
42
|
);
|
|
43
43
|
|
|
44
44
|
// Brands
|
|
45
|
-
export const LazyBrandsPage =
|
|
45
|
+
export const LazyBrandsPage = lazyComponent(() =>
|
|
46
46
|
import('./brands/BrandsPage').then((m) => ({ default: m.BrandsPage }))
|
|
47
47
|
);
|
|
48
48
|
|
|
49
49
|
// BrandSingle uses ProductListing module via tanstack.adapter.ts - no lazy export needed
|
|
50
50
|
|
|
51
51
|
// Customer
|
|
52
|
-
export const LazyProfilePage =
|
|
52
|
+
export const LazyProfilePage = lazyComponent(() =>
|
|
53
53
|
import('./account/profile/ProfilePage').then((m) => ({ default: m.ProfilePage }))
|
|
54
54
|
);
|
|
55
55
|
|
|
56
|
-
export const LazyWishlistPage =
|
|
56
|
+
export const LazyWishlistPage = lazyComponent(() =>
|
|
57
57
|
import('./account/wishlist/WishlistPage').then((m) => ({ default: m.WishlistPage }))
|
|
58
58
|
);
|
|
59
59
|
|
|
60
|
-
export const LazyWalletPage =
|
|
60
|
+
export const LazyWalletPage = lazyComponent(() =>
|
|
61
61
|
import('./account/wallet/WalletPage').then((m) => ({ default: m.WalletPage }))
|
|
62
62
|
);
|
|
63
63
|
|
|
64
|
-
export const LazyNotificationsPage =
|
|
64
|
+
export const LazyNotificationsPage = lazyComponent(() =>
|
|
65
65
|
import('./account/notifications/NotificationsPage').then((m) => ({
|
|
66
66
|
default: m.NotificationsPage,
|
|
67
67
|
}))
|
|
68
68
|
);
|
|
69
69
|
|
|
70
|
-
export const LazySettingsPage =
|
|
70
|
+
export const LazySettingsPage = lazyComponent(() =>
|
|
71
71
|
import('./account/settings/SettingsPage').then((m) => ({ default: m.SettingsPage }))
|
|
72
72
|
);
|
|
73
73
|
|
|
74
|
-
export const LazyOrdersPage =
|
|
74
|
+
export const LazyOrdersPage = lazyComponent(() =>
|
|
75
75
|
import('./account/orders/OrdersPage').then((m) => ({ default: m.OrdersPage }))
|
|
76
76
|
);
|
|
77
77
|
|
|
78
|
-
export const LazyOrderSinglePage =
|
|
78
|
+
export const LazyOrderSinglePage = lazyComponent(() =>
|
|
79
79
|
import('./account/orders/OrderSinglePage').then((m) => ({ default: m.OrderSinglePage }))
|
|
80
80
|
);
|
|
81
81
|
|
|
82
82
|
// Loyalty
|
|
83
|
-
export const LazyLoyaltyPage =
|
|
83
|
+
export const LazyLoyaltyPage = lazyComponent(() =>
|
|
84
84
|
import('./loyalty/LoyaltyPage').then((m) => ({ default: m.LoyaltyPage }))
|
|
85
85
|
);
|
|
86
86
|
|
|
87
87
|
// Page (static)
|
|
88
|
-
export const LazyPageSingle =
|
|
88
|
+
export const LazyPageSingle = lazyComponent(() =>
|
|
89
89
|
import('./page/PageSingle').then((m) => ({ default: m.PageSingle }))
|
|
90
90
|
);
|
|
91
91
|
|
|
92
92
|
// Testimonials
|
|
93
|
-
export const LazyTestimonialsPage =
|
|
93
|
+
export const LazyTestimonialsPage = lazyComponent(() =>
|
|
94
94
|
import('./testimonials/TestimonialsPage').then((m) => ({ default: m.TestimonialsPage }))
|
|
95
95
|
);
|
|
96
96
|
|
|
97
97
|
// Thank You
|
|
98
|
-
export const LazyThankYouPage =
|
|
98
|
+
export const LazyThankYouPage = lazyComponent(() =>
|
|
99
99
|
import('./thank-you/ThankYouPage').then((m) => ({ default: m.ThankYouPage }))
|
|
100
100
|
);
|
|
101
101
|
|
|
102
102
|
// Not Found
|
|
103
|
-
export const LazyNotFoundPage =
|
|
103
|
+
export const LazyNotFoundPage = lazyComponent(() =>
|
|
104
104
|
import('./not-found').then((m) => ({ default: m.NotFoundPage }))
|
|
105
105
|
);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { HeadDescriptor } from '../../utils/head';
|
|
2
2
|
import { buildHreflangAlternates } from '../../utils/baseHead';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { loyaltyLoader, loyaltyPointsLoader } from './loader';
|
|
5
5
|
import type { LoyaltyPageProps, LoyaltyPointsPageProps } from './types';
|
|
6
6
|
import type { TwilightContext } from '../../twilight/context';
|
|
7
7
|
import { RouteId } from '../../router/route-ids';
|
|
8
8
|
|
|
9
9
|
// Lazy-load component for code-splitting
|
|
10
|
-
const LazyLoyaltyPage =
|
|
10
|
+
const LazyLoyaltyPage = lazyComponent(() =>
|
|
11
11
|
import('./LoyaltyPage').then((m) => ({ default: m.LoyaltyPage }))
|
|
12
12
|
);
|
|
13
13
|
|
|
14
|
-
const LazyLoyaltyPointsPage =
|
|
14
|
+
const LazyLoyaltyPointsPage = lazyComponent(() =>
|
|
15
15
|
import('./LoyaltyPointsPage').then((m) => ({ default: m.LoyaltyPointsPage }))
|
|
16
16
|
);
|
|
17
17
|
|
|
@@ -25,6 +25,7 @@ export type {
|
|
|
25
25
|
LoyaltyPrize,
|
|
26
26
|
LoyaltyPrizeItem,
|
|
27
27
|
} from './types';
|
|
28
|
+
import { lazyComponent } from '../../utils/lazy-component';
|
|
28
29
|
|
|
29
30
|
async function loader(
|
|
30
31
|
ctx?: { locale?: string },
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import type { HeadDescriptor } from '../../utils/head';
|
|
2
2
|
import { buildHreflangAlternates } from '../../utils/baseHead';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { pageSingleLoader } from './loader';
|
|
5
5
|
import type { PageSingleProps } from './types';
|
|
6
6
|
import type { IdParams } from '../types';
|
|
7
7
|
import type { TwilightContext } from '../../twilight/context';
|
|
8
8
|
import { RouteId } from '../../router/route-ids';
|
|
9
|
+
import { lazyComponent } from '../../utils/lazy-component';
|
|
9
10
|
|
|
10
11
|
// Lazy-load component for code-splitting
|
|
11
|
-
const LazyPageSingle =
|
|
12
|
+
const LazyPageSingle = lazyComponent(() =>
|
|
13
|
+
import('./PageSingle').then((m) => ({ default: m.PageSingle }))
|
|
14
|
+
);
|
|
12
15
|
|
|
13
16
|
export const PageSingleLazy = LazyPageSingle;
|
|
14
17
|
export { pageSingleLoader } from './loader';
|
|
@@ -39,6 +39,7 @@ import {
|
|
|
39
39
|
import { persistLanguageCookie, readCookieHeader } from '../../utils/language-cookie';
|
|
40
40
|
import { decideSharedHostLanguage } from '../../utils/shared-host-language';
|
|
41
41
|
import { prefixStoreBase } from '../../utils/store-base';
|
|
42
|
+
import { preloadServerComponents } from '../../utils/lazy-component';
|
|
42
43
|
import {
|
|
43
44
|
ownerCookieMatches,
|
|
44
45
|
ownerLinkMatches,
|
|
@@ -342,6 +343,10 @@ export async function rootBeforeLoad(ctx: {
|
|
|
342
343
|
// client. No-op on the server and while the SDK storage API is still hydrating.
|
|
343
344
|
syncScopeCookie();
|
|
344
345
|
|
|
346
|
+
// On the server, the lazy components load beside the requests below, so none suspends in
|
|
347
|
+
// the render: a fresh isolate otherwise streamed every block after the shell.
|
|
348
|
+
const componentsLoaded = preloadServerComponents();
|
|
349
|
+
|
|
345
350
|
// Kept until the rest have settled, as a missing answer always was, then thrown:
|
|
346
351
|
// it says why the store did not load.
|
|
347
352
|
let settingsFailure: unknown;
|
|
@@ -380,6 +385,7 @@ export async function rootBeforeLoad(ctx: {
|
|
|
380
385
|
]
|
|
381
386
|
);
|
|
382
387
|
|
|
388
|
+
await componentsLoaded;
|
|
383
389
|
if (!settingsResult) throw settingsFailureToThrow(settingsFailure);
|
|
384
390
|
|
|
385
391
|
// Settings answered for another market name another theme version; the SDK only
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { HeadDescriptor } from '../../utils/head';
|
|
2
2
|
import { buildHreflangAlternates } from '../../utils/baseHead';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { reviewsLoader, testimonialsLoader } from './loader';
|
|
5
5
|
import type { ReviewsPageProps, TestimonialsPageProps } from './types';
|
|
6
6
|
import type { TwilightContext } from '../../twilight/context';
|
|
7
7
|
import { RouteId } from '../../router/route-ids';
|
|
8
|
+
import { lazyComponent } from '../../utils/lazy-component';
|
|
8
9
|
|
|
9
10
|
// Lazy-load component for code-splitting
|
|
10
|
-
const LazyTestimonialsPage =
|
|
11
|
+
const LazyTestimonialsPage = lazyComponent(() =>
|
|
11
12
|
import('./TestimonialsPage').then((m) => ({ default: m.TestimonialsPage }))
|
|
12
13
|
);
|
|
13
14
|
|
|
14
|
-
const LazyReviewsPage =
|
|
15
|
+
const LazyReviewsPage = lazyComponent(() =>
|
|
15
16
|
import('./ReviewsPage').then((m) => ({ default: m.ReviewsPage }))
|
|
16
17
|
);
|
|
17
18
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { HeadDescriptor } from '../../utils/head';
|
|
2
2
|
import { buildHreflangAlternates } from '../../utils/baseHead';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { thankYouLoader } from './loader';
|
|
5
5
|
import type { ThankYouPageProps, ThankYouLoaderParams } from './types';
|
|
6
6
|
import type { TwilightContext } from '../../twilight/context';
|
|
7
7
|
import { RouteId } from '../../router/route-ids';
|
|
8
|
+
import { lazyComponent } from '../../utils/lazy-component';
|
|
8
9
|
|
|
9
10
|
// Lazy-load component for code-splitting
|
|
10
|
-
const LazyThankYouPage =
|
|
11
|
+
const LazyThankYouPage = lazyComponent(() =>
|
|
11
12
|
import('./ThankYouPage').then((m) => ({ default: m.ThankYouPage }))
|
|
12
13
|
);
|
|
13
14
|
|