@salla.sa/twilight-theme-engine 1.0.178 → 1.0.179
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-KN67K7AQ.js → AddToCartForm-PU3HSWJ2.js} +3 -3
- package/dist/{AddToCartForm-KN67K7AQ.js.map → AddToCartForm-PU3HSWJ2.js.map} +1 -1
- package/dist/{BlogAuthorPage-E74LKVMH.js → BlogAuthorPage-ALEAMIU3.js} +29 -29
- package/dist/{BlogAuthorPage-E74LKVMH.js.map → BlogAuthorPage-ALEAMIU3.js.map} +1 -1
- package/dist/{BlogCategoryPage-77QEH2VO.js → BlogCategoryPage-FDRB6PXV.js} +29 -29
- package/dist/{BlogCategoryPage-77QEH2VO.js.map → BlogCategoryPage-FDRB6PXV.js.map} +1 -1
- package/dist/{BlogPage-2XST3XR2.js → BlogPage-GV6MJBCC.js} +27 -27
- package/dist/{BlogPage-2XST3XR2.js.map → BlogPage-GV6MJBCC.js.map} +1 -1
- package/dist/{BlogSinglePage-4ML5A2OB.js → BlogSinglePage-QZSUUYEP.js} +27 -27
- package/dist/{BlogSinglePage-4ML5A2OB.js.map → BlogSinglePage-QZSUUYEP.js.map} +1 -1
- package/dist/{BlogTagPage-7XP4FXK6.js → BlogTagPage-L2ETWHOA.js} +29 -29
- package/dist/{BlogTagPage-7XP4FXK6.js.map → BlogTagPage-L2ETWHOA.js.map} +1 -1
- package/dist/{BrandsPage-YKYYYVDU.js → BrandsPage-M6H3TMAZ.js} +28 -28
- package/dist/{BrandsPage-YKYYYVDU.js.map → BrandsPage-M6H3TMAZ.js.map} +1 -1
- package/dist/{Breadcrumb-FNWRNQ24.js → Breadcrumb-4LL7EDJQ.js} +27 -27
- package/dist/{Breadcrumb-FNWRNQ24.js.map → Breadcrumb-4LL7EDJQ.js.map} +1 -1
- package/dist/{CartItem-WHBZF4JF.js → CartItem-HSPK7FVI.js} +27 -27
- package/dist/{CartItem-WHBZF4JF.js.map → CartItem-HSPK7FVI.js.map} +1 -1
- package/dist/{CartSummary-Z4AC2L2X.js → CartSummary-VWQARWQZ.js} +27 -27
- package/dist/{CartSummary-Z4AC2L2X.js.map → CartSummary-VWQARWQZ.js.map} +1 -1
- package/dist/{Copyright-P3W6UZVC.js → Copyright-OGRI3VDT.js} +3 -3
- package/dist/{Copyright-P3W6UZVC.js.map → Copyright-OGRI3VDT.js.map} +1 -1
- package/dist/{CustomerLayout-RB44K7JV.js → CustomerLayout-3ECGJERS.js} +27 -27
- package/dist/{CustomerLayout-RB44K7JV.js.map → CustomerLayout-3ECGJERS.js.map} +1 -1
- package/dist/{Footer-RMNHNTZM.js → Footer-AV2AYONC.js} +3 -3
- package/dist/{Footer-RMNHNTZM.js.map → Footer-AV2AYONC.js.map} +1 -1
- package/dist/GoogleTag-QMZRHD4X.js +15 -0
- package/dist/{GoogleTag-IBUOI4BU.js.map → GoogleTag-QMZRHD4X.js.map} +1 -1
- package/dist/Header-L5KLG4MZ.js +25 -0
- package/dist/{Header-3W742LRD.js.map → Header-L5KLG4MZ.js.map} +1 -1
- package/dist/{LatestProducts-QFRDI7TQ.js → LatestProducts-JX63QU2Q.js} +29 -29
- package/dist/{LatestProducts-QFRDI7TQ.js.map → LatestProducts-JX63QU2Q.js.map} +1 -1
- package/dist/{LoyaltyPage-N5D5Q3NL.js → LoyaltyPage-IHDCFL76.js} +27 -27
- package/dist/{LoyaltyPage-N5D5Q3NL.js.map → LoyaltyPage-IHDCFL76.js.map} +1 -1
- package/dist/{LoyaltyPointsPage-G3XGE4HT.js → LoyaltyPointsPage-LPROU7VQ.js} +9 -9
- package/dist/{LoyaltyPointsPage-G3XGE4HT.js.map → LoyaltyPointsPage-LPROU7VQ.js.map} +1 -1
- package/dist/{MainMenu-4GUU2NAF.js → MainMenu-BWZ23TDI.js} +8 -8
- package/dist/{MainMenu-4GUU2NAF.js.map → MainMenu-BWZ23TDI.js.map} +1 -1
- package/dist/MaintenancePage-BNI7DUIN.js +7 -0
- package/dist/{MaintenancePage-3YUQXVN2.js.map → MaintenancePage-BNI7DUIN.js.map} +1 -1
- package/dist/{MasterLayout-BJA7J6RF.js → MasterLayout-RPMD3PK4.js} +27 -27
- package/dist/{MasterLayout-BJA7J6RF.js.map → MasterLayout-RPMD3PK4.js.map} +1 -1
- package/dist/{MobileMenu-ORFZ7IKI.js → MobileMenu-34RGWC2J.js} +28 -28
- package/dist/{MobileMenu-ORFZ7IKI.js.map → MobileMenu-34RGWC2J.js.map} +1 -1
- package/dist/{NotificationsPage-2S4PT63V.js → NotificationsPage-UHM2W5DB.js} +27 -27
- package/dist/{NotificationsPage-2S4PT63V.js.map → NotificationsPage-UHM2W5DB.js.map} +1 -1
- package/dist/{OrderSinglePage-3VW6TSFJ.js → OrderSinglePage-4IAJU4C3.js} +28 -28
- package/dist/{OrderSinglePage-3VW6TSFJ.js.map → OrderSinglePage-4IAJU4C3.js.map} +1 -1
- package/dist/{OrdersPage-26MUU5J7.js → OrdersPage-YXZVN2JK.js} +27 -27
- package/dist/{OrdersPage-26MUU5J7.js.map → OrdersPage-YXZVN2JK.js.map} +1 -1
- package/dist/{PageSingle-5BBSPDMH.js → PageSingle-Z6MD6WIR.js} +7 -7
- package/dist/{PageSingle-5BBSPDMH.js.map → PageSingle-Z6MD6WIR.js.map} +1 -1
- package/dist/{ProductDetails-E7OGZJ3G.js → ProductDetails-C7UP2L3R.js} +8 -8
- package/dist/{ProductDetails-E7OGZJ3G.js.map → ProductDetails-C7UP2L3R.js.map} +1 -1
- package/dist/{ProfilePage-KKHEJCAF.js → ProfilePage-V4HJKQXY.js} +27 -27
- package/dist/{ProfilePage-KKHEJCAF.js.map → ProfilePage-V4HJKQXY.js.map} +1 -1
- package/dist/{ReviewsPage-364PK4XM.js → ReviewsPage-CPGRNEJB.js} +3 -3
- package/dist/{ReviewsPage-364PK4XM.js.map → ReviewsPage-CPGRNEJB.js.map} +1 -1
- package/dist/{SeoCartWidget-GLTV6C4J.js → SeoCartWidget-WKRTIIVI.js} +27 -27
- package/dist/{SeoCartWidget-GLTV6C4J.js.map → SeoCartWidget-WKRTIIVI.js.map} +1 -1
- package/dist/{SettingsPage-A2H4WKQ3.js → SettingsPage-ZZDWJODN.js} +27 -27
- package/dist/{SettingsPage-A2H4WKQ3.js.map → SettingsPage-ZZDWJODN.js.map} +1 -1
- package/dist/{StoreClosedNotification-QAMEUZQD.js → StoreClosedNotification-PAMU72KO.js} +28 -28
- package/dist/{StoreClosedNotification-QAMEUZQD.js.map → StoreClosedNotification-PAMU72KO.js.map} +1 -1
- package/dist/{TestimonialsPage-2UH35ZXG.js → TestimonialsPage-QQ42QDZG.js} +7 -7
- package/dist/{TestimonialsPage-2UH35ZXG.js.map → TestimonialsPage-QQ42QDZG.js.map} +1 -1
- package/dist/{ThankYouPage-2LUGL65U.js → ThankYouPage-P752YDVP.js} +27 -27
- package/dist/{ThankYouPage-2LUGL65U.js.map → ThankYouPage-P752YDVP.js.map} +1 -1
- package/dist/{WalletPage-WNZP37OM.js → WalletPage-J4KZFZMV.js} +28 -28
- package/dist/{WalletPage-WNZP37OM.js.map → WalletPage-J4KZFZMV.js.map} +1 -1
- package/dist/{WebMcpTools-F663L3R7.js → WebMcpTools-E3LAXFWE.js} +10 -10
- package/dist/{WebMcpTools-F663L3R7.js.map → WebMcpTools-E3LAXFWE.js.map} +1 -1
- package/dist/{WishlistPage-4G4B5ZE5.js → WishlistPage-USYEHM3R.js} +29 -29
- package/dist/{WishlistPage-4G4B5ZE5.js.map → WishlistPage-USYEHM3R.js.map} +1 -1
- package/dist/api/advertisement.js +5 -5
- package/dist/api/apps.js +5 -5
- package/dist/api/blog.js +7 -7
- package/dist/api/brands.js +7 -7
- package/dist/api/cart.js +7 -7
- package/dist/api/category.js +7 -7
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +4 -4
- package/dist/api/custom-url.js +5 -5
- package/dist/api/home.js +5 -5
- package/dist/api/loyalty.js +7 -7
- package/dist/api/menu.js +5 -5
- package/dist/api/notification.js +5 -5
- package/dist/api/order.js +7 -7
- package/dist/api/page.js +7 -7
- package/dist/api/product.js +7 -7
- package/dist/api/profile.js +4 -4
- package/dist/api/store.d.ts.map +1 -1
- package/dist/api/store.js +6 -6
- package/dist/api/translations.js +5 -5
- package/dist/api/user.js +5 -5
- package/dist/api/wallet.js +5 -5
- package/dist/api/wishlist.js +8 -8
- package/dist/{chunk-RLZUJSEZ.js → chunk-222C7M7Q.js} +3 -3
- package/dist/{chunk-RLZUJSEZ.js.map → chunk-222C7M7Q.js.map} +1 -1
- package/dist/{chunk-NGA74AJ3.js → chunk-2D52MYZ7.js} +5 -5
- package/dist/{chunk-NGA74AJ3.js.map → chunk-2D52MYZ7.js.map} +1 -1
- package/dist/{chunk-ZMOAJ562.js → chunk-2OIMVGY7.js} +5 -5
- package/dist/{chunk-ZMOAJ562.js.map → chunk-2OIMVGY7.js.map} +1 -1
- package/dist/{chunk-TPHLHWCB.js → chunk-3CPVV6UZ.js} +3 -3
- package/dist/{chunk-TPHLHWCB.js.map → chunk-3CPVV6UZ.js.map} +1 -1
- package/dist/{chunk-Z3DFIJCE.js → chunk-4BTFGO7A.js} +4 -4
- package/dist/{chunk-Z3DFIJCE.js.map → chunk-4BTFGO7A.js.map} +1 -1
- package/dist/{chunk-VLL4GO7G.js → chunk-4OZIBANF.js} +3 -3
- package/dist/{chunk-VLL4GO7G.js.map → chunk-4OZIBANF.js.map} +1 -1
- package/dist/{chunk-VDTDYLVU.js → chunk-5S7Q5Y7J.js} +5 -5
- package/dist/{chunk-VDTDYLVU.js.map → chunk-5S7Q5Y7J.js.map} +1 -1
- package/dist/{chunk-7JNZQKJ3.js → chunk-64BWBCE7.js} +3 -3
- package/dist/{chunk-7JNZQKJ3.js.map → chunk-64BWBCE7.js.map} +1 -1
- package/dist/{chunk-DQKUMGEK.js → chunk-6MA73U4W.js} +7 -7
- package/dist/{chunk-DQKUMGEK.js.map → chunk-6MA73U4W.js.map} +1 -1
- package/dist/{chunk-7WJ5YLUV.js → chunk-7FV5TZOF.js} +8 -8
- package/dist/{chunk-7WJ5YLUV.js.map → chunk-7FV5TZOF.js.map} +1 -1
- package/dist/{chunk-C7WEJHTK.js → chunk-7GNITA3Q.js} +9 -9
- package/dist/{chunk-C7WEJHTK.js.map → chunk-7GNITA3Q.js.map} +1 -1
- package/dist/{chunk-4R5DOFG3.js → chunk-7LJSOOVX.js} +22 -8
- package/dist/chunk-7LJSOOVX.js.map +1 -0
- package/dist/{chunk-TARGBVMN.js → chunk-7YWEUCJZ.js} +3 -3
- package/dist/{chunk-TARGBVMN.js.map → chunk-7YWEUCJZ.js.map} +1 -1
- package/dist/{chunk-6AK5XDNZ.js → chunk-AXX7A2JJ.js} +3 -3
- package/dist/{chunk-6AK5XDNZ.js.map → chunk-AXX7A2JJ.js.map} +1 -1
- package/dist/{chunk-VV5MI7CL.js → chunk-BMLQBIGL.js} +4 -4
- package/dist/{chunk-VV5MI7CL.js.map → chunk-BMLQBIGL.js.map} +1 -1
- package/dist/{chunk-4MKA22LE.js → chunk-BNKUNYQS.js} +9 -9
- package/dist/{chunk-4MKA22LE.js.map → chunk-BNKUNYQS.js.map} +1 -1
- package/dist/{chunk-YF72DLML.js → chunk-BYA4ZF7E.js} +3 -3
- package/dist/{chunk-YF72DLML.js.map → chunk-BYA4ZF7E.js.map} +1 -1
- package/dist/{chunk-H73VXFYO.js → chunk-BZ2QSBXM.js} +3 -3
- package/dist/{chunk-H73VXFYO.js.map → chunk-BZ2QSBXM.js.map} +1 -1
- package/dist/{chunk-WACEL34M.js → chunk-CCLURCDN.js} +3 -3
- package/dist/{chunk-WACEL34M.js.map → chunk-CCLURCDN.js.map} +1 -1
- package/dist/{chunk-MOF4DY5N.js → chunk-CEANKKQV.js} +4 -4
- package/dist/{chunk-MOF4DY5N.js.map → chunk-CEANKKQV.js.map} +1 -1
- package/dist/{chunk-HJZJTZD6.js → chunk-COGTJFST.js} +9 -9
- package/dist/{chunk-HJZJTZD6.js.map → chunk-COGTJFST.js.map} +1 -1
- package/dist/{chunk-G5VJKMKU.js → chunk-DAEHJTTJ.js} +5 -5
- package/dist/{chunk-G5VJKMKU.js.map → chunk-DAEHJTTJ.js.map} +1 -1
- package/dist/{chunk-5P477R4M.js → chunk-DAWZ264W.js} +4 -4
- package/dist/{chunk-5P477R4M.js.map → chunk-DAWZ264W.js.map} +1 -1
- package/dist/{chunk-BFSGYXFL.js → chunk-DE72SXU4.js} +7 -7
- package/dist/{chunk-BFSGYXFL.js.map → chunk-DE72SXU4.js.map} +1 -1
- package/dist/{chunk-VZ5EMKBD.js → chunk-DI2J3BL6.js} +6 -6
- package/dist/{chunk-VZ5EMKBD.js.map → chunk-DI2J3BL6.js.map} +1 -1
- package/dist/{chunk-NM4KWMCR.js → chunk-DPB47XO7.js} +5 -5
- package/dist/{chunk-NM4KWMCR.js.map → chunk-DPB47XO7.js.map} +1 -1
- package/dist/{chunk-EEI5I5PL.js → chunk-DVJGKIFQ.js} +3 -3
- package/dist/{chunk-EEI5I5PL.js.map → chunk-DVJGKIFQ.js.map} +1 -1
- package/dist/{chunk-4DPJCTO3.js → chunk-EF4X2I6C.js} +3 -3
- package/dist/{chunk-4DPJCTO3.js.map → chunk-EF4X2I6C.js.map} +1 -1
- package/dist/{chunk-SF46OQ4Z.js → chunk-F2WU2SMZ.js} +3 -3
- package/dist/{chunk-SF46OQ4Z.js.map → chunk-F2WU2SMZ.js.map} +1 -1
- package/dist/{chunk-VXF7HAHK.js → chunk-F37RZ7WN.js} +19 -19
- package/dist/{chunk-VXF7HAHK.js.map → chunk-F37RZ7WN.js.map} +1 -1
- package/dist/{chunk-THFF2FSI.js → chunk-FN4CZTDF.js} +3 -3
- package/dist/{chunk-THFF2FSI.js.map → chunk-FN4CZTDF.js.map} +1 -1
- package/dist/{chunk-UBIFYEHW.js → chunk-FQX3XITL.js} +4 -4
- package/dist/{chunk-UBIFYEHW.js.map → chunk-FQX3XITL.js.map} +1 -1
- package/dist/{chunk-CACGTFUX.js → chunk-GKYFMDKD.js} +4 -4
- package/dist/{chunk-CACGTFUX.js.map → chunk-GKYFMDKD.js.map} +1 -1
- package/dist/{chunk-UTP3UKCB.js → chunk-HHAR2YJN.js} +3 -3
- package/dist/{chunk-UTP3UKCB.js.map → chunk-HHAR2YJN.js.map} +1 -1
- package/dist/{chunk-QHYIQLJ7.js → chunk-HNM4V7E2.js} +4 -4
- package/dist/{chunk-QHYIQLJ7.js.map → chunk-HNM4V7E2.js.map} +1 -1
- package/dist/{chunk-VCPCJ55V.js → chunk-IAMGCG7Z.js} +4 -4
- package/dist/{chunk-VCPCJ55V.js.map → chunk-IAMGCG7Z.js.map} +1 -1
- package/dist/{chunk-E36SKXG2.js → chunk-IBGAXEPC.js} +3 -3
- package/dist/{chunk-E36SKXG2.js.map → chunk-IBGAXEPC.js.map} +1 -1
- package/dist/{chunk-7XSTKJK7.js → chunk-KD6JJJFI.js} +7 -7
- package/dist/{chunk-7XSTKJK7.js.map → chunk-KD6JJJFI.js.map} +1 -1
- package/dist/{chunk-ENXFWV3Z.js → chunk-KOR3BF6E.js} +4 -4
- package/dist/{chunk-ENXFWV3Z.js.map → chunk-KOR3BF6E.js.map} +1 -1
- package/dist/{chunk-N7SDFCJG.js → chunk-LNOKDS74.js} +5 -5
- package/dist/{chunk-N7SDFCJG.js.map → chunk-LNOKDS74.js.map} +1 -1
- package/dist/{chunk-AWANNFME.js → chunk-MAQZ2E43.js} +6 -6
- package/dist/{chunk-AWANNFME.js.map → chunk-MAQZ2E43.js.map} +1 -1
- package/dist/{chunk-WN573HB3.js → chunk-MKMA2FJU.js} +5 -5
- package/dist/{chunk-WN573HB3.js.map → chunk-MKMA2FJU.js.map} +1 -1
- package/dist/{chunk-2QQSSJKZ.js → chunk-MVQZJX5I.js} +24 -24
- package/dist/{chunk-2QQSSJKZ.js.map → chunk-MVQZJX5I.js.map} +1 -1
- package/dist/{chunk-PLD6KSYE.js → chunk-MWUAHDQL.js} +17 -4
- package/dist/chunk-MWUAHDQL.js.map +1 -0
- package/dist/{chunk-JCYX7HXB.js → chunk-MZPX4EPS.js} +4 -4
- package/dist/{chunk-JCYX7HXB.js.map → chunk-MZPX4EPS.js.map} +1 -1
- package/dist/{chunk-2I4H5BQU.js → chunk-NOLXT5T6.js} +4 -4
- package/dist/{chunk-2I4H5BQU.js.map → chunk-NOLXT5T6.js.map} +1 -1
- package/dist/{chunk-4EQ2XUD2.js → chunk-O7JTXTGP.js} +3 -3
- package/dist/{chunk-4EQ2XUD2.js.map → chunk-O7JTXTGP.js.map} +1 -1
- package/dist/{chunk-7TAKJT7L.js → chunk-OU6DYIG5.js} +3 -3
- package/dist/{chunk-7TAKJT7L.js.map → chunk-OU6DYIG5.js.map} +1 -1
- package/dist/{chunk-2NT6SBRT.js → chunk-PJU6QWMV.js} +3 -3
- package/dist/{chunk-2NT6SBRT.js.map → chunk-PJU6QWMV.js.map} +1 -1
- package/dist/{chunk-2AF6PXGC.js → chunk-Q7ZDNHHF.js} +5 -5
- package/dist/{chunk-2AF6PXGC.js.map → chunk-Q7ZDNHHF.js.map} +1 -1
- package/dist/{chunk-VPBV2BQV.js → chunk-QJOTD2GJ.js} +3 -3
- package/dist/{chunk-VPBV2BQV.js.map → chunk-QJOTD2GJ.js.map} +1 -1
- package/dist/{chunk-JFAYJBLJ.js → chunk-QPTKUUR4.js} +4 -4
- package/dist/{chunk-JFAYJBLJ.js.map → chunk-QPTKUUR4.js.map} +1 -1
- package/dist/{chunk-QNWO52KK.js → chunk-T6MGHOQP.js} +5 -5
- package/dist/{chunk-QNWO52KK.js.map → chunk-T6MGHOQP.js.map} +1 -1
- package/dist/{chunk-BSJBPL3O.js → chunk-TMVCPQMU.js} +4 -4
- package/dist/{chunk-BSJBPL3O.js.map → chunk-TMVCPQMU.js.map} +1 -1
- package/dist/{chunk-PPTHMKKL.js → chunk-UAPBMOOV.js} +3 -3
- package/dist/{chunk-PPTHMKKL.js.map → chunk-UAPBMOOV.js.map} +1 -1
- package/dist/{chunk-PCPERWKJ.js → chunk-ULPA74VA.js} +4 -4
- package/dist/{chunk-PCPERWKJ.js.map → chunk-ULPA74VA.js.map} +1 -1
- package/dist/{chunk-ZO56PBTD.js → chunk-WF7EFLZT.js} +4 -4
- package/dist/{chunk-ZO56PBTD.js.map → chunk-WF7EFLZT.js.map} +1 -1
- package/dist/{chunk-KBOBADKK.js → chunk-XISVCS5S.js} +5 -5
- package/dist/{chunk-KBOBADKK.js.map → chunk-XISVCS5S.js.map} +1 -1
- package/dist/{chunk-XV2KLAYG.js → chunk-XYR7EK3H.js} +5 -5
- package/dist/{chunk-XV2KLAYG.js.map → chunk-XYR7EK3H.js.map} +1 -1
- package/dist/{chunk-AODCG7WZ.js → chunk-YJ72YQ2X.js} +4 -4
- package/dist/{chunk-AODCG7WZ.js.map → chunk-YJ72YQ2X.js.map} +1 -1
- package/dist/{chunk-7JGHOV3X.js → chunk-YS7OE5XZ.js} +7 -7
- package/dist/{chunk-7JGHOV3X.js.map → chunk-YS7OE5XZ.js.map} +1 -1
- package/dist/components/cart/index.js +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/drawer/index.js +25 -25
- package/dist/components/home/index.js +30 -30
- package/dist/components/layout/index.js +7 -7
- package/dist/components/product/index.js +27 -27
- package/dist/components/store/index.js +27 -27
- package/dist/components/toast/index.js +5 -5
- package/dist/components/tracking/index.js +10 -10
- package/dist/custom-urls-FXDCQ2LQ.js +17 -0
- package/dist/{custom-urls-OV5L65QA.js.map → custom-urls-FXDCQ2LQ.js.map} +1 -1
- package/dist/dev/editor/index.js +3 -3
- package/dist/dev/index.js +3 -3
- package/dist/document-class-VID3422F.js +39 -0
- package/dist/{document-class-VJN4AHON.js.map → document-class-VID3422F.js.map} +1 -1
- package/dist/hooks/index.js +25 -25
- package/dist/hooks/useComments.js +4 -4
- package/dist/hooks/useGtm.js +25 -25
- package/dist/hooks/useMoney.js +25 -25
- package/dist/hooks/useProduct.js +4 -4
- package/dist/hooks/useStore.js +25 -25
- package/dist/hooks/useUser.js +6 -6
- package/dist/hooks/useWishlist.js +4 -4
- package/dist/index.js +25 -25
- package/dist/native-app/index.js +4 -4
- package/dist/navigation-DM6YWYWN.js +15 -0
- package/dist/{navigation-DZCTOUGV.js.map → navigation-DM6YWYWN.js.map} +1 -1
- package/dist/{navigation-LZ6YYSKB.js → navigation-MR2UTPVO.js} +8 -8
- package/dist/{navigation-LZ6YYSKB.js.map → navigation-MR2UTPVO.js.map} +1 -1
- package/dist/{not-found-LM3CWGPG.js → not-found-A7EB3S3G.js} +28 -28
- package/dist/{not-found-LM3CWGPG.js.map → not-found-A7EB3S3G.js.map} +1 -1
- package/dist/providers/index.js +25 -25
- package/dist/routes/account/orders.js +9 -9
- package/dist/routes/account.js +18 -18
- package/dist/routes/blog.js +13 -13
- package/dist/routes/brands.js +9 -9
- package/dist/routes/cart.js +34 -34
- package/dist/routes/home.js +31 -31
- package/dist/routes/index.js +13 -13
- package/dist/routes/loyalty.js +10 -10
- package/dist/routes/page.js +9 -9
- package/dist/routes/product-listing.js +35 -35
- package/dist/routes/product.js +34 -34
- package/dist/routes/seo-redirects.js +13 -13
- package/dist/routes/testimonials.js +5 -5
- package/dist/routes/thank-you.js +9 -9
- package/dist/skeleton.js +31 -31
- package/dist/{store-lookup-535R3FGU.js → store-lookup-IME3XIPP.js} +12 -12
- package/dist/{store-lookup-535R3FGU.js.map → store-lookup-IME3XIPP.js.map} +1 -1
- package/dist/tanstack.js +27 -27
- package/dist/twilight/context.d.ts +8 -0
- package/dist/twilight/context.d.ts.map +1 -1
- package/dist/utils/baseHead.js +3 -3
- package/dist/utils/index.js +7 -7
- package/dist/vite/index.js +5 -5
- package/package.json +1 -1
- package/dist/GoogleTag-IBUOI4BU.js +0 -15
- package/dist/Header-3W742LRD.js +0 -25
- package/dist/MaintenancePage-3YUQXVN2.js +0 -7
- package/dist/chunk-4R5DOFG3.js.map +0 -1
- package/dist/chunk-PLD6KSYE.js.map +0 -1
- package/dist/custom-urls-OV5L65QA.js +0 -17
- package/dist/document-class-VJN4AHON.js +0 -39
- package/dist/navigation-DZCTOUGV.js +0 -15
package/dist/skeleton.js
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
export { BlogSkeleton, BreadcrumbSkeleton, CartSkeleton, CustomerLayoutSkeleton, CustomerPageSkeleton, PageSkeleton, ProductCardSkeleton, ProductDetailSkeleton, ProductGridSkeleton, SkeletonPulse } from './chunk-N7CCSGZF.js';
|
|
2
|
-
export { HomeSkeleton } from './chunk-
|
|
2
|
+
export { HomeSkeleton } from './chunk-6MA73U4W.js';
|
|
3
3
|
import './chunk-IXHM24Z4.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
4
|
+
import './chunk-7GNITA3Q.js';
|
|
5
|
+
import './chunk-IBGAXEPC.js';
|
|
6
|
+
import './chunk-2D52MYZ7.js';
|
|
7
|
+
import './chunk-XYR7EK3H.js';
|
|
8
|
+
import './chunk-DAWZ264W.js';
|
|
9
9
|
import './chunk-Y32RHCOH.js';
|
|
10
|
-
import './chunk-
|
|
10
|
+
import './chunk-MVQZJX5I.js';
|
|
11
11
|
import './chunk-QT2D7JMW.js';
|
|
12
12
|
import './chunk-Q77J3D2W.js';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-MAQZ2E43.js';
|
|
14
14
|
import './chunk-YL6X3ZMG.js';
|
|
15
|
-
import './chunk-
|
|
15
|
+
import './chunk-KOR3BF6E.js';
|
|
16
16
|
import './chunk-OXMUPNMH.js';
|
|
17
|
-
import './chunk-
|
|
18
|
-
import './chunk-
|
|
17
|
+
import './chunk-7FV5TZOF.js';
|
|
18
|
+
import './chunk-UAPBMOOV.js';
|
|
19
19
|
import './chunk-VVZNW5CB.js';
|
|
20
|
-
import './chunk-
|
|
20
|
+
import './chunk-QJOTD2GJ.js';
|
|
21
21
|
import './chunk-GD26FI4J.js';
|
|
22
|
-
import './chunk-
|
|
23
|
-
import './chunk-
|
|
22
|
+
import './chunk-222C7M7Q.js';
|
|
23
|
+
import './chunk-BYA4ZF7E.js';
|
|
24
24
|
import './chunk-6T55LXJL.js';
|
|
25
|
-
import './chunk-
|
|
26
|
-
import './chunk-
|
|
25
|
+
import './chunk-F2WU2SMZ.js';
|
|
26
|
+
import './chunk-O7JTXTGP.js';
|
|
27
27
|
import './chunk-SDBR4X3K.js';
|
|
28
|
-
import './chunk-
|
|
28
|
+
import './chunk-DI2J3BL6.js';
|
|
29
29
|
import './chunk-OUW6WESU.js';
|
|
30
30
|
import './chunk-OAMIDZKW.js';
|
|
31
|
-
import './chunk-
|
|
31
|
+
import './chunk-64BWBCE7.js';
|
|
32
32
|
import './chunk-HI5V5X3S.js';
|
|
33
|
-
import './chunk-
|
|
34
|
-
import './chunk-
|
|
33
|
+
import './chunk-TMVCPQMU.js';
|
|
34
|
+
import './chunk-FN4CZTDF.js';
|
|
35
35
|
import './chunk-Z653O7MX.js';
|
|
36
36
|
import './chunk-ZCH7W7DZ.js';
|
|
37
|
-
import './chunk-
|
|
37
|
+
import './chunk-HHAR2YJN.js';
|
|
38
38
|
import './chunk-JWXJPJBO.js';
|
|
39
39
|
import './chunk-CW625T2E.js';
|
|
40
40
|
import './chunk-7V36I5GT.js';
|
|
41
41
|
import './chunk-6WI7R2BD.js';
|
|
42
|
-
import './chunk-
|
|
42
|
+
import './chunk-DVJGKIFQ.js';
|
|
43
43
|
import './chunk-OQIIJRAS.js';
|
|
44
|
-
import './chunk-
|
|
44
|
+
import './chunk-XISVCS5S.js';
|
|
45
45
|
import './chunk-V2ZDTY6H.js';
|
|
46
|
-
import './chunk-
|
|
46
|
+
import './chunk-BMLQBIGL.js';
|
|
47
47
|
import './chunk-5XDPAKF5.js';
|
|
48
48
|
import './chunk-GCPEMNSU.js';
|
|
49
|
-
import './chunk-
|
|
49
|
+
import './chunk-BNKUNYQS.js';
|
|
50
50
|
import './chunk-Z5M4YYWT.js';
|
|
51
51
|
import './chunk-TYNZ5B2B.js';
|
|
52
52
|
import './chunk-IVO6YRRK.js';
|
|
53
53
|
import './chunk-3GFD7WTJ.js';
|
|
54
|
-
import './chunk-
|
|
54
|
+
import './chunk-3CPVV6UZ.js';
|
|
55
55
|
import './chunk-EDCNCBSC.js';
|
|
56
56
|
import './chunk-SKLEJJ6M.js';
|
|
57
57
|
import './chunk-6BZ5TKEV.js';
|
|
58
58
|
import './chunk-FZKRSGLP.js';
|
|
59
59
|
import './chunk-KYMWEUN2.js';
|
|
60
60
|
import './chunk-YA6ABQB7.js';
|
|
61
|
-
import './chunk-
|
|
62
|
-
import './chunk-
|
|
63
|
-
import './chunk-
|
|
64
|
-
import './chunk-
|
|
65
|
-
import './chunk-
|
|
61
|
+
import './chunk-AXX7A2JJ.js';
|
|
62
|
+
import './chunk-BZ2QSBXM.js';
|
|
63
|
+
import './chunk-MZPX4EPS.js';
|
|
64
|
+
import './chunk-4OZIBANF.js';
|
|
65
|
+
import './chunk-MWUAHDQL.js';
|
|
66
66
|
import './chunk-T72DAX7R.js';
|
|
67
67
|
import './chunk-DF6FBKDN.js';
|
|
68
68
|
import './chunk-VYGA5AT5.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { category } from './chunk-
|
|
2
|
-
import { blog } from './chunk-
|
|
3
|
-
import { brand } from './chunk-
|
|
4
|
-
import { product } from './chunk-
|
|
1
|
+
import { category } from './chunk-FQX3XITL.js';
|
|
2
|
+
import { blog } from './chunk-YJ72YQ2X.js';
|
|
3
|
+
import { brand } from './chunk-4BTFGO7A.js';
|
|
4
|
+
import { product } from './chunk-2D52MYZ7.js';
|
|
5
5
|
import { DEV_LOOKUP_BUDGET_MS } from './chunk-OXMUPNMH.js';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-DI2J3BL6.js';
|
|
7
7
|
import './chunk-OUW6WESU.js';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-BNKUNYQS.js';
|
|
9
9
|
import './chunk-Z5M4YYWT.js';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
10
|
+
import './chunk-BZ2QSBXM.js';
|
|
11
|
+
import './chunk-MZPX4EPS.js';
|
|
12
|
+
import './chunk-4OZIBANF.js';
|
|
13
|
+
import './chunk-MWUAHDQL.js';
|
|
14
14
|
import './chunk-T72DAX7R.js';
|
|
15
15
|
import './chunk-DF6FBKDN.js';
|
|
16
16
|
import './chunk-DGUM43GV.js';
|
|
@@ -111,5 +111,5 @@ function lookupInStore(source, query) {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
export { lookupInStore };
|
|
114
|
-
//# sourceMappingURL=store-lookup-
|
|
115
|
-
//# sourceMappingURL=store-lookup-
|
|
114
|
+
//# sourceMappingURL=store-lookup-IME3XIPP.js.map
|
|
115
|
+
//# sourceMappingURL=store-lookup-IME3XIPP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/dev/store-lookup.ts"],"names":["categories"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,IAAM,QAAA,GAAW,EAAA;AAEjB,IAAM,SAAA,GAAY,EAAA;AAalB,eAAe,OAAA,CACb,WACA,IAAA,EACc;AACd,EAAA,MAAM,QAAA,GAAW,IAAA,CAAK,GAAA,EAAI,GAAI,oBAAA;AAC9B,EAAA,MAAM,QAAa,EAAC;AACpB,EAAA,IAAI,MAAA,GAAwB,IAAA;AAC5B,EAAA,KAAA,IAAS,IAAA,GAAO,CAAA,EAAG,IAAA,IAAQ,SAAA,EAAW,QAAQ,CAAA,EAAG;AAC/C,IAAA,MAAM,EAAE,KAAA,EAAO,IAAA,KAAS,MAAM,SAAA,CAAU,MAAM,MAAM,CAAA;AACpD,IAAA,KAAA,CAAM,IAAA,CAAK,GAAG,KAAA,CAAM,MAAA,CAAO,IAAI,CAAC,CAAA;AAChC,IAAA,IAAI,KAAA,CAAM,UAAU,QAAA,IAA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,EAAA,EAAI,MAAM,CAAA,CAAE,IAAA,EAAM,GAAA,EAAK,CAAA,CAAE,GAAA;AAAI,GAC7C,CAAE,CAAA;AACN;AAEA,IAAM,OAAA,GAAgF;AAAA,EACpF,QAAA;AAAA,EACA,UAAA;AAAA,EACA,MAAA;AAAA,EACA,aAAA,EAAe,YAAA;AAAA,EACf,eAAA,EAAiB;AACnB,CAAA;AAEO,SAAS,aAAA,CAAc,QAAyB,KAAA,EAAyC;AAC9F,EAAA,MAAM,MAAA,GAAS,QAAQ,MAAM,CAAA;AAC7B,EAAA,IAAI,CAAC,MAAA,EAAQ,OAAO,OAAA,CAAQ,MAAA,CAAO,IAAI,KAAA,CAAM,CAAA,cAAA,EAAiB,MAAM,CAAA,CAAE,CAAC,CAAA;AACvE,EAAA,OAAO,MAAA,CAAO,KAAA,CAAM,IAAA,EAAM,CAAA;AAC5B","file":"store-lookup-IME3XIPP.js","sourcesContent":["/**\n * Runs in the editor's frame (the storefront), which has the engine's API\n * client set up for the dev store: answers the editor's pickers with the real\n * store's products, categories, brands and blog. Loaded with `import()` on the\n * first lookup, so a storefront never carries it.\n *\n * Each item's `data` is what a block receives for it, in the API's shape: a\n * product block reads only the ids and fetches the rest, while categories and\n * brands are drawn from what is saved.\n */\n\nimport { product } from '../api/product';\nimport { category } from '../api/category';\nimport { brand } from '../api/brands';\nimport { blog } from '../api/blog';\nimport type { Category } from '../types';\nimport { DEV_LOOKUP_BUDGET_MS, type DevLookupItem, type DevLookupSource } from './schema-types';\n\n/** Enough to choose from; a search narrows it further. */\nconst PER_PAGE = 20;\n/** How far a paged list is searched before giving up, so a big store can't stall the picker. */\nconst MAX_PAGES = 10;\n\ninterface Page<T> {\n items: T[];\n next: string | null;\n}\n\n/**\n * The matching items of a paged list, read page after page until there are\n * enough, the pages run out, or the time budget is spent: a brand or article on\n * page three is still found, and what was found so far always reaches the\n * editor before it stops waiting (`DEV_LOOKUP_BUDGET_MS` < its timeout).\n */\nasync function collect<T>(\n fetchPage: (page: number, cursor: string | null) => Promise<Page<T>>,\n keep: (item: T) => boolean\n): Promise<T[]> {\n const deadline = Date.now() + DEV_LOOKUP_BUDGET_MS;\n const found: T[] = [];\n let cursor: string | null = null;\n for (let page = 1; page <= MAX_PAGES; page += 1) {\n const { items, next } = await fetchPage(page, cursor);\n found.push(...items.filter(keep));\n if (found.length >= PER_PAGE || !next || Date.now() >= deadline) break;\n cursor = next;\n }\n return found.slice(0, PER_PAGE);\n}\n\nfunction matches(name: string, query: string): boolean {\n return !query || name.toLowerCase().includes(query.toLowerCase());\n}\n\n/** Categories with their subcategories, flattened, parents first. */\nfunction flatten(categories: Category[]): Category[] {\n return categories.flatMap((c) => [c, ...flatten(c.sub_categories ?? [])]);\n}\n\nasync function products(query: string): Promise<DevLookupItem[]> {\n const { items } = await product.list({\n source: query ? 'search' : 'latest',\n ...(query ? { keyword: query } : {}),\n perPage: PER_PAGE,\n });\n // List responses send the id as a numeric string; the block reads a number. Use it for both.\n return items.map((p) => ({\n id: Number(p.id),\n name: p.name,\n image: p.image?.url,\n url: p.url,\n data: { id: Number(p.id), name: p.name, url: p.url, image: p.image?.url ?? null },\n }));\n}\n\nasync function categories(query: string): Promise<DevLookupItem[]> {\n return flatten(await category.list())\n .filter((c) => matches(c.name, query))\n .slice(0, PER_PAGE)\n .map((c) => ({\n id: c.id,\n name: c.name,\n image: c.image ?? undefined,\n url: c.url,\n data: { id: c.id, name: c.name, url: c.url, image: c.image ?? null, icon: c.icon ?? null },\n }));\n}\n\nasync function brands(query: string): Promise<DevLookupItem[]> {\n const found = await collect(\n (page) => brand.list(page),\n (b) => matches(b.name, query)\n );\n return found.map((b) => ({\n id: b.id,\n name: b.name,\n image: b.logo,\n url: b.url,\n data: { id: b.id, name: b.name, url: b.url, logo: b.logo, banner: b.banner ?? null },\n }));\n}\n\nasync function blogArticles(query: string): Promise<DevLookupItem[]> {\n const found = await collect(\n async (_page, cursor) => {\n const { data, cursor: pages } = await blog.articles.list(cursor ? { cursor } : undefined);\n return { items: data, next: pages?.next ?? null };\n },\n (a) => matches(a.name, query)\n );\n return found.map((a) => ({\n id: a.id,\n name: a.name,\n image: a.image,\n url: a.url,\n data: { id: a.id, name: a.name, url: a.url },\n }));\n}\n\nasync function blogCategories(query: string): Promise<DevLookupItem[]> {\n const { categories: list } = await blog.get();\n return list\n .filter((c) => matches(c.name, query))\n .slice(0, PER_PAGE)\n .map((c) => ({\n id: c.id,\n name: c.name,\n url: c.url,\n data: { id: c.id, name: c.name, url: c.url },\n }));\n}\n\nconst LOOKUPS: Record<DevLookupSource, (query: string) => Promise<DevLookupItem[]>> = {\n products,\n categories,\n brands,\n blog_articles: blogArticles,\n blog_categories: blogCategories,\n};\n\nexport function lookupInStore(source: DevLookupSource, query: string): Promise<DevLookupItem[]> {\n const lookup = LOOKUPS[source];\n if (!lookup) return Promise.reject(new Error(`no lookup for ${source}`));\n return lookup(query.trim());\n}\n"]}
|
package/dist/tanstack.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
export { tanstackDocumentAdapter as attrs, createRouter, createTwilightRootRoute, useTanstackDocumentAttrs as useAttrs } from './chunk-
|
|
1
|
+
export { tanstackDocumentAdapter as attrs, createRouter, createTwilightRootRoute, useTanstackDocumentAttrs as useAttrs } from './chunk-F37RZ7WN.js';
|
|
2
2
|
import './chunk-Z4Y55HWX.js';
|
|
3
|
-
import { requestHostOf } from './chunk-
|
|
4
|
-
export { TanStackLinkAdapter, TanStackNavigationProvider, createTanStackLinkAdapter } from './chunk-
|
|
5
|
-
export { tanstackHeadAdapter as head, withHead } from './chunk-
|
|
3
|
+
import { requestHostOf } from './chunk-YS7OE5XZ.js';
|
|
4
|
+
export { TanStackLinkAdapter, TanStackNavigationProvider, createTanStackLinkAdapter } from './chunk-YS7OE5XZ.js';
|
|
5
|
+
export { tanstackHeadAdapter as head, withHead } from './chunk-DPB47XO7.js';
|
|
6
6
|
import { CRITICAL_STYLE_HREF } from './chunk-4FJGZQD3.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
7
|
+
import './chunk-ULPA74VA.js';
|
|
8
|
+
import './chunk-T6MGHOQP.js';
|
|
9
|
+
import './chunk-5S7Q5Y7J.js';
|
|
10
|
+
import './chunk-KD6JJJFI.js';
|
|
11
11
|
import './chunk-NV4PF3O3.js';
|
|
12
|
-
import { readNativeAppHeaders, store } from './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import { rootHead } from './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
12
|
+
import { readNativeAppHeaders, store } from './chunk-7LJSOOVX.js';
|
|
13
|
+
import './chunk-2D52MYZ7.js';
|
|
14
|
+
import { rootHead } from './chunk-7FV5TZOF.js';
|
|
15
|
+
import './chunk-UAPBMOOV.js';
|
|
16
|
+
import './chunk-QJOTD2GJ.js';
|
|
17
17
|
import './chunk-GD26FI4J.js';
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
21
|
-
import { maintenanceEvidence, MAINTENANCE_EVIDENCE_HEADER, maintenanceEvidenceHeader } from './chunk-
|
|
18
|
+
import './chunk-222C7M7Q.js';
|
|
19
|
+
import './chunk-BYA4ZF7E.js';
|
|
20
|
+
import './chunk-F2WU2SMZ.js';
|
|
21
|
+
import { maintenanceEvidence, MAINTENANCE_EVIDENCE_HEADER, maintenanceEvidenceHeader } from './chunk-O7JTXTGP.js';
|
|
22
22
|
import './chunk-SDBR4X3K.js';
|
|
23
|
-
import './chunk-
|
|
23
|
+
import './chunk-DI2J3BL6.js';
|
|
24
24
|
import './chunk-OUW6WESU.js';
|
|
25
|
-
import './chunk-
|
|
25
|
+
import './chunk-FN4CZTDF.js';
|
|
26
26
|
import './chunk-JWXJPJBO.js';
|
|
27
27
|
export { mergeDocumentDescriptors as mergeAttrs } from './chunk-CW625T2E.js';
|
|
28
|
-
import './chunk-
|
|
29
|
-
import { resolveRequestApiBase, API_BASE_HEADER } from './chunk-
|
|
28
|
+
import './chunk-BMLQBIGL.js';
|
|
29
|
+
import { resolveRequestApiBase, API_BASE_HEADER } from './chunk-BNKUNYQS.js';
|
|
30
30
|
import './chunk-Z5M4YYWT.js';
|
|
31
31
|
import './chunk-TYNZ5B2B.js';
|
|
32
|
-
import './chunk-
|
|
32
|
+
import './chunk-3CPVV6UZ.js';
|
|
33
33
|
import './chunk-EDCNCBSC.js';
|
|
34
|
-
import './chunk-
|
|
35
|
-
import './chunk-
|
|
36
|
-
import { AUTH_TOKEN_COOKIE_NAME, extractTokenFromCookies, resolveRequestScope, resolveAddressedStore, STORE_BASE_HEADER, resolveRequestVersionId, resolveRequestDraftId, legacyLocaleRedirectHref, hostIdentifiesStore, resolveStoreIdentifier } from './chunk-
|
|
37
|
-
import { runWithTwilightContext, getRequestStore, getTwilightContext } from './chunk-
|
|
38
|
-
export { getTwilightContext, runWithTwilightContext, updateTwilightContext } from './chunk-
|
|
34
|
+
import './chunk-BZ2QSBXM.js';
|
|
35
|
+
import './chunk-MZPX4EPS.js';
|
|
36
|
+
import { AUTH_TOKEN_COOKIE_NAME, extractTokenFromCookies, resolveRequestScope, resolveAddressedStore, STORE_BASE_HEADER, resolveRequestVersionId, resolveRequestDraftId, legacyLocaleRedirectHref, hostIdentifiesStore, resolveStoreIdentifier } from './chunk-4OZIBANF.js';
|
|
37
|
+
import { runWithTwilightContext, getRequestStore, getTwilightContext } from './chunk-MWUAHDQL.js';
|
|
38
|
+
export { getTwilightContext, runWithTwilightContext, updateTwilightContext } from './chunk-MWUAHDQL.js';
|
|
39
39
|
import './chunk-T72DAX7R.js';
|
|
40
40
|
import './chunk-DF6FBKDN.js';
|
|
41
41
|
import './chunk-VYGA5AT5.js';
|
|
@@ -123,6 +123,14 @@ export interface TwilightContext {
|
|
|
123
123
|
export declare function runWithTwilightContext<T>(partial: Partial<TwilightContext>, fn: () => T): T;
|
|
124
124
|
export declare function subscribeTwilight(listener: () => void): () => void;
|
|
125
125
|
export declare function updateTwilightContext(partial: Partial<TwilightContext>): void;
|
|
126
|
+
/**
|
|
127
|
+
* Signs the rest of this server render out: the API answered its token as signed out
|
|
128
|
+
* everywhere. The root route writes the request's token back after the settings load,
|
|
129
|
+
* so the mark outlives that write. Never called in the browser, where the SDK signs out.
|
|
130
|
+
*/
|
|
131
|
+
export declare function revokeAuthToken(): void;
|
|
132
|
+
/** Whether {@link revokeAuthToken} ran for this request. False outside a request. */
|
|
133
|
+
export declare function isAuthTokenRevoked(): boolean;
|
|
126
134
|
/**
|
|
127
135
|
* Whether store settings are available, without throwing.
|
|
128
136
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/twilight/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAMpD,MAAM,WAAW,gBAAgB,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,C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AAO,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AA0LD,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAS3F;AAMD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAKlE;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI,CAM7E;AAED;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAItC;AAED,qFAAqF;AACrF,wBAAgB,kBAAkB,IAAI,OAAO,CAM5C;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAM7C;AAED,0DAA0D;AAC1D,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,sBAAsB,EAAE,OAAO,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,IAAI,iBAAiB,CAuBnD;AAED,wBAAgB,kBAAkB,IAAI,eAAe,CAuFpD;AAED,wCAAwC;AACxC,wBAAgB,eAAe,IAAI,IAAI,CAEtC"}
|
package/dist/utils/baseHead.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { buildBaseHead, buildHreflangAlternates, localeToOgLocale, slugOfPageUrl, slugPageCanonical, storePageUrl } from '../chunk-
|
|
1
|
+
export { buildBaseHead, buildHreflangAlternates, localeToOgLocale, slugOfPageUrl, slugPageCanonical, storePageUrl } from '../chunk-BYA4ZF7E.js';
|
|
2
2
|
import '../chunk-SDBR4X3K.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-4OZIBANF.js';
|
|
4
|
+
import '../chunk-MWUAHDQL.js';
|
|
5
5
|
import '../chunk-T72DAX7R.js';
|
|
6
6
|
import '../chunk-DGUM43GV.js';
|
|
7
7
|
//# sourceMappingURL=baseHead.js.map
|
package/dist/utils/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export { formatSallaPlural } from '../chunk-BT6HEEAP.js';
|
|
2
2
|
export { stripUnsafeHtml } from '../chunk-RUHSV4Z6.js';
|
|
3
|
-
export { dispatchRouteChanged } from '../chunk-
|
|
3
|
+
export { dispatchRouteChanged } from '../chunk-5S7Q5Y7J.js';
|
|
4
4
|
export { sortOptions } from '../chunk-3LZJXKVO.js';
|
|
5
5
|
export { color } from '../chunk-VVZNW5CB.js';
|
|
6
|
-
export { applyAppScopeMocks, registerThemeHookSlots } from '../chunk-
|
|
6
|
+
export { applyAppScopeMocks, registerThemeHookSlots } from '../chunk-QJOTD2GJ.js';
|
|
7
7
|
export { mergeHead, resolveHead, setHeadAdapter } from '../chunk-GD26FI4J.js';
|
|
8
|
-
export { buildBaseHead, buildHreflangAlternates, localeToOgLocale } from '../chunk-
|
|
8
|
+
export { buildBaseHead, buildHreflangAlternates, localeToOgLocale } from '../chunk-BYA4ZF7E.js';
|
|
9
9
|
import '../chunk-SDBR4X3K.js';
|
|
10
10
|
export { asset, cdn, isPlaceholder } from '../chunk-ZCH7W7DZ.js';
|
|
11
11
|
export { mergeDocumentDescriptors, mergeElementAttrs, normalizeClasses, syncAttrsToElement, toReactProps } from '../chunk-CW625T2E.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-BNKUNYQS.js';
|
|
13
13
|
import '../chunk-Z5M4YYWT.js';
|
|
14
|
-
export { getSallaSDK, getStoreIdentifier, onSallaEvent, whenSallaLoaded, whenSallaReady } from '../chunk-
|
|
15
|
-
export { AUTH_TOKEN_COOKIE_NAME, clearAuthTokenCookie, extractTokenFromCookies } from '../chunk-
|
|
16
|
-
import '../chunk-
|
|
14
|
+
export { getSallaSDK, getStoreIdentifier, onSallaEvent, whenSallaLoaded, whenSallaReady } from '../chunk-MZPX4EPS.js';
|
|
15
|
+
export { AUTH_TOKEN_COOKIE_NAME, clearAuthTokenCookie, extractTokenFromCookies } from '../chunk-4OZIBANF.js';
|
|
16
|
+
import '../chunk-MWUAHDQL.js';
|
|
17
17
|
import '../chunk-T72DAX7R.js';
|
|
18
18
|
import '../chunk-DGUM43GV.js';
|
|
19
19
|
|
package/dist/vite/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { validateTwilightManifest } from '../chunk-X5NK4TZH.js';
|
|
2
2
|
export { REACT_THEME_TYPE, describeThemeTypeIssue, getThemeType, isReactThemeManifest, validateTwilightManifest } from '../chunk-X5NK4TZH.js';
|
|
3
|
-
import { tanstackHeadAdapter } from '../chunk-
|
|
3
|
+
import { tanstackHeadAdapter } from '../chunk-DPB47XO7.js';
|
|
4
4
|
import { nextjsHeadAdapter } from '../chunk-HOSHJBPS.js';
|
|
5
5
|
import { CATEGORY_SLUG_PATH, PRODUCT_SLUG_PATH } from '../chunk-NV4PF3O3.js';
|
|
6
6
|
import { EMPTY_DEV_SCHEMA, DEV_PREVIEW_GLOBAL, DEV_PREVIEW_ENDPOINT, normalizePreviewState, DEV_PREVIEW_EVENT, DEV_EDITOR_PATH, DEV_PREVIEW_IMAGE_ENDPOINT, DEV_PREVIEW_IMAGE_MAX_BYTES } from '../chunk-OXMUPNMH.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-UAPBMOOV.js';
|
|
8
8
|
import { setHeadAdapter } from '../chunk-GD26FI4J.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-BYA4ZF7E.js';
|
|
10
10
|
import '../chunk-SDBR4X3K.js';
|
|
11
11
|
import { RouteId } from '../chunk-OUW6WESU.js';
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-4OZIBANF.js';
|
|
13
|
+
import '../chunk-MWUAHDQL.js';
|
|
14
14
|
import '../chunk-T72DAX7R.js';
|
|
15
15
|
import '../chunk-DGUM43GV.js';
|
|
16
16
|
import { readFile, readdir, writeFile, mkdir } from 'fs/promises';
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export { GTM_LOAD_DELAY_MS, GoogleTagBody } from './chunk-JFAYJBLJ.js';
|
|
2
|
-
import './chunk-7XSTKJK7.js';
|
|
3
|
-
import './chunk-SF46OQ4Z.js';
|
|
4
|
-
import './chunk-OUW6WESU.js';
|
|
5
|
-
import './chunk-THFF2FSI.js';
|
|
6
|
-
import './chunk-4MKA22LE.js';
|
|
7
|
-
import './chunk-Z5M4YYWT.js';
|
|
8
|
-
import './chunk-H73VXFYO.js';
|
|
9
|
-
import './chunk-JCYX7HXB.js';
|
|
10
|
-
import './chunk-VLL4GO7G.js';
|
|
11
|
-
import './chunk-PLD6KSYE.js';
|
|
12
|
-
import './chunk-T72DAX7R.js';
|
|
13
|
-
import './chunk-DGUM43GV.js';
|
|
14
|
-
//# sourceMappingURL=GoogleTag-IBUOI4BU.js.map
|
|
15
|
-
//# sourceMappingURL=GoogleTag-IBUOI4BU.js.map
|
package/dist/Header-3W742LRD.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export { Header } from './chunk-AWANNFME.js';
|
|
2
|
-
import './chunk-VZ5EMKBD.js';
|
|
3
|
-
import './chunk-OUW6WESU.js';
|
|
4
|
-
import './chunk-KBOBADKK.js';
|
|
5
|
-
import './chunk-VV5MI7CL.js';
|
|
6
|
-
import './chunk-5XDPAKF5.js';
|
|
7
|
-
import './chunk-GCPEMNSU.js';
|
|
8
|
-
import './chunk-4MKA22LE.js';
|
|
9
|
-
import './chunk-Z5M4YYWT.js';
|
|
10
|
-
import './chunk-TYNZ5B2B.js';
|
|
11
|
-
import './chunk-IVO6YRRK.js';
|
|
12
|
-
import './chunk-3GFD7WTJ.js';
|
|
13
|
-
import './chunk-TPHLHWCB.js';
|
|
14
|
-
import './chunk-EDCNCBSC.js';
|
|
15
|
-
import './chunk-SKLEJJ6M.js';
|
|
16
|
-
import './chunk-H73VXFYO.js';
|
|
17
|
-
import './chunk-JCYX7HXB.js';
|
|
18
|
-
import './chunk-VLL4GO7G.js';
|
|
19
|
-
import './chunk-PLD6KSYE.js';
|
|
20
|
-
import './chunk-T72DAX7R.js';
|
|
21
|
-
import './chunk-DF6FBKDN.js';
|
|
22
|
-
import './chunk-VYGA5AT5.js';
|
|
23
|
-
import './chunk-DGUM43GV.js';
|
|
24
|
-
//# sourceMappingURL=Header-3W742LRD.js.map
|
|
25
|
-
//# sourceMappingURL=Header-3W742LRD.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { MaintenancePage } from './chunk-7TAKJT7L.js';
|
|
2
|
-
import './chunk-TYNZ5B2B.js';
|
|
3
|
-
import './chunk-PLD6KSYE.js';
|
|
4
|
-
import './chunk-T72DAX7R.js';
|
|
5
|
-
import './chunk-DGUM43GV.js';
|
|
6
|
-
//# sourceMappingURL=MaintenancePage-3YUQXVN2.js.map
|
|
7
|
-
//# sourceMappingURL=MaintenancePage-3YUQXVN2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/language-cookie.ts","../src/utils/native-app-headers.ts","../src/api/store.ts"],"names":[],"mappings":";;;;;;;;;;AAaA,IAAM,sBAAA,GAAyB,kBAAA,EAAmB,CAC/C,MAAA,CAAO,MAAqB;AAC3B,EAAA,IAAI;AACF,IAAA,OAAO,gBAAA,CAAiB,QAAQ,CAAA,IAAK,IAAA;AAAA,EACvC,CAAA,CAAA,MAAQ;AACN,IAAA,OAAO,IAAA;AAAA,EACT;AACF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ookie, on the server and in the browser.\n *\n * The server reads it from the request the framework is handling and writes it to that\n * request's response. The server-only import is stripped from the client bundle by\n * `createIsomorphicFn`, as in `routes/root/beforeLoad.ts`. The browser uses `document.cookie`.\n * Either side outside a request (a prerender, a test) has nothing to read or write and says so\n * quietly.\n */\nimport { createIsomorphicFn } from '@tanstack/react-start';\nimport { getRequestHeader, getRequestUrl, setCookie } from '@tanstack/react-start/server';\nimport { LANGUAGE_COOKIE_MAX_AGE, LANGUAGE_COOKIE_NAME } from './cookies';\n\nconst readServerCookieHeader = createIsomorphicFn()\n .server((): string | null => {\n try {\n return getRequestHeader('cookie') ?? null;\n } catch {\n return null;\n }\n })\n .client((): string | null => null);\n\nconst writeServerLanguageCookie = createIsomorphicFn()\n .server((code: string): void => {\n try {\n setCookie(LANGUAGE_COOKIE_NAME, code, {\n path: '/',\n maxAge: LANGUAGE_COOKIE_MAX_AGE,\n sameSite: 'lax',\n });\n } catch {\n // Outside a request: there is no response to write to.\n }\n })\n .client((): void => {});\n\nconst readServerSearch = createIsomorphicFn()\n .server((): string => {\n try {\n return getRequestUrl().search;\n } catch {\n return '';\n }\n })\n .client((): string => '');\n\n/**\n * The query string of the page being rendered (`?lang=en`, or `''`): the request's on the\n * server, the address bar's in the browser, so both sides read the same one.\n */\nexport function readPageSearch(): string {\n return readServerSearch() || (typeof window !== 'undefined' ? window.location.search : '');\n}\n\n/** The `Cookie` header of the request being handled, or `document.cookie` in the browser. */\nexport function readCookieHeader(): string | null {\n return readServerCookieHeader() ?? (typeof document !== 'undefined' ? document.cookie : null);\n}\n\n/** Remembers `code` as the visitor's language for every store on this host. */\nexport function persistLanguageCookie(code: string): void {\n writeServerLanguageCookie(code);\n if (typeof document !== 'undefined') {\n document.cookie = `${LANGUAGE_COOKIE_NAME}=${encodeURIComponent(code)}; path=/; max-age=${LANGUAGE_COOKIE_MAX_AGE}; SameSite=Lax`;\n }\n}\n","/** The headers the Salla native app sends with every page it loads in its webview. */\nexport const NATIVE_APP_HEADERS = [\n 's-app-os',\n 's-app-version',\n 's-app-full-version',\n 's-app-os-version',\n];\n\n/**\n * The native app's own headers on this request, or null when it is not the app.\n *\n * On a Twig theme Laravel copies them into the settings' `jitsu.context.extra.headers`,\n * where the SDK reads the app's platform and version from (`salla.config.isMobileApp()`).\n * A React theme asks for its settings from the server, through the API, so the app's\n * headers never reach that call: the request is the only place they are.\n */\nexport function readNativeAppHeaders(headers: Headers): Record<string, string> | null {\n const os = headers.get('s-app-os')?.toLowerCase();\n if (os !== 'ios' && os !== 'android') return null;\n const found: Record<string, string> = {};\n for (const name of NATIVE_APP_HEADERS) {\n const value = headers.get(name);\n if (value) found[name] = value;\n }\n return found;\n}\n","import { queryOptions } from '@tanstack/react-query';\nimport { isHTTPError, isNetworkError, isTimeoutError } from 'ky';\nimport { api, getActiveScope, STORE_IDENTIFIER_HEADER } from './client';\nimport { devSettingsFetchedAt } from './dev-settings-cache';\nimport { SettingsError } from '../utils/errors';\nimport type { Store, Theme, Language, JitsuConfig, MaintenanceDetails } from '../types';\nimport { getTwilightContext } from '../twilight/context';\nimport { resolveStoreIdentifier } from '../utils/store-identity';\nimport { extractScopeFromUrl, parseStoreId } from '../utils/cookies';\nimport { readPageSearch } from '../utils/language-cookie';\nimport { requestedThemeVersionId } from '../utils/theme-version';\nimport { NATIVE_APP_HEADERS } from '../utils/native-app-headers';\nimport { isNotLaunchedNotice } from '../utils/maintenance';\n\nexport { resolveStoreIdentifier };\n\nconst DEFAULT_INCLUDE_ITEMS = [\n 'store',\n 'settings',\n 'theme',\n 'theme_settings',\n 'external_services',\n 'currencies',\n 'languages',\n 'payments',\n 'product_widgets',\n 'rating',\n 'ratings',\n 'user',\n];\n\n/** Twig's `salla.init({ user })` object; the endpoint ignores the token, so always the guest. */\nexport interface SettingsUser {\n type: 'guest' | 'user';\n id?: number | string | null;\n language_code?: string;\n currency_code?: string;\n country_code?: string;\n [key: string]: unknown;\n}\n\n/**\n * Raw API response for settings endpoint.\n * Languages come as object: { \"AR\": { code, name, ... }, \"EN\": {...} }\n */\ninterface SettingsApiResponse {\n store?: Store;\n theme?: Theme;\n languages?: Record<string, Language>;\n currencies?: Record<\n string,\n { code: string; name: string; symbol: string; amount: number; country_code: string }\n >;\n external_services?: Record<string, unknown>;\n headers?: Record<string, unknown>;\n login?: { url: string; turnstile_site_key: string };\n affiliate?: { utm_url: string; cta_enabled: boolean };\n debug?: boolean;\n trace_console?: boolean;\n policy_url?: string;\n user?: SettingsUser;\n jitsu?: JitsuConfig;\n maintenance?: boolean;\n maintenance_details?: MaintenanceDetails;\n}\n\n/**\n * Central settings context - single source of truth for all API data.\n * Contains everything from the settings endpoint response after processing.\n */\nexport interface StoreContext {\n store?: Store;\n theme?: Theme;\n /** Languages as array after conversion from API object format */\n languages?: Language[];\n currencies?: Record<\n string,\n { code: string; name: string; symbol: string; amount: number; country_code: string }\n >;\n external_services?: Record<string, unknown>;\n headers?: Record<string, unknown>;\n login?: { url: string; turnstile_site_key: string };\n affiliate?: { utm_url: string; cta_enabled: boolean };\n debug?: boolean;\n trace_console?: boolean; // todo:: remove it\n policy_url?: string;\n user?: SettingsUser;\n /** Where the SDK's analytics send events, and which ones; without it the SDK tracks nothing. */\n jitsu?: JitsuConfig;\n /**\n * The store is closed: by the merchant from the dashboard, by the platform, or\n * for the selected market only. The engine then renders the maintenance page\n * to everyone but the merchant; see `rootBeforeLoad`.\n */\n maintenance?: boolean;\n /** What the maintenance page says; sent beside `maintenance`. */\n maintenance_details?: MaintenanceDetails;\n /**\n * `false` while the store has not launched yet: `maintenance` is then `true` and the\n * engine's maintenance page says the store is launching soon. Absent otherwise. Not\n * from the API: read off `maintenance_details` by `store.settings`, since the\n * backend sends the merchant's \"finish launching\" notice there for every visitor,\n * which is not for a customer's eyes.\n */\n launched?: false;\n /**\n * The scope these settings were requested with; absent when none was. Not from\n * the API: stamped by `store.settings`, so `resolveThemeVersionId` can tell\n * whether the version they name still answers the scope that is active now.\n */\n requestedScopeId?: string;\n /** Which answer of the API these settings are; see {@link SettingsAnswer}. */\n answer?: SettingsAnswer;\n /**\n * When the dev server fetched these settings from the API (epoch ms). It reuses\n * them for a while (see `dev-settings-cache.ts`) and the theme editor says how old\n * they are. Only on a dev server render; absent everywhere else.\n */\n devFetchedAt?: number;\n}\n\n/**\n * Which answer of the settings API a set of settings came from, read off the\n * response rather than the body: the API's request id, the Store's trace, and\n * whether Cloudflare served it from its cache and how old it was. A decision the\n * settings drive for every visitor alike (the maintenance page) can then be\n * traced to the exact request the backend logged, or to a cached copy of it.\n */\nexport interface SettingsAnswer {\n requestId?: string;\n traceId?: string;\n cacheStatus?: string;\n age?: string;\n}\n\nconst ANSWER_HEADERS: Record<keyof SettingsAnswer, string> = {\n requestId: 's-request-id',\n traceId: 'x-trace-id',\n cacheStatus: 'cf-cache-status',\n age: 'age',\n};\n\nfunction settingsAnswerOf(headers: Headers | undefined): SettingsAnswer | undefined {\n if (!headers) return undefined;\n const answer: SettingsAnswer = {};\n for (const [field, name] of Object.entries(ANSWER_HEADERS) as [keyof SettingsAnswer, string][]) {\n const value = headers.get(name);\n if (value) answer[field] = value;\n }\n return Object.keys(answer).length ? answer : undefined;\n}\n\n/**\n * Converts languages object from API to array format.\n * API returns: { \"AR\": { code, name, ... }, \"EN\": { ... } }\n * We need: [{ code, name, ... }, { code, name, ... }]\n * todo:: return the languages as object from the APIs to avoid this\n */\nfunction languagesToArray(languages?: Record<string, Language>): Language[] | undefined {\n if (!languages) return undefined;\n // The SDK's localization modal reads `lang.iso_code` (not `code`) when a language is\n // selected — without it the switch navigates to `/undefined/...`.\n return Object.values(languages).map((lang) => ({ iso_code: lang.code, ...lang }));\n}\n\n/**\n * The settings' analytics context with the native app's headers in it, as Laravel\n * writes it for a Twig theme: the SDK reads the app's platform and version from there.\n * The API answers a server-side call with the engine's own headers, never the app's.\n */\nfunction withNativeAppHeaders(jitsu?: JitsuConfig): JitsuConfig | undefined {\n if (!jitsu || typeof window !== 'undefined') return jitsu;\n let appHeaders: Record<string, string> | null = null;\n try {\n appHeaders = getTwilightContext().nativeAppHeaders;\n } catch {\n return jitsu;\n }\n if (!appHeaders) return jitsu;\n const extra = jitsu.context?.extra;\n // The engine's own app headers go, so an app that sends no version doesn't get the engine's.\n const headers = { ...extra?.headers };\n for (const name of NATIVE_APP_HEADERS) delete headers[name];\n return {\n ...jitsu,\n context: {\n ...jitsu.context,\n extra: { ...extra, headers: { ...headers, ...appHeaders } },\n },\n };\n}\n\nconst SETTINGS_TIMEOUT_MS = 5000;\n\n/**\n * Whether the page's own address switches market (`?scope=`).\n *\n * Only then does the settings request name the scope in its query string. The API\n * reads `?scope=` as a switch and lets it override the market a market's own domain\n * is pinned to, which the `s-scope-id` header never does. Sent on every request, a\n * market remembered from another visit would win over the host the shopper is on: the\n * settings, and the SDK seeded from them, would answer for that market while every\n * call without the parameter (the cart, among them) answers for the host's, and a\n * guest's cart created in one is refused by the other (TD-17588).\n */\nfunction pageSwitchesScope(): boolean {\n return extractScopeFromUrl(`http://page.invalid/${readPageSearch()}`) !== null;\n}\n\nasync function requestSettings(identifier: string): Promise<StoreContext> {\n const includeParams = DEFAULT_INCLUDE_ITEMS.map((i) => `include[]=${i}`).join('&');\n const scope = getActiveScope();\n const params =\n scope != null && pageSwitchesScope() ? `${includeParams}&scope=${scope.id}` : includeParams;\n\n const request = api\n // Sent explicitly rather than left to the client's own resolution, so\n // the identifier this function checked is the identifier that travels.\n // They agree today; a caller passing one and being answered about\n // another is the failure this makes impossible rather than unlikely.\n .get(`store/settings?${params}`, {\n timeout: SETTINGS_TIMEOUT_MS,\n headers: { [STORE_IDENTIFIER_HEADER]: identifier },\n });\n const json = await request.json<{ data?: SettingsApiResponse }>();\n // The same response, already settled; only its headers are read.\n const headers = (await request)?.headers;\n const answer = settingsAnswerOf(headers);\n const devFetchedAt = devSettingsFetchedAt(headers);\n\n const data = json?.data;\n if (!data) {\n throw new SettingsError(\n `The Salla API answered the settings request for store \"${identifier}\" without settings.`,\n { reason: 'empty' }\n );\n }\n\n // Convert languages from object to array\n const languages = languagesToArray(data.languages);\n\n return {\n store: data.store,\n theme: data.theme,\n languages,\n currencies: data.currencies,\n external_services: data.external_services,\n headers: data.headers,\n login: data.login,\n affiliate: data.affiliate,\n policy_url: data.policy_url,\n user: data.user,\n jitsu: withNativeAppHeaders(data.jitsu),\n maintenance: data.maintenance,\n maintenance_details: data.maintenance_details,\n ...(data.maintenance === true &&\n isNotLaunchedNotice(data.maintenance_details) && { launched: false as const }),\n ...(scope && { requestedScopeId: scope.id }),\n ...(answer && { answer }),\n ...(devFetchedAt && { devFetchedAt }),\n };\n}\n\n/** The message the API put in an error body, `{ error: { message } }`, when it sent one. */\nfunction apiErrorMessage(data: unknown): string | undefined {\n const message = (data as { error?: { message?: unknown } } | undefined)?.error?.message;\n return typeof message === 'string' && message.length > 0 && message.length <= 200\n ? message\n : undefined;\n}\n\n/**\n * What core's `CurrentStoreMiddleware` answers, with a 422, when no store has the\n * username or domain it was given (or the store's status is `deleted`). The lookup is\n * `loadUseUsernameOrDomain`, the same one Twig's `checkUsername` turns into its 410.\n * The literal is not translated: it reads the same whatever language was asked for.\n */\nconst STORE_NOT_FOUND_MESSAGE = 'المتجر غير موجود';\n\n/**\n * Whether the API answered that no store has this identifier. A numeric identifier\n * is looked up with `findOrFail`, which Store's exception handler answers with a 410;\n * a username or domain gets {@link STORE_NOT_FOUND_MESSAGE}. A 410 for a username is\n * not read as one: nothing on that path answers it, and a store that does exist must\n * never be told it does not.\n */\nfunction isStoreNotFound(identifier: string, status: number, said: string | undefined): boolean {\n if (status === 410) return parseStoreId(identifier) !== null;\n return status === 422 && said === STORE_NOT_FOUND_MESSAGE;\n}\n\n/**\n * Names what went wrong, because the page, the server log and Sentry all carry\n * this message. Every failure used to read \"Make sure VITE_STORE_DOMAIN is set\",\n * a local-development variable no deployed theme has, so a slow API looked like\n * a misconfigured theme.\n */\nfunction describeSettingsFailure(identifier: string, error: unknown): SettingsError {\n if (error instanceof SettingsError) return error;\n const request = `the settings request for store \"${identifier}\"`;\n if (isTimeoutError(error)) {\n return new SettingsError(\n `The Salla API did not answer ${request} within ${SETTINGS_TIMEOUT_MS} ms.`,\n { reason: 'timeout' }\n );\n }\n if (isHTTPError(error)) {\n const { status } = error.response;\n const said = apiErrorMessage(error.data);\n return new SettingsError(\n `The Salla API answered ${request} with HTTP ${status}${said ? `: ${said}` : ''}.`,\n { reason: isStoreNotFound(identifier, status, said) ? 'not-found' : 'http', status }\n );\n }\n if (isNetworkError(error)) {\n return new SettingsError(`The Salla API could not be reached for ${request}.`, {\n reason: 'network',\n });\n }\n const detail = error instanceof Error ? `: ${error.message}` : '';\n return new SettingsError(`The settings request for store \"${identifier}\" failed${detail}.`);\n}\n\n/**\n * The settings, or a {@link SettingsError} that says why there are none. The\n * query throws it so the root route can say why the store did not load;\n * `store.settings` keeps answering `null` for its own callers.\n */\nasync function fetchSettings(storeIdentifier?: string): Promise<StoreContext> {\n const identifier = storeIdentifier ?? resolveStoreIdentifier();\n\n if (!identifier) {\n const error = new SettingsError(\n 'No store is named for this request: add `?storeId=` on the preview host, or set VITE_STORE_DOMAIN in local development.',\n { reason: 'no-store' }\n );\n console.warn('[store.settings]', error.message);\n throw error;\n }\n\n try {\n return await requestSettings(identifier);\n } catch (cause) {\n const error = describeSettingsFailure(identifier, cause);\n console.error('[store.settings]', error.message, ...(cause === error ? [] : [cause]));\n throw error;\n }\n}\n\nexport const store = {\n settings: async (storeIdentifier?: string): Promise<StoreContext | null> => {\n try {\n return await fetchSettings(storeIdentifier);\n } catch {\n // Already logged, with the reason.\n return null;\n }\n },\n\n queries: {\n settings: (storeIdentifier?: string) =>\n queryOptions<StoreContext | null>({\n queryKey: [\n 'store',\n 'settings',\n storeIdentifier,\n getTwilightContext().locale,\n getActiveScope(),\n // Two versions of one store's settings are two different answers, and\n // this is the query whose answer decides what every other call is\n // pinned to. `requestedThemeVersionId` rather than the resolved one:\n // the resolved value falls back to what these settings report, so it\n // is not knowable until after this query has run — the key would be\n // one thing on the server and another on the client, and the hydrated\n // page would refetch the settings it was just handed.\n requestedThemeVersionId(),\n ],\n // Throws rather than resolving `null`, so the failure keeps its reason.\n queryFn: () => fetchSettings(storeIdentifier),\n // A null never retried, and the root route waits on this: the router's\n // default `retry: 1` would sit through the timeout twice.\n retry: 0,\n }),\n },\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/api/translations-key.ts","../src/api/messages.ts","../src/utils/errors.ts","../src/providers/i18n-factory.ts","../src/twilight/context.ts"],"names":[],"mappings":";;;;;;AAwBO,SAAS,qBAAqB,MAAA,EAAkC;AACrE,EAAA,OAAO,CAAC,gBAAgB,MAAM,CAAA;AAChC;AAkBO,SAAS,yBAAA,CACd,SACA,MAAA,EAC0B;AAC1B,EAAA,OAAO,CAAC,cAAA,EAAgB,MAAA,CAAO,OAAO,GAAG,MAAM,CAAA;AACjD;;;ACrBO,SAAS,cAAc,KAAA,EAAmC;AAC/D,EAAA,OAAO,OAAO,UAAU,QAAA,IAAY,KAAA,KAAU,QAAQ,CAAC,KAAA,CAAM,QAAQ,KAAK,CAAA;AAC5E;AAgBO,SAAS,aAAA,CAAc,MAAgB,SAAA,EAA+B;AAC3E,EAAA,MAAM,MAAA,GAAmB,EAAE,GAAG,IAAA,EAAK;AAEnC,EAAA,KAAA,MAAW,CAAC,GAAA,EAAK,KAAK,KAAK,MAAA,CAAO,OAAA,CAAQ,SAAS,CAAA,EAAG;AACpD,IAAA,MAAM,QAAA,GAAW,OAAO,GAAG,CAAA;AAC3B,IAAA,MAAA,CAAO,GAAG,CAAA,GACR,aAAA,CAAc,QAAQ,CAAA,IAAK,aAAA,CAAc,KAAK,CAAA,GAAI,aAAA,CAAc,QAAA,EAAU,KAAK,CAAA,GAAI,KAAA;AAAA,EACvF;AAEA,EAAA,OAAO,MAAA;AACT;AAcA,SAAS,eAAA,CAAgB,aAA0B,MAAA,EAAsC;AACvF,EAAA,MAAM,OAAA,GAAU,YAAY,cAAA,CAAy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AA;AAAA,IACd,CAAA;AAAA,IACA,IAAI,MAAA,GAAS;AACX,MAAA,OAAO,IAAA,CAAK,MAAA;AAAA,IACd;AAAA,GACF;AACF","file":"chunk-PLD6KSYE.js","sourcesContent":["/**\n * @fileoverview The translations query key, on its own, importing nothing.\n *\n * Three places read the cached translations — `rootBeforeLoad`, the hydration\n * path in `tanstack/router.tsx`, and the lazy `i18n` accessor in\n * `twilight/context.ts` — and all three have to agree on the key or the\n * hydrated page misses the entry it was just handed and refetches. One\n * definition is the only way to keep that true.\n *\n * It lives here rather than in `api/translations.ts`, where it would naturally\n * sit, because **`twilight/context.ts` cannot afford that module's imports**.\n * `api/translations` pulls in `api/client`, which pulls in `ky`; `context.ts`\n * is imported directly by tests that mock `ky`, and adding that edge made six\n * of them stop being mocked and start issuing real requests to `api.salla.dev`\n * (`tests/routes/rootBeforeLoad.test.ts`, bisected to exactly this import). A\n * leaf module with no imports of its own cannot do that to anyone.\n */\n\n/**\n * @param locale is part of the key because each file on the CDN holds one\n * language. The global file this replaced carried every language and was\n * sliced after the cache, so a key without the locale was correct then and is\n * a wrong-language bug now: `/ar` → `/en` would reuse the Arabic entry.\n */\nexport function translationsQueryKey(locale: string): [string, string] {\n return ['translations', locale];\n}\n\n/**\n * The merchant's own wording for one store and one language.\n *\n * Separate from {@link translationsQueryKey} rather than folded into it,\n * because the two files have different lifetimes and different audiences: the\n * platform's copy is the same object for every store on the CDN, and this one\n * is a single merchant's overrides. Keeping them apart means a store with no\n * overrides never invalidates, refetches or dehydrates anything on its account.\n *\n * @param storeId is `settings.store.id` — the Optimus-encoded numeric id, which\n * is what names the object. It is safe in a key even though the locale-only key\n * deliberately avoids naming a store: that warning is about a store *resolved\n * from the request*, which differs between server and client. This one is read\n * out of the settings payload, so both sides compute it from the same\n * dehydrated data and agree.\n */\nexport function storeTranslationsQueryKey(\n storeId: string | number,\n locale: string\n): [string, string, string] {\n return ['translations', String(storeId), locale];\n}\n","/**\n * @fileoverview Composing one language's messages out of the query cache.\n *\n * **There are three places that build an i18n instance**, and they have to\n * agree on more than the key: `rootBeforeLoad`, the hydration path in\n * `tanstack/router.tsx`, and the lazy `i18n` accessor in `twilight/context.ts`.\n * When the platform's copy was the only source, agreeing on\n * `translationsQueryKey` was enough. It is not any more — a merchant's own\n * wording is a second cache entry, and a reader that knows about one and not\n * the other renders different text from the page beside it.\n *\n * That is exactly what shipped in #366: the server rendered the merchant's\n * words and hydration replaced them with the platform's, because only\n * `rootBeforeLoad` had been taught to merge. Greptile caught it. This module is\n * the single answer to \"what are the messages for this locale\", so the next\n * source cannot be added to one reader and forgotten in two.\n *\n * It lives beside `translations-key.ts` and imports nothing at runtime for the\n * same reason that file does: `twilight/context.ts` cannot afford\n * `api/translations`, which pulls in `api/client` and therefore `ky`, and tests\n * that mock `ky` stop being mocked the moment that edge exists.\n */\nimport type { QueryClient } from '@tanstack/react-query';\nimport { translationsQueryKey } from './translations-key';\nimport type { TranslationMessages } from '../providers/I18nProvider';\n\nexport type Messages = Record<string, unknown>;\n\nexport function isPlainObject(value: unknown): value is Messages {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\n/**\n * `overrides` laid over `base`, one leaf at a time.\n *\n * Recursive rather than a spread, because both files are nested by group\n * (`common.errors.500`) and a top-level spread would make a merchant who\n * overrode one string inside `common` lose every other string in it. The\n * merchant's value wins at the leaf, and a group they never touched is left\n * exactly as the platform sent it.\n *\n * A type conflict — one side an object where the other is a string — resolves\n * to the merchant's value. It is the more specific of the two and there is no\n * sensible way to merge a string into a group; the alternative, keeping the\n * platform's, would mean a merchant's edit silently doing nothing.\n */\nexport function mergeMessages(base: Messages, overrides: Messages): Messages {\n const merged: Messages = { ...base };\n\n for (const [key, value] of Object.entries(overrides)) {\n const existing = merged[key];\n merged[key] =\n isPlainObject(existing) && isPlainObject(value) ? mergeMessages(existing, value) : value;\n }\n\n return merged;\n}\n\n/**\n * This store's overrides for `locale`, if any were fetched into the cache.\n *\n * Found by **shape** rather than by asking the settings for a store id, and\n * that is deliberate: the two readers that were missing the merge have a\n * `queryClient` and a locale between them and nothing else, and reaching for\n * `api/store` from `twilight/context.ts` would drag `ky` in through the back\n * door. One document serves one store — a request naming a different one is\n * redirected with `reloadDocument` — so at most one such entry per locale\n * exists, and matching `['translations', <anything>, <locale>]` cannot pick up\n * somebody else's.\n */\nfunction cachedOverrides(queryClient: QueryClient, locale: string): Messages | undefined {\n const entries = queryClient.getQueriesData<Messages>({ queryKey: ['translations'] });\n\n for (const [key, data] of entries) {\n if (key.length === 3 && key[2] === locale && isPlainObject(data)) {\n return data;\n }\n }\n\n return undefined;\n}\n\n/**\n * The messages for `locale`: the platform's copy with this merchant's over it.\n *\n * Reads only — whoever wants the merchant's file in the cache has to have put\n * it there, which `rootBeforeLoad` does and only when the settings say there is\n * one. A reader that runs without it simply gets the platform's copy, which is\n * the same thing it got before any of this existed.\n */\nexport function messagesForLocale(\n queryClient: QueryClient | undefined,\n locale: string\n): TranslationMessages | undefined {\n const common = queryClient?.getQueryData<TranslationMessages>(translationsQueryKey(locale));\n const overrides = queryClient ? cachedOverrides(queryClient, locale) : undefined;\n\n return composeMessages(common, overrides, locale);\n}\n\n/**\n * The same composition from values rather than from the cache.\n *\n * `rootBeforeLoad` has both in hand already — it just awaited them — so it\n * composes directly instead of reading back what it put in.\n */\nexport function composeMessages(\n common: TranslationMessages | null | undefined,\n overrides: Messages | null | undefined,\n locale: string\n): TranslationMessages | undefined {\n if (!overrides || Object.keys(overrides).length === 0) return common ?? undefined;\n\n const base = common?.[`${locale}.trans`];\n\n return {\n [`${locale}.trans`]: mergeMessages(isPlainObject(base) ? base : {}, overrides) as Record<\n string,\n string\n >,\n };\n}\n","/**\n * Why a store's settings did not load:\n * - `no-store`: nothing named a store for this request;\n * - `timeout`: the Salla API did not answer in time;\n * - `not-found`: it answered that no store has that identifier;\n * - `http`: it answered with another error status;\n * - `network`: no answer arrived at all;\n * - `empty`: it answered without settings.\n */\nexport type SettingsErrorReason =\n 'no-store' | 'timeout' | 'not-found' | 'http' | 'network' | 'empty';\n\nexport interface SettingsErrorDetails {\n reason?: SettingsErrorReason;\n /** The API's status, when `reason` is `'http'` or `'not-found'`. */\n status?: number;\n}\n\nexport class SettingsError extends Error {\n /** Absent when nothing said why, e.g. `getTwilightContext().settings` read before they loaded. */\n readonly reason?: SettingsErrorReason;\n readonly status?: number;\n\n constructor(message?: string, details?: SettingsErrorDetails) {\n super(message ?? 'Store settings could not be loaded.');\n this.name = 'SettingsError';\n this.reason = details?.reason;\n this.status = details?.status;\n }\n}\n","import { createInstance, type i18n as I18nInstance } from 'i18next';\nimport { initReactI18next } from 'react-i18next';\n\nexport type TranslationMessages = Record<string, Record<string, string>>;\n\n/**\n * Creates a new i18next instance for the given locale.\n *\n * @param locale - Active locale code, e.g. `'ar'`\n * @param translations - App translations from the Salla API (store-specific)\n * @param themeTranslations - Bundled theme translations (static defaults)\n */\nexport function createI18nInstance(\n locale: string,\n translations?: TranslationMessages,\n themeTranslations?: TranslationMessages\n): I18nInstance {\n const instance = createInstance();\n const transKey = `${locale}.trans`;\n\n instance.use(initReactI18next).init({\n lng: locale,\n fallbackLng: locale,\n ns: ['app', 'theme'],\n defaultNS: 'app',\n fallbackNS: 'theme',\n resources: {\n [locale]: {\n app: translations?.[transKey] ?? {},\n theme: themeTranslations?.[transKey] ?? {},\n },\n },\n interpolation: { escapeValue: false },\n react: { useSuspense: false },\n keySeparator: '.',\n nsSeparator: false,\n });\n\n return instance;\n}\n\n/**\n * Creates i18n instance for testing\n * @param locale - Locale code (default: 'ar')\n * @param translations - Optional translations\n */\nexport function createTestI18n(locale = 'ar', translations?: TranslationMessages): I18nInstance {\n return createI18nInstance(locale, translations);\n}\n","import type { QueryClient } from '@tanstack/react-query';\nimport type { i18n } from 'i18next';\nimport type { StoreContext } from '../api/store';\nimport type { AppSnippet, AppSettings } from '../api/apps';\nimport { FALLBACK_LOCALE, getLanguageInfo } from '../providers/locale-constants';\nimport { createI18nInstance } from '../providers/i18n-factory';\nimport { messagesForLocale } from '../api/messages';\nimport { SettingsError } from '../utils/errors';\nimport type { ActiveScope } from '../utils/cookies';\n\n// ============================================================================\n// Types\n// ============================================================================\n\nexport interface TwilightLocation<TSearch = Record<string, unknown>> {\n href: string;\n pathname: string;\n search: TSearch;\n searchStr: string;\n state: Record<string, unknown>;\n hash: string;\n}\n\nexport interface PageContext {\n slug: string;\n id?: string | number;\n title: string;\n url?: string;\n parent?: { id: string | number; name: string; url: string } | null;\n breadcrumbs?: { name: string; url: string }[];\n}\n\nexport interface TwilightContext {\n queryClient: QueryClient;\n settings: StoreContext;\n locale: string;\n routeId: string;\n location: TwilightLocation;\n authToken: string | null;\n /**\n * The selected market and, once bullet delivery confirmed one, its branch\n * allocation — the full object the SDK sends as `s-scope-*` headers. Seeded from\n * the `scope` cookie on the server; see {@link ActiveScope}.\n */\n scope: ActiveScope | null;\n /** `scope.id`, kept for callers that only need the market. */\n scopeId: string | null;\n /**\n * Which store this request is for, when something other than the hostname says\n * so — the `?storeId=` a preview was opened with, or the cookie remembering it.\n *\n * Null on a live storefront, where the hostname is the answer and there is\n * nothing to carry. See {@link resolveRequestStoreId}.\n */\n storeId: string | null;\n /**\n * Which store the first segment of this request's path named, on a host where\n * the store is the root of every URL: `mtgr-alaatr-2` for\n * `https://preview.salla.design/mtgr-alaatr-2/cart`.\n *\n * Null whenever something else named the store, and on every merchant domain.\n * See {@link resolveRequestStoreBase}.\n */\n storeBase: string | null;\n /**\n * Where {@link storeBase} sits in this request's paths: behind the locale on a\n * Salla shared host (`/ar/dev-x/cart`, named by the dispatcher), in front of it\n * everywhere else. See {@link resolveAddressedStore}.\n */\n storeBaseFollowsLocale: boolean;\n /**\n * Which version of the theme's settings this request asked for — the\n * `?versionId=` an editor preview or a local dev session was opened with, or\n * the cookie remembering it.\n *\n * Null on an ordinary storefront visit, which is the common case: nothing\n * named a version, so the store's live one is what the API answers with. See\n * {@link resolveRequestVersionId}.\n */\n versionId: string | null;\n /**\n * Which draft theme this request previews — the `?draftId=` the theme editor\n * opened a React draft with, or the cookie remembering it.\n *\n * Null everywhere but a draft's preview: an installed theme's preview names a\n * version and no draft. See {@link resolveRequestDraftId}.\n */\n draftId: string | null;\n /**\n * The host this request arrived on, captured server-side.\n *\n * A theme worker is deployed with no vars and no bindings, so the request is\n * the only thing that knows which storefront it is serving. Null in the browser,\n * where nothing sets it: read {@link currentHost}, which falls back to\n * `window.location.host`, rather than this.\n */\n requestHost: string | null;\n /**\n * The Store API base the dispatcher named for this request (`x-salla-api-base`),\n * captured server-side, or null for the build's default. Set only on the beta and\n * PR preview storefronts; see `utils/api-base.ts`.\n */\n apiBase: string | null;\n /** The native app's `s-app-*` headers when the request came from its webview; see {@link readNativeAppHeaders}. */\n nativeAppHeaders: Record<string, string> | null;\n i18n: i18n;\n dir: 'ltr' | 'rtl';\n page?: PageContext;\n /** Installed apps' snippets, fetched in rootBeforeLoad so AppsSnippets can render CDN\n * <script> tags during SSR (React Query isn't dehydrated here, so useQuery has no SSR data). */\n appsSnippets?: AppSnippet[];\n /** Per-app public `app.*` buckets, fetched in rootBeforeLoad so rootHead can install the\n * `Salla.appScope` factory inline at parse time — ahead of the snippets' onReady callbacks. */\n appsSettings?: AppSettings;\n /**\n * This visitor sees the maintenance page, not the store. Decided in rootBeforeLoad\n * from `settings.maintenance` and the merchant's owner view; see `utils/maintenance`.\n */\n maintenance: boolean;\n /**\n * The Salla API answered that no store has the identifier this request named. Set by\n * rootBeforeLoad; `twilightMiddleware` answers with Twig's 410 page instead of the render.\n */\n storeNotFound: boolean;\n extras?: Record<string, unknown>;\n}\n\n// ============================================================================\n// Internal Store\n// ============================================================================\n\nconst DEFAULT_LOCATION: TwilightLocation = {\n href: '',\n pathname: '',\n search: {},\n searchStr: '',\n state: {},\n hash: '',\n};\n\ninterface ContextData {\n queryClient: QueryClient;\n settings: StoreContext | null;\n locale: string;\n routeId: string;\n location: TwilightLocation;\n authToken: string | null;\n scope: ActiveScope | null;\n storeId: string | null;\n storeBase: string | null;\n storeBaseFollowsLocale: boolean;\n versionId: string | null;\n draftId: string | null;\n requestHost: string | null;\n apiBase: string | null;\n nativeAppHeaders: Record<string, string> | null;\n i18n?: i18n;\n page?: PageContext;\n appsSnippets?: AppSnippet[];\n appsSettings?: AppSettings;\n maintenance: boolean;\n storeNotFound: boolean;\n extras?: Record<string, unknown>;\n}\n\nconst DEFAULT_DATA: ContextData = {\n queryClient: null as unknown as QueryClient,\n settings: null,\n locale: FALLBACK_LOCALE,\n routeId: '',\n location: { ...DEFAULT_LOCATION },\n authToken: null,\n scope: null,\n storeId: null,\n storeBase: null,\n storeBaseFollowsLocale: false,\n versionId: null,\n draftId: null,\n requestHost: null,\n apiBase: null,\n nativeAppHeaders: null,\n i18n: undefined,\n page: undefined,\n maintenance: false,\n storeNotFound: false,\n};\n\n// ============================================================================\n// Storage: AsyncLocalStorage (server) or module-level store (client)\n// ============================================================================\n\ntype AsyncLocalStore<T> = { getStore(): T | undefined; run(val: T, fn: () => unknown): unknown };\n\n// Initialize ALS at module load time for SSR — no race condition\ntype AsyncHooks = { AsyncLocalStorage: new <T>() => AsyncLocalStore<T> };\n\n// workerd has no global `require`, so a bundled `require()` throws there; it does have\n// `process.getBuiltinModule` (so does Node >= 20.16), which keeps this out of the browser bundle.\nfunction loadAsyncHooks(): AsyncHooks | null {\n const proc = (globalThis as { process?: { getBuiltinModule?: (id: string) => unknown } }).process;\n try {\n const builtin = proc?.getBuiltinModule?.('node:async_hooks') as AsyncHooks | undefined;\n if (builtin?.AsyncLocalStorage) return builtin;\n } catch {\n /* fall through to require */\n }\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n return require('node:async_hooks') as AsyncHooks;\n } catch {\n return null;\n }\n}\n\nconst isServer = typeof window === 'undefined';\n// One instance per isolate, so a re-evaluated or duplicated copy of this module (dev\n// reloads, src next to dist) reads the scope the request middleware opened.\nconst ALS_KEY = Symbol.for('salla.twilight.context.als');\nlet _als: AsyncLocalStore<ContextData> | null = null;\nif (isServer) {\n const registry = globalThis as { [ALS_KEY]?: AsyncLocalStore<ContextData> };\n const hooks = registry[ALS_KEY] ? null : loadAsyncHooks();\n if (hooks) registry[ALS_KEY] = new hooks.AsyncLocalStorage<ContextData>();\n _als = registry[ALS_KEY] ?? null;\n}\n\n// Without request isolation every request would share `clientStore`: one visitor's\n// auth token and store settings rendered into another's page.\nfunction assertRequestIsolation(): void {\n if (isServer && !_als) {\n throw new Error(\n '[Twilight] AsyncLocalStorage is unavailable; refusing to share request state.'\n );\n }\n}\n\n// The browser's store, shared by every copy of this module on the page like the ALS above,\n// so a loader in one copy reads the location and token the router wrote through another.\nconst CLIENT_KEY = Symbol.for('salla.twilight.context.client');\nconst clientRegistry = globalThis as {\n [CLIENT_KEY]?: { store: ContextData; listeners: Set<() => void> };\n};\nconst clientShared = (clientRegistry[CLIENT_KEY] ??= {\n store: { ...DEFAULT_DATA },\n listeners: new Set<() => void>(),\n});\nconst clientStore: ContextData = clientShared.store;\n\nfunction getTwilightStore(): ContextData {\n assertRequestIsolation();\n if (_als) {\n const store = _als.getStore();\n if (!store)\n throw new Error('[Twilight] No request context. Wrap with runWithTwilightContext().');\n return store;\n }\n return clientStore;\n}\n\nfunction writableStore(): ContextData {\n if (_als) {\n const store = _als.getStore();\n if (store) return store;\n }\n return clientStore;\n}\n\nfunction mergeIntoStore(store: ContextData, partial: Partial<TwilightContext>): void {\n if ('queryClient' in partial && partial.queryClient) store.queryClient = partial.queryClient;\n if ('settings' in partial && partial.settings != null) store.settings = partial.settings;\n if ('locale' in partial && partial.locale != null) store.locale = partial.locale;\n if ('routeId' in partial && partial.routeId != null) store.routeId = partial.routeId;\n if ('location' in partial && partial.location != null)\n store.location = { ...store.location, ...partial.location };\n if ('authToken' in partial && partial.authToken !== undefined)\n store.authToken = partial.authToken ?? null;\n if ('scope' in partial && partial.scope !== undefined) store.scope = partial.scope ?? null;\n else if ('scopeId' in partial && partial.scopeId !== undefined)\n store.scope = partial.scopeId == null ? null : { id: partial.scopeId };\n if ('storeId' in partial && partial.storeId !== undefined)\n store.storeId = partial.storeId ?? null;\n if ('storeBase' in partial && partial.storeBase !== undefined)\n store.storeBase = partial.storeBase ?? null;\n if ('storeBaseFollowsLocale' in partial && partial.storeBaseFollowsLocale !== undefined)\n store.storeBaseFollowsLocale = partial.storeBaseFollowsLocale === true;\n if ('versionId' in partial && partial.versionId !== undefined)\n store.versionId = partial.versionId ?? null;\n if ('draftId' in partial && partial.draftId !== undefined)\n store.draftId = partial.draftId ?? null;\n if ('requestHost' in partial && partial.requestHost !== undefined)\n store.requestHost = partial.requestHost ?? null;\n if ('apiBase' in partial && partial.apiBase !== undefined)\n store.apiBase = partial.apiBase ?? null;\n if ('nativeAppHeaders' in partial && partial.nativeAppHeaders !== undefined)\n store.nativeAppHeaders = partial.nativeAppHeaders ?? null;\n if ('i18n' in partial && partial.i18n != null) store.i18n = partial.i18n;\n if ('page' in partial) store.page = partial.page;\n if ('appsSnippets' in partial) store.appsSnippets = partial.appsSnippets;\n if ('appsSettings' in partial) store.appsSettings = partial.appsSettings;\n if ('maintenance' in partial) store.maintenance = partial.maintenance === true;\n if ('storeNotFound' in partial) store.storeNotFound = partial.storeNotFound === true;\n if ('extras' in partial) store.extras = partial.extras;\n}\n\n// ============================================================================\n// Public API\n// ============================================================================\n\nexport function runWithTwilightContext<T>(partial: Partial<TwilightContext>, fn: () => T): T {\n assertRequestIsolation();\n if (_als) {\n const data: ContextData = { ...DEFAULT_DATA };\n mergeIntoStore(data, partial);\n return _als.run(data, fn) as T;\n }\n mergeIntoStore(clientStore, partial);\n return fn();\n}\n\n// Client-only subscription so React consumers (useRouteId/useIsHome/…) re-render\n// when navigation mutates the module store. Mirrors hooks/useWishlist.ts.\nconst listeners = clientShared.listeners;\n\nexport function subscribeTwilight(listener: () => void): () => void {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n}\n\nexport function updateTwilightContext(partial: Partial<TwilightContext>): void {\n mergeIntoStore(getTwilightStore(), partial);\n // Server uses AsyncLocalStorage and has no React subscribers; notify on client only.\n if (typeof window !== 'undefined') {\n for (const listener of listeners) listener();\n }\n}\n\n/**\n * Whether store settings are available, without throwing.\n *\n * `getTwilightContext().settings` throws a `SettingsError` when the store is\n * empty, which is fatal inside a head function during hydration. Callers that\n * need to *test* availability must use this instead of a try/catch around the\n * getter. Returns false when there is no request context at all (server-side\n * calls outside `runWithTwilightContext`).\n */\nexport function hasTwilightSettings(): boolean {\n try {\n return getTwilightStore().settings != null;\n } catch {\n return false;\n }\n}\n\n/** What a request addressed, as opposed to what it is. */\nexport interface RequestAddressing {\n storeId: string | null;\n storeBase: string | null;\n storeBaseFollowsLocale: boolean;\n versionId: string | null;\n draftId: string | null;\n requestHost: string | null;\n apiBase: string | null;\n}\n\n/**\n * What this request named and the host it arrived on, without throwing.\n *\n * Separate from {@link getTwilightContext} because store identity is read while\n * deciding *what to fetch* — before there is a context worth having — and on the\n * server outside a request the getter throws. A caller asking \"which store?\" has\n * a sane answer for \"none named\"; it has none for an exception.\n *\n * The version and the draft ride along rather than getting accessors of their\n * own: they are read at the same moment, for the same reason, and by the same\n * callers, and another copy of this try/catch would be another thing to remember\n * to widen.\n */\nexport function getRequestStore(): RequestAddressing {\n try {\n const data = getTwilightStore();\n return {\n storeId: data.storeId,\n storeBase: data.storeBase,\n storeBaseFollowsLocale: data.storeBaseFollowsLocale,\n versionId: data.versionId,\n draftId: data.draftId,\n requestHost: data.requestHost,\n apiBase: data.apiBase,\n };\n } catch {\n return {\n storeId: null,\n storeBase: null,\n storeBaseFollowsLocale: false,\n versionId: null,\n draftId: null,\n requestHost: null,\n apiBase: null,\n };\n }\n}\n\nexport function getTwilightContext(): TwilightContext {\n const data = getTwilightStore();\n return {\n get queryClient() {\n return data.queryClient;\n },\n get settings() {\n if (!data.settings) throw new SettingsError();\n return data.settings;\n },\n get locale() {\n return data.locale;\n },\n get routeId() {\n return data.routeId;\n },\n get location() {\n return data.location;\n },\n get authToken() {\n return data.authToken;\n },\n get scope() {\n return data.scope;\n },\n get scopeId() {\n return data.scope?.id ?? null;\n },\n get storeId() {\n return data.storeId;\n },\n get storeBase() {\n return data.storeBase;\n },\n get storeBaseFollowsLocale() {\n return data.storeBaseFollowsLocale;\n },\n get versionId() {\n return data.versionId;\n },\n get draftId() {\n return data.draftId;\n },\n get requestHost() {\n return data.requestHost;\n },\n get apiBase() {\n return data.apiBase;\n },\n get nativeAppHeaders() {\n return data.nativeAppHeaders;\n },\n get i18n() {\n if (!data.i18n) {\n // Composed the same way as `rootBeforeLoad` and the hydration path —\n // the platform's copy with this merchant's over it. See\n // `api/messages.ts`: this accessor reading one entry while the others\n // read two is precisely the drift that module exists to stop.\n data.i18n = createI18nInstance(\n data.locale,\n messagesForLocale(data.queryClient, data.locale)\n );\n }\n return data.i18n;\n },\n get dir() {\n return getLanguageInfo(data.locale).dir;\n },\n get page() {\n return data.page;\n },\n get appsSnippets() {\n return data.appsSnippets;\n },\n get appsSettings() {\n return data.appsSettings;\n },\n get maintenance() {\n return data.maintenance;\n },\n get storeNotFound() {\n return data.storeNotFound;\n },\n get extras() {\n return data.extras;\n },\n };\n}\n\n/** @internal Reset store for testing */\nexport function resetForTesting(): void {\n Object.assign(writableStore(), { ...DEFAULT_DATA });\n}\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export { customUrlKey, customUrlPagePath, customUrlRedirect, storePathOf, withAddressQuery } from './chunk-2AF6PXGC.js';
|
|
2
|
-
import './chunk-4DPJCTO3.js';
|
|
3
|
-
import './chunk-4R5DOFG3.js';
|
|
4
|
-
import './chunk-4EQ2XUD2.js';
|
|
5
|
-
import './chunk-VZ5EMKBD.js';
|
|
6
|
-
import './chunk-OUW6WESU.js';
|
|
7
|
-
import './chunk-4MKA22LE.js';
|
|
8
|
-
import './chunk-Z5M4YYWT.js';
|
|
9
|
-
import './chunk-H73VXFYO.js';
|
|
10
|
-
import './chunk-JCYX7HXB.js';
|
|
11
|
-
import './chunk-VLL4GO7G.js';
|
|
12
|
-
import './chunk-PLD6KSYE.js';
|
|
13
|
-
import './chunk-T72DAX7R.js';
|
|
14
|
-
import './chunk-DF6FBKDN.js';
|
|
15
|
-
import './chunk-DGUM43GV.js';
|
|
16
|
-
//# sourceMappingURL=custom-urls-OV5L65QA.js.map
|
|
17
|
-
//# sourceMappingURL=custom-urls-OV5L65QA.js.map
|