@salla.sa/twilight-theme-engine 1.0.126 → 1.0.128
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-BY24SGTR.js → AddToCartForm-NBU3MIEW.js} +3 -3
- package/dist/{AddToCartForm-BY24SGTR.js.map → AddToCartForm-NBU3MIEW.js.map} +1 -1
- package/dist/{BlogAuthorPage-UAQ6266M.js → BlogAuthorPage-4HGFVIG2.js} +17 -16
- package/dist/BlogAuthorPage-4HGFVIG2.js.map +1 -0
- package/dist/{BlogCategoryPage-UX5OZZRZ.js → BlogCategoryPage-67TZRH3C.js} +17 -16
- package/dist/BlogCategoryPage-67TZRH3C.js.map +1 -0
- package/dist/{BlogPage-AAITQ3UZ.js → BlogPage-HINCPIQO.js} +15 -14
- package/dist/BlogPage-HINCPIQO.js.map +1 -0
- package/dist/{BlogSinglePage-R7VG3WNP.js → BlogSinglePage-4BWHLJU6.js} +15 -14
- package/dist/BlogSinglePage-4BWHLJU6.js.map +1 -0
- package/dist/{BlogTagPage-YCJL3FNS.js → BlogTagPage-BGPLVWGM.js} +17 -16
- package/dist/BlogTagPage-BGPLVWGM.js.map +1 -0
- package/dist/{BrandsPage-4M4J7YH5.js → BrandsPage-2NC3RCZK.js} +16 -15
- package/dist/BrandsPage-2NC3RCZK.js.map +1 -0
- package/dist/{Breadcrumb-WB5NXLLA.js → Breadcrumb-CCYDVGCS.js} +15 -14
- package/dist/Breadcrumb-CCYDVGCS.js.map +1 -0
- package/dist/{CartItem-UWCMEGW7.js → CartItem-M5PC54CM.js} +15 -14
- package/dist/CartItem-M5PC54CM.js.map +1 -0
- package/dist/{CartSummary-TK55II7A.js → CartSummary-YQI7XI4D.js} +15 -14
- package/dist/CartSummary-YQI7XI4D.js.map +1 -0
- package/dist/{Copyright-PHLEOCO4.js → Copyright-67E3ANPE.js} +3 -3
- package/dist/{Copyright-PHLEOCO4.js.map → Copyright-67E3ANPE.js.map} +1 -1
- package/dist/{CustomerLayout-BCTFI56B.js → CustomerLayout-HPLKOG7R.js} +15 -14
- package/dist/CustomerLayout-HPLKOG7R.js.map +1 -0
- package/dist/{Footer-AXIXSATN.js → Footer-56IXUTHF.js} +4 -4
- package/dist/{Footer-AXIXSATN.js.map → Footer-56IXUTHF.js.map} +1 -1
- package/dist/{Header-5GD53HC5.js → Header-67Q5OA63.js} +9 -8
- package/dist/{Header-5GD53HC5.js.map → Header-67Q5OA63.js.map} +1 -1
- package/dist/{LoyaltyPage-MBYLZF7B.js → LoyaltyPage-GC7B5FXF.js} +15 -14
- package/dist/LoyaltyPage-GC7B5FXF.js.map +1 -0
- package/dist/{LoyaltyPointsPage-SFAL3TOO.js → LoyaltyPointsPage-UAZQ2GZT.js} +7 -6
- package/dist/LoyaltyPointsPage-UAZQ2GZT.js.map +1 -0
- package/dist/{MainMenu-VEZTUNCZ.js → MainMenu-7SXJ2DU4.js} +6 -5
- package/dist/MainMenu-7SXJ2DU4.js.map +1 -0
- package/dist/{MasterLayout-TFHNWIRE.js → MasterLayout-53MYQBTT.js} +15 -14
- package/dist/{MasterLayout-TFHNWIRE.js.map → MasterLayout-53MYQBTT.js.map} +1 -1
- package/dist/{MobileMenu-JWD22FVU.js → MobileMenu-U6W2XQYI.js} +16 -15
- package/dist/MobileMenu-U6W2XQYI.js.map +1 -0
- package/dist/{NotificationsPage-QVE7AOCV.js → NotificationsPage-2WFW7GCV.js} +15 -14
- package/dist/NotificationsPage-2WFW7GCV.js.map +1 -0
- package/dist/{OrderSinglePage-QSNZVQ22.js → OrderSinglePage-VN3IBWOO.js} +16 -15
- package/dist/OrderSinglePage-VN3IBWOO.js.map +1 -0
- package/dist/{OrdersPage-WGIHZJNJ.js → OrdersPage-NOUGRTHI.js} +15 -14
- package/dist/OrdersPage-NOUGRTHI.js.map +1 -0
- package/dist/{PageSingle-3HXGOYLZ.js → PageSingle-MP5THOR4.js} +3 -3
- package/dist/{PageSingle-3HXGOYLZ.js.map → PageSingle-MP5THOR4.js.map} +1 -1
- package/dist/{ProductDetails-ALVRCBP4.js → ProductDetails-GONQFVV2.js} +5 -4
- package/dist/ProductDetails-GONQFVV2.js.map +1 -0
- package/dist/{ProfilePage-AVJYAQOG.js → ProfilePage-RHK3OHFF.js} +15 -14
- package/dist/ProfilePage-RHK3OHFF.js.map +1 -0
- package/dist/{ReviewsPage-ULGQMLGH.js → ReviewsPage-3PODTNEP.js} +3 -3
- package/dist/{ReviewsPage-ULGQMLGH.js.map → ReviewsPage-3PODTNEP.js.map} +1 -1
- package/dist/{SeoCartWidget-5WY6AV2F.js → SeoCartWidget-MHOPTGWV.js} +15 -14
- package/dist/SeoCartWidget-MHOPTGWV.js.map +1 -0
- package/dist/{SettingsPage-ZHTSKKBD.js → SettingsPage-RLNSTOCG.js} +15 -14
- package/dist/SettingsPage-RLNSTOCG.js.map +1 -0
- package/dist/{StoreClosedNotification-5V7QGKMC.js → StoreClosedNotification-AUQCK2MP.js} +16 -15
- package/dist/{StoreClosedNotification-5V7QGKMC.js.map → StoreClosedNotification-AUQCK2MP.js.map} +1 -1
- package/dist/{TestimonialsPage-7YS7QRTY.js → TestimonialsPage-GXKXWGDA.js} +3 -3
- package/dist/{TestimonialsPage-7YS7QRTY.js.map → TestimonialsPage-GXKXWGDA.js.map} +1 -1
- package/dist/{ThankYouPage-PLCUI7LC.js → ThankYouPage-GILEXBPL.js} +15 -14
- package/dist/ThankYouPage-GILEXBPL.js.map +1 -0
- package/dist/{WalletPage-C6ZFJTSA.js → WalletPage-4OOHX65H.js} +16 -15
- package/dist/WalletPage-4OOHX65H.js.map +1 -0
- package/dist/{WishlistPage-3CIW7AIZ.js → WishlistPage-Z2TPPFFM.js} +17 -16
- package/dist/WishlistPage-Z2TPPFFM.js.map +1 -0
- package/dist/api/advertisement.js +3 -2
- package/dist/api/apps.js +3 -2
- package/dist/api/blog.js +4 -3
- package/dist/api/brands.js +4 -3
- package/dist/api/cart.js +4 -3
- package/dist/api/category.js +4 -3
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +2 -1
- package/dist/api/dev-settings-cache.d.ts +50 -0
- package/dist/api/dev-settings-cache.d.ts.map +1 -0
- package/dist/api/home.js +3 -2
- package/dist/api/loyalty.js +4 -3
- package/dist/api/menu.js +3 -2
- package/dist/api/notification.js +3 -2
- package/dist/api/order.js +4 -3
- package/dist/api/page.js +4 -3
- package/dist/api/product.js +4 -3
- package/dist/api/profile.js +2 -1
- package/dist/api/profile.js.map +1 -1
- package/dist/api/store.d.ts +6 -0
- package/dist/api/store.d.ts.map +1 -1
- package/dist/api/store.js +3 -2
- package/dist/api/translations.js +3 -2
- package/dist/api/user.js +3 -2
- package/dist/api/wallet.js +3 -2
- package/dist/api/wishlist.js +5 -4
- package/dist/{chunk-SGET4UYI.js → chunk-2VRMQZXF.js} +3 -3
- package/dist/{chunk-SGET4UYI.js.map → chunk-2VRMQZXF.js.map} +1 -1
- package/dist/{chunk-A6AAG7U6.js → chunk-3FMJHVRY.js} +4 -4
- package/dist/{chunk-A6AAG7U6.js.map → chunk-3FMJHVRY.js.map} +1 -1
- package/dist/{chunk-KKOFHYTI.js → chunk-3OGFV27B.js} +3 -3
- package/dist/{chunk-KKOFHYTI.js.map → chunk-3OGFV27B.js.map} +1 -1
- package/dist/{chunk-UHCNMJDI.js → chunk-3U6BZUQL.js} +7 -7
- package/dist/{chunk-UHCNMJDI.js.map → chunk-3U6BZUQL.js.map} +1 -1
- package/dist/{chunk-MHLKLADI.js → chunk-4LR7N76Q.js} +52 -14
- package/dist/chunk-4LR7N76Q.js.map +1 -0
- package/dist/{chunk-FN2GQ2B5.js → chunk-5GCOUJ7T.js} +3 -3
- package/dist/{chunk-FN2GQ2B5.js.map → chunk-5GCOUJ7T.js.map} +1 -1
- package/dist/{chunk-6PK4GITC.js → chunk-5U7LPEFE.js} +3 -3
- package/dist/{chunk-6PK4GITC.js.map → chunk-5U7LPEFE.js.map} +1 -1
- package/dist/{chunk-IGGIH6GL.js → chunk-6GDNC6DS.js} +3 -3
- package/dist/{chunk-IGGIH6GL.js.map → chunk-6GDNC6DS.js.map} +1 -1
- package/dist/{chunk-NHJ5U6WK.js → chunk-6NT6RC2H.js} +3 -3
- package/dist/{chunk-NHJ5U6WK.js.map → chunk-6NT6RC2H.js.map} +1 -1
- package/dist/{chunk-WFSKX5AI.js → chunk-7SBSV5DD.js} +3 -3
- package/dist/{chunk-WFSKX5AI.js.map → chunk-7SBSV5DD.js.map} +1 -1
- package/dist/{chunk-TNUK62YF.js → chunk-CGABIBZZ.js} +4 -4
- package/dist/{chunk-TNUK62YF.js.map → chunk-CGABIBZZ.js.map} +1 -1
- package/dist/{chunk-WBDU6KDP.js → chunk-CN4U4EWY.js} +4 -4
- package/dist/{chunk-WBDU6KDP.js.map → chunk-CN4U4EWY.js.map} +1 -1
- package/dist/{chunk-XRDQAJW5.js → chunk-DI463VGL.js} +3 -3
- package/dist/{chunk-XRDQAJW5.js.map → chunk-DI463VGL.js.map} +1 -1
- package/dist/{chunk-BWTUGXHI.js → chunk-DJN6JAF7.js} +5 -5
- package/dist/{chunk-BWTUGXHI.js.map → chunk-DJN6JAF7.js.map} +1 -1
- package/dist/{chunk-53IXPTVY.js → chunk-EXK6VVXU.js} +4 -4
- package/dist/{chunk-53IXPTVY.js.map → chunk-EXK6VVXU.js.map} +1 -1
- package/dist/{chunk-5SJRY6P3.js → chunk-EZK2WD75.js} +4 -4
- package/dist/{chunk-5SJRY6P3.js.map → chunk-EZK2WD75.js.map} +1 -1
- package/dist/{chunk-IM5NMPNU.js → chunk-FWGHTOGZ.js} +7 -7
- package/dist/{chunk-IM5NMPNU.js.map → chunk-FWGHTOGZ.js.map} +1 -1
- package/dist/{chunk-RE4QQM4Q.js → chunk-GFOAMXSO.js} +3 -3
- package/dist/{chunk-RE4QQM4Q.js.map → chunk-GFOAMXSO.js.map} +1 -1
- package/dist/{chunk-4C76FZV4.js → chunk-GN5V4IQI.js} +4 -4
- package/dist/{chunk-4C76FZV4.js.map → chunk-GN5V4IQI.js.map} +1 -1
- package/dist/{chunk-KEOCLT62.js → chunk-HAS46CRI.js} +8 -5
- package/dist/chunk-HAS46CRI.js.map +1 -0
- package/dist/{chunk-TCRZSLXH.js → chunk-HRDCUTC6.js} +6 -6
- package/dist/{chunk-TCRZSLXH.js.map → chunk-HRDCUTC6.js.map} +1 -1
- package/dist/{chunk-GLE6TNJ3.js → chunk-HZIQK63A.js} +3 -3
- package/dist/{chunk-GLE6TNJ3.js.map → chunk-HZIQK63A.js.map} +1 -1
- package/dist/{chunk-LWPIGNCW.js → chunk-JAP5KTIG.js} +4 -4
- package/dist/{chunk-LWPIGNCW.js.map → chunk-JAP5KTIG.js.map} +1 -1
- package/dist/{chunk-JAKLD546.js → chunk-JUKKXGHR.js} +3 -3
- package/dist/{chunk-JAKLD546.js.map → chunk-JUKKXGHR.js.map} +1 -1
- package/dist/{chunk-4VYKXIYA.js → chunk-KNTHVSUL.js} +8 -7
- package/dist/chunk-KNTHVSUL.js.map +1 -0
- package/dist/{chunk-A6IKHCIA.js → chunk-L36ZEKBI.js} +4 -4
- package/dist/{chunk-A6IKHCIA.js.map → chunk-L36ZEKBI.js.map} +1 -1
- package/dist/chunk-L4FKJ3ZN.js +14 -0
- package/dist/{chunk-UE65NYZF.js.map → chunk-L4FKJ3ZN.js.map} +1 -1
- package/dist/{chunk-JL7MKSCD.js → chunk-LIQHWHYV.js} +10 -10
- package/dist/{chunk-JL7MKSCD.js.map → chunk-LIQHWHYV.js.map} +1 -1
- package/dist/{chunk-KDV6WZYJ.js → chunk-M6Z7KIDX.js} +3 -3
- package/dist/{chunk-KDV6WZYJ.js.map → chunk-M6Z7KIDX.js.map} +1 -1
- package/dist/{chunk-HFCZIPYO.js → chunk-O3BZBI27.js} +3 -3
- package/dist/{chunk-HFCZIPYO.js.map → chunk-O3BZBI27.js.map} +1 -1
- package/dist/{chunk-47BPYZJF.js → chunk-OOQTZ7N7.js} +3 -3
- package/dist/{chunk-47BPYZJF.js.map → chunk-OOQTZ7N7.js.map} +1 -1
- package/dist/{chunk-R2FXTCRK.js → chunk-QLFRNPPF.js} +15 -14
- package/dist/chunk-QLFRNPPF.js.map +1 -0
- package/dist/{chunk-75STIRBZ.js → chunk-RA5O7L7Q.js} +4 -4
- package/dist/{chunk-75STIRBZ.js.map → chunk-RA5O7L7Q.js.map} +1 -1
- package/dist/{chunk-5LP2K2J7.js → chunk-S7QZUBXM.js} +112 -6
- package/dist/chunk-S7QZUBXM.js.map +1 -0
- package/dist/{chunk-4ZYJDSYQ.js → chunk-U2UDXLAE.js} +3 -3
- package/dist/{chunk-4ZYJDSYQ.js.map → chunk-U2UDXLAE.js.map} +1 -1
- package/dist/{chunk-CKH5HDHS.js → chunk-UGJ24VNF.js} +4 -4
- package/dist/{chunk-CKH5HDHS.js.map → chunk-UGJ24VNF.js.map} +1 -1
- package/dist/{chunk-Z76YTG4W.js → chunk-UWE2QL3O.js} +3 -3
- package/dist/{chunk-Z76YTG4W.js.map → chunk-UWE2QL3O.js.map} +1 -1
- package/dist/{chunk-GHLPK63Q.js → chunk-XCS62X6X.js} +7 -7
- package/dist/{chunk-GHLPK63Q.js.map → chunk-XCS62X6X.js.map} +1 -1
- package/dist/chunk-Z5M4YYWT.js +9 -0
- package/dist/chunk-Z5M4YYWT.js.map +1 -0
- package/dist/{chunk-ANLG2WBG.js → chunk-ZWV6YNIB.js} +4 -4
- package/dist/{chunk-ANLG2WBG.js.map → chunk-ZWV6YNIB.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 +13 -12
- package/dist/components/home/HomePageRenderer.d.ts.map +1 -1
- package/dist/components/home/index.js +17 -16
- package/dist/components/layout/index.js +5 -4
- package/dist/components/product/index.js +14 -13
- package/dist/components/store/index.js +14 -13
- package/dist/dev/dev-settings-store.d.ts +20 -0
- package/dist/dev/dev-settings-store.d.ts.map +1 -1
- package/dist/dev/editor/ThemeEditor.d.ts.map +1 -1
- package/dist/dev/editor/i18n.d.ts +3 -0
- package/dist/dev/editor/i18n.d.ts.map +1 -1
- package/dist/dev/editor/index.js +64 -4
- package/dist/dev/editor/index.js.map +1 -1
- package/dist/dev/editor/relative-time.d.ts +8 -0
- package/dist/dev/editor/relative-time.d.ts.map +1 -0
- package/dist/dev/editor/styles.d.ts +1 -1
- package/dist/dev/editor/styles.d.ts.map +1 -1
- package/dist/dev/index.js +1 -1
- package/dist/{document-class-P2H6HKXA.js → document-class-DSRV5LZK.js} +12 -11
- package/dist/{document-class-P2H6HKXA.js.map → document-class-DSRV5LZK.js.map} +1 -1
- package/dist/hooks/index.js +13 -12
- package/dist/hooks/useGtm.js +13 -12
- package/dist/hooks/useMoney.js +13 -12
- package/dist/hooks/useStore.js +13 -12
- package/dist/hooks/useUser.js +4 -3
- package/dist/index.js +13 -12
- package/dist/index.js.map +1 -1
- package/dist/{navigation-4STP3ZMK.js → navigation-ATD4DRST.js} +5 -4
- package/dist/navigation-ATD4DRST.js.map +1 -0
- package/dist/{navigation-6Y2SKWH3.js → navigation-XCZMJSNS.js} +6 -5
- package/dist/{navigation-6Y2SKWH3.js.map → navigation-XCZMJSNS.js.map} +1 -1
- package/dist/{not-found-LLCXGKVS.js → not-found-ZE4Y7RLW.js} +16 -15
- package/dist/not-found-ZE4Y7RLW.js.map +1 -0
- package/dist/providers/index.js +13 -12
- package/dist/providers/twilight-init.d.ts.map +1 -1
- package/dist/routes/account/orders.js +5 -4
- package/dist/routes/account.js +14 -13
- package/dist/routes/account.js.map +1 -1
- package/dist/routes/blog.js +9 -8
- package/dist/routes/blog.js.map +1 -1
- package/dist/routes/brands.js +5 -4
- package/dist/routes/brands.js.map +1 -1
- package/dist/routes/cart.js +21 -20
- package/dist/routes/cart.js.map +1 -1
- package/dist/routes/home.js +18 -17
- package/dist/routes/index.js +4 -3
- package/dist/routes/loyalty.js +6 -5
- package/dist/routes/loyalty.js.map +1 -1
- package/dist/routes/page.js +5 -4
- package/dist/routes/page.js.map +1 -1
- package/dist/routes/product-listing.js +19 -18
- package/dist/routes/product-listing.js.map +1 -1
- package/dist/routes/product.js +17 -16
- package/dist/routes/product.js.map +1 -1
- package/dist/routes/seo-redirects.js +4 -3
- package/dist/routes/testimonials.js +2 -2
- package/dist/routes/thank-you.js +5 -4
- package/dist/routes/thank-you.js.map +1 -1
- package/dist/skeleton.js +18 -17
- package/dist/{store-lookup-XKL42Y4H.js → store-lookup-TG6RV6NV.js} +9 -8
- package/dist/store-lookup-TG6RV6NV.js.map +1 -0
- package/dist/tanstack.js +12 -11
- package/dist/tanstack.js.map +1 -1
- package/dist/utils/dev-settings-refresh.d.ts +14 -0
- package/dist/utils/dev-settings-refresh.d.ts.map +1 -0
- package/dist/utils/index.js +3 -2
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/tailwind/components/home/HomePageRenderer.tsx.txt +5 -2
- package/dist/BlogAuthorPage-UAQ6266M.js.map +0 -1
- package/dist/BlogCategoryPage-UX5OZZRZ.js.map +0 -1
- package/dist/BlogPage-AAITQ3UZ.js.map +0 -1
- package/dist/BlogSinglePage-R7VG3WNP.js.map +0 -1
- package/dist/BlogTagPage-YCJL3FNS.js.map +0 -1
- package/dist/BrandsPage-4M4J7YH5.js.map +0 -1
- package/dist/Breadcrumb-WB5NXLLA.js.map +0 -1
- package/dist/CartItem-UWCMEGW7.js.map +0 -1
- package/dist/CartSummary-TK55II7A.js.map +0 -1
- package/dist/CustomerLayout-BCTFI56B.js.map +0 -1
- package/dist/LoyaltyPage-MBYLZF7B.js.map +0 -1
- package/dist/LoyaltyPointsPage-SFAL3TOO.js.map +0 -1
- package/dist/MainMenu-VEZTUNCZ.js.map +0 -1
- package/dist/MobileMenu-JWD22FVU.js.map +0 -1
- package/dist/NotificationsPage-QVE7AOCV.js.map +0 -1
- package/dist/OrderSinglePage-QSNZVQ22.js.map +0 -1
- package/dist/OrdersPage-WGIHZJNJ.js.map +0 -1
- package/dist/ProductDetails-ALVRCBP4.js.map +0 -1
- package/dist/ProfilePage-AVJYAQOG.js.map +0 -1
- package/dist/SeoCartWidget-5WY6AV2F.js.map +0 -1
- package/dist/SettingsPage-ZHTSKKBD.js.map +0 -1
- package/dist/ThankYouPage-PLCUI7LC.js.map +0 -1
- package/dist/WalletPage-C6ZFJTSA.js.map +0 -1
- package/dist/WishlistPage-3CIW7AIZ.js.map +0 -1
- package/dist/chunk-4VYKXIYA.js.map +0 -1
- package/dist/chunk-5LP2K2J7.js.map +0 -1
- package/dist/chunk-KEOCLT62.js.map +0 -1
- package/dist/chunk-MHLKLADI.js.map +0 -1
- package/dist/chunk-R2FXTCRK.js.map +0 -1
- package/dist/chunk-UE65NYZF.js +0 -14
- package/dist/navigation-4STP3ZMK.js.map +0 -1
- package/dist/not-found-LLCXGKVS.js.map +0 -1
- package/dist/store-lookup-XKL42Y4H.js.map +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { LazyCopyright as Copyright, LazyCustomerLayout as CustomerLayout, LazyFooter as Footer, LazyHeader as Header, LazyMasterLayout as MasterLayout, LazyWidgetHead as WidgetHead } from '../../chunk-
|
|
2
|
-
export { PageAdvertisements } from '../../chunk-
|
|
1
|
+
export { LazyCopyright as Copyright, LazyCustomerLayout as CustomerLayout, LazyFooter as Footer, LazyHeader as Header, LazyMasterLayout as MasterLayout, LazyWidgetHead as WidgetHead } from '../../chunk-3U6BZUQL.js';
|
|
2
|
+
export { PageAdvertisements } from '../../chunk-2VRMQZXF.js';
|
|
3
3
|
export { MadeWithSalla } from '../../chunk-OQIIJRAS.js';
|
|
4
4
|
export { pushEqualHeightConfig } from '../../chunk-V2ZDTY6H.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-5GCOUJ7T.js';
|
|
6
6
|
import '../../chunk-5XDPAKF5.js';
|
|
7
7
|
import '../../chunk-GCPEMNSU.js';
|
|
8
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-S7QZUBXM.js';
|
|
9
|
+
import '../../chunk-Z5M4YYWT.js';
|
|
9
10
|
import '../../chunk-TYNZ5B2B.js';
|
|
10
11
|
import '../../chunk-GYXUYHKO.js';
|
|
11
12
|
import '../../chunk-FHU2MXZA.js';
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export { LazyAddToCartForm as AddToCartForm, ProductCard, LazyProductDetails as ProductDetails, ProductGallery } from '../../chunk-
|
|
1
|
+
export { LazyAddToCartForm as AddToCartForm, ProductCard, LazyProductDetails as ProductDetails, ProductGallery } from '../../chunk-HRDCUTC6.js';
|
|
2
2
|
import '../../chunk-Y32RHCOH.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-QLFRNPPF.js';
|
|
4
4
|
import '../../chunk-MVNWWZWQ.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-XCS62X6X.js';
|
|
6
|
+
import '../../chunk-5U7LPEFE.js';
|
|
7
7
|
import '../../chunk-KQEBYXYB.js';
|
|
8
8
|
import '../../chunk-JYV25VNZ.js';
|
|
9
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-4LR7N76Q.js';
|
|
10
10
|
import '../../chunk-OXMUPNMH.js';
|
|
11
|
-
import '../../chunk-
|
|
11
|
+
import '../../chunk-GFOAMXSO.js';
|
|
12
12
|
import '../../chunk-VVZNW5CB.js';
|
|
13
13
|
import '../../chunk-5FJFN3IW.js';
|
|
14
14
|
import '../../chunk-GD26FI4J.js';
|
|
15
15
|
import '../../chunk-OM2GRPDH.js';
|
|
16
|
-
import '../../chunk-
|
|
16
|
+
import '../../chunk-HZIQK63A.js';
|
|
17
17
|
import '../../chunk-OUW6WESU.js';
|
|
18
18
|
import '../../chunk-BK5TBUGG.js';
|
|
19
19
|
import '../../chunk-HI5V5X3S.js';
|
|
20
|
-
import '../../chunk-
|
|
21
|
-
import '../../chunk-
|
|
20
|
+
import '../../chunk-U2UDXLAE.js';
|
|
21
|
+
import '../../chunk-6NT6RC2H.js';
|
|
22
22
|
import '../../chunk-MVT5AF2A.js';
|
|
23
23
|
import '../../chunk-Z653O7MX.js';
|
|
24
24
|
import '../../chunk-ZCH7W7DZ.js';
|
|
@@ -29,15 +29,16 @@ import '../../chunk-7V36I5GT.js';
|
|
|
29
29
|
import '../../chunk-6WI7R2BD.js';
|
|
30
30
|
import '../../chunk-JGVEGQHJ.js';
|
|
31
31
|
import '../../chunk-OAMIDZKW.js';
|
|
32
|
-
import '../../chunk-
|
|
32
|
+
import '../../chunk-2VRMQZXF.js';
|
|
33
33
|
import '../../chunk-OQIIJRAS.js';
|
|
34
34
|
import '../../chunk-V2ZDTY6H.js';
|
|
35
|
-
import '../../chunk-
|
|
35
|
+
import '../../chunk-5GCOUJ7T.js';
|
|
36
36
|
import '../../chunk-5XDPAKF5.js';
|
|
37
37
|
import '../../chunk-GCPEMNSU.js';
|
|
38
|
-
import '../../chunk-
|
|
38
|
+
import '../../chunk-S7QZUBXM.js';
|
|
39
|
+
import '../../chunk-Z5M4YYWT.js';
|
|
39
40
|
import '../../chunk-TYNZ5B2B.js';
|
|
40
|
-
import '../../chunk-
|
|
41
|
+
import '../../chunk-JUKKXGHR.js';
|
|
41
42
|
import '../../chunk-AXW67SY7.js';
|
|
42
43
|
import '../../chunk-BYMOPN2S.js';
|
|
43
44
|
import '../../chunk-SKLEJJ6M.js';
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
export { MaintenancePage } from '../../chunk-J5DGBS7Q.js';
|
|
2
|
-
export { StoreClosedNotification } from '../../chunk-
|
|
3
|
-
export { LazyMaintenancePage, LazyStoreClosedNotification } from '../../chunk-
|
|
2
|
+
export { StoreClosedNotification } from '../../chunk-EZK2WD75.js';
|
|
3
|
+
export { LazyMaintenancePage, LazyStoreClosedNotification } from '../../chunk-QLFRNPPF.js';
|
|
4
4
|
import '../../chunk-MVNWWZWQ.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-XCS62X6X.js';
|
|
6
|
+
import '../../chunk-5U7LPEFE.js';
|
|
7
7
|
import '../../chunk-KQEBYXYB.js';
|
|
8
8
|
import '../../chunk-JYV25VNZ.js';
|
|
9
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-4LR7N76Q.js';
|
|
10
10
|
import '../../chunk-OXMUPNMH.js';
|
|
11
|
-
import '../../chunk-
|
|
11
|
+
import '../../chunk-GFOAMXSO.js';
|
|
12
12
|
import '../../chunk-VVZNW5CB.js';
|
|
13
13
|
import '../../chunk-5FJFN3IW.js';
|
|
14
14
|
import '../../chunk-GD26FI4J.js';
|
|
15
15
|
import '../../chunk-OM2GRPDH.js';
|
|
16
|
-
import '../../chunk-
|
|
16
|
+
import '../../chunk-HZIQK63A.js';
|
|
17
17
|
import '../../chunk-OUW6WESU.js';
|
|
18
18
|
import '../../chunk-BK5TBUGG.js';
|
|
19
19
|
import '../../chunk-HI5V5X3S.js';
|
|
20
|
-
import '../../chunk-
|
|
21
|
-
import '../../chunk-
|
|
20
|
+
import '../../chunk-U2UDXLAE.js';
|
|
21
|
+
import '../../chunk-6NT6RC2H.js';
|
|
22
22
|
import '../../chunk-MVT5AF2A.js';
|
|
23
23
|
import '../../chunk-Z653O7MX.js';
|
|
24
24
|
import '../../chunk-ZCH7W7DZ.js';
|
|
@@ -29,15 +29,16 @@ import '../../chunk-7V36I5GT.js';
|
|
|
29
29
|
import '../../chunk-6WI7R2BD.js';
|
|
30
30
|
import '../../chunk-JGVEGQHJ.js';
|
|
31
31
|
import '../../chunk-OAMIDZKW.js';
|
|
32
|
-
import '../../chunk-
|
|
32
|
+
import '../../chunk-2VRMQZXF.js';
|
|
33
33
|
import '../../chunk-OQIIJRAS.js';
|
|
34
34
|
import '../../chunk-V2ZDTY6H.js';
|
|
35
|
-
import '../../chunk-
|
|
35
|
+
import '../../chunk-5GCOUJ7T.js';
|
|
36
36
|
import '../../chunk-5XDPAKF5.js';
|
|
37
37
|
import '../../chunk-GCPEMNSU.js';
|
|
38
|
-
import '../../chunk-
|
|
38
|
+
import '../../chunk-S7QZUBXM.js';
|
|
39
|
+
import '../../chunk-Z5M4YYWT.js';
|
|
39
40
|
import '../../chunk-TYNZ5B2B.js';
|
|
40
|
-
import '../../chunk-
|
|
41
|
+
import '../../chunk-JUKKXGHR.js';
|
|
41
42
|
import '../../chunk-AXW67SY7.js';
|
|
42
43
|
import '../../chunk-BYMOPN2S.js';
|
|
43
44
|
import '../../chunk-SKLEJJ6M.js';
|
|
@@ -32,6 +32,12 @@ export interface DevEditorMeta {
|
|
|
32
32
|
saveStatus: DevSaveStatus;
|
|
33
33
|
/** The frame's store segment; `undefined` until the frame has said. */
|
|
34
34
|
frameBase: string | null | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* When the dev server last asked the API for the frame's store settings (epoch
|
|
37
|
+
* ms), which it reuses for a while (see `api/dev-settings-cache.ts`); `null`
|
|
38
|
+
* until the frame says.
|
|
39
|
+
*/
|
|
40
|
+
settingsFetchedAt: number | null;
|
|
35
41
|
}
|
|
36
42
|
/** Home loader spelling of a twilight.json path. */
|
|
37
43
|
export declare function blockPath(path: string): string;
|
|
@@ -52,6 +58,12 @@ export declare const devSettingsStore: {
|
|
|
52
58
|
setLiveBlocks(blocks: LiveBlocks | null): void;
|
|
53
59
|
/** Ask the frame for its home page's blocks and its store base. */
|
|
54
60
|
requestLiveBlocks(): void;
|
|
61
|
+
/**
|
|
62
|
+
* In the editor: a page loaded in the frame. The fetch time the last page
|
|
63
|
+
* reported says nothing about this one, and a page whose settings failed reports
|
|
64
|
+
* none, so it is dropped before this page is asked for its report.
|
|
65
|
+
*/
|
|
66
|
+
frameLoaded(): void;
|
|
55
67
|
/**
|
|
56
68
|
* Search the dev store through the editor's frame. Rejects when there is no
|
|
57
69
|
* frame, it doesn't answer in time, or the store refuses; pickers then fall
|
|
@@ -60,6 +72,8 @@ export declare const devSettingsStore: {
|
|
|
60
72
|
lookup(source: DevLookupSource, query: string): Promise<DevLookupItem[]>;
|
|
61
73
|
/** Scroll the editor's frame to the home block at `index`. */
|
|
62
74
|
focusBlock(index: number): void;
|
|
75
|
+
/** In the frame: tell the editor when the server fetched the settings this page rendered with. */
|
|
76
|
+
reportSettingsFetchedAt(at: number): void;
|
|
63
77
|
getMeta: () => DevEditorMeta;
|
|
64
78
|
subscribeMeta(listener: () => void): () => void;
|
|
65
79
|
/**
|
|
@@ -94,6 +108,12 @@ export declare function useDevSettingsState(): DevPreviewState;
|
|
|
94
108
|
* conditionally.
|
|
95
109
|
*/
|
|
96
110
|
export declare const useDevSettingsOverrides: () => DevPreviewState;
|
|
111
|
+
/**
|
|
112
|
+
* In the editor's frame: report when the dev server fetched this page's store
|
|
113
|
+
* settings, so the editor can say how old they are. A no-op in production, decided
|
|
114
|
+
* once at load like {@link useDevSettingsOverrides}.
|
|
115
|
+
*/
|
|
116
|
+
export declare const useDevReportSettingsFetchedAt: (at: number | undefined) => void;
|
|
97
117
|
/** A rendered home block; `__dev_id` keys a dev-layout block across reorders. */
|
|
98
118
|
export type DevHomeBlock<T> = T & {
|
|
99
119
|
__dev_id?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-settings-store.d.ts","sourceRoot":"","sources":["../../src/dev/dev-settings-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,OAAO,EAQL,KAAK,aAAa,EAClB,KAAK,eAAe,EAEpB,KAAK,eAAe,EACpB,KAAK,SAAS,EACf,MAAM,gBAAgB,CAAC;AAGxB,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAC/C,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;AAClE,KAAK,UAAU,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"dev-settings-store.d.ts","sourceRoot":"","sources":["../../src/dev/dev-settings-store.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeEditor.d.ts","sourceRoot":"","sources":["../../../src/dev/editor/ThemeEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAA4C,KAAK,YAAY,EAAkB,MAAM,OAAO,CAAC;AACpG,OAAO,EAAyB,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"ThemeEditor.d.ts","sourceRoot":"","sources":["../../../src/dev/editor/ThemeEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAA4C,KAAK,YAAY,EAAkB,MAAM,OAAO,CAAC;AACpG,OAAO,EAAyB,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AA6BxE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,SAAS,CAAC;IAClB,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA+YD,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,gBAAgB,GAAG,YAAY,CAsFnF"}
|
|
@@ -63,6 +63,9 @@ declare const en: {
|
|
|
63
63
|
minItems: (n: number) => string;
|
|
64
64
|
chooseImage: string;
|
|
65
65
|
imageTooLarge: string;
|
|
66
|
+
storeDataReused: string;
|
|
67
|
+
lastFetched: (ago: string) => string;
|
|
68
|
+
fetchFresh: string;
|
|
66
69
|
};
|
|
67
70
|
export type EditorStrings = typeof en;
|
|
68
71
|
export declare function stringsFor(locale: string): EditorStrings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/dev/editor/i18n.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,QAAA,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAoDK,MAAM;;;uBAGE,MAAM,QAAQ,MAAM;;;qBAQtB,MAAM;kBACT,MAAM
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/dev/editor/i18n.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,QAAA,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAoDK,MAAM;;;uBAGE,MAAM,QAAQ,MAAM;;;qBAQtB,MAAM;kBACT,MAAM;;;;uBAKD,MAAM;;CAE1B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,OAAO,EAAE,CAAC;AA4EtC,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CAExD;AAED,+EAA+E;AAC/E,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAGvF"}
|
package/dist/dev/editor/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { useDevEditorMeta, devSettingsStore, useDevSettingsState, blockPath } from '../../chunk-
|
|
1
|
+
import { useDevEditorMeta, devSettingsStore, useDevSettingsState, blockPath } from '../../chunk-4LR7N76Q.js';
|
|
2
2
|
import { conditionsMet, DEV_EDITOR_FRAME_ATTR, DEV_PREVIEW_IMAGE_MAX_BYTES, DEV_PREVIEW_IMAGE_ENDPOINT } from '../../chunk-OXMUPNMH.js';
|
|
3
|
+
import { requestFreshStoreSettings } from '../../chunk-Z5M4YYWT.js';
|
|
3
4
|
import '../../chunk-FHU2MXZA.js';
|
|
4
5
|
import '../../chunk-7VNVCHID.js';
|
|
5
6
|
import '../../chunk-T72DAX7R.js';
|
|
@@ -68,7 +69,10 @@ var en = {
|
|
|
68
69
|
addItem: (label) => `Add ${label}`,
|
|
69
70
|
minItems: (n) => `Needs at least ${n}.`,
|
|
70
71
|
chooseImage: "Choose an image from your computer",
|
|
71
|
-
imageTooLarge: "That image is over 5 MB. Use a smaller one, or paste its URL."
|
|
72
|
+
imageTooLarge: "That image is over 5 MB. Use a smaller one, or paste its URL.",
|
|
73
|
+
storeDataReused: "While you develop, the store's data is reused for up to an hour, to stay under the Salla API's rate limit.",
|
|
74
|
+
lastFetched: (ago) => `Last fetched ${ago}.`,
|
|
75
|
+
fetchFresh: "Fetch fresh store data"
|
|
72
76
|
};
|
|
73
77
|
var ar = {
|
|
74
78
|
homePage: "\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",
|
|
@@ -129,7 +133,10 @@ var ar = {
|
|
|
129
133
|
addItem: (label) => `\u0625\u0636\u0627\u0641\u0629 ${label}`,
|
|
130
134
|
minItems: (n) => `\u064A\u0644\u0632\u0645 ${n} \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644.`,
|
|
131
135
|
chooseImage: "\u0627\u062E\u062A\u064A\u0627\u0631 \u0635\u0648\u0631\u0629 \u0645\u0646 \u062C\u0647\u0627\u0632\u0643",
|
|
132
|
-
imageTooLarge: "\u062D\u062C\u0645 \u0627\u0644\u0635\u0648\u0631\u0629 \u0623\u0643\u0628\u0631 \u0645\u0646 5 \u0645\u064A\u062C\u0627\u0628\u0627\u064A\u062A. \u0627\u0633\u062A\u062E\u062F\u0645 \u0635\u0648\u0631\u0629 \u0623\u0635\u063A\u0631 \u0623\u0648 \u0627\u0644\u0635\u0642 \u0631\u0627\u0628\u0637\u0647\u0627."
|
|
136
|
+
imageTooLarge: "\u062D\u062C\u0645 \u0627\u0644\u0635\u0648\u0631\u0629 \u0623\u0643\u0628\u0631 \u0645\u0646 5 \u0645\u064A\u062C\u0627\u0628\u0627\u064A\u062A. \u0627\u0633\u062A\u062E\u062F\u0645 \u0635\u0648\u0631\u0629 \u0623\u0635\u063A\u0631 \u0623\u0648 \u0627\u0644\u0635\u0642 \u0631\u0627\u0628\u0637\u0647\u0627.",
|
|
137
|
+
storeDataReused: "\u0623\u062B\u0646\u0627\u0621 \u0627\u0644\u062A\u0637\u0648\u064A\u0631 \u062A\u064F\u0633\u062A\u062E\u062F\u0645 \u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0645\u062A\u062C\u0631 \u0646\u0641\u0633\u0647\u0627 \u0644\u0645\u062F\u0629 \u062A\u0635\u0644 \u0625\u0644\u0649 \u0633\u0627\u0639\u0629\u060C \u0643\u064A \u0644\u0627 \u062A\u062A\u062C\u0627\u0648\u0632 \u062D\u062F\u0651 \u0627\u0644\u0637\u0644\u0628\u0627\u062A \u0641\u064A \u0648\u0627\u062C\u0647\u0629 Salla \u0627\u0644\u0628\u0631\u0645\u062C\u064A\u0629.",
|
|
138
|
+
lastFetched: (ago) => `\u0622\u062E\u0631 \u062C\u0644\u0628: ${ago}.`,
|
|
139
|
+
fetchFresh: "\u062C\u0644\u0628 \u0623\u062D\u062F\u062B \u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0645\u062A\u062C\u0631"
|
|
133
140
|
};
|
|
134
141
|
var STRINGS = { ar, en };
|
|
135
142
|
function stringsFor(locale) {
|
|
@@ -1425,6 +1432,21 @@ function SettingsPanel({
|
|
|
1425
1432
|
] });
|
|
1426
1433
|
}
|
|
1427
1434
|
|
|
1435
|
+
// src/dev/editor/relative-time.ts
|
|
1436
|
+
function timeAgo(then, now, locale) {
|
|
1437
|
+
const format = new Intl.RelativeTimeFormat(locale === "ar" ? "ar-u-nu-latn" : locale, {
|
|
1438
|
+
numeric: "auto"
|
|
1439
|
+
});
|
|
1440
|
+
const seconds = Math.max(0, Math.floor((now - then) / 1e3));
|
|
1441
|
+
if (seconds < 10) return format.format(0, "second");
|
|
1442
|
+
if (seconds < 60) return format.format(-seconds, "second");
|
|
1443
|
+
const minutes = Math.floor(seconds / 60);
|
|
1444
|
+
if (minutes < 60) return format.format(-minutes, "minute");
|
|
1445
|
+
const hours = Math.floor(minutes / 60);
|
|
1446
|
+
if (hours < 24) return format.format(-hours, "hour");
|
|
1447
|
+
return format.format(-Math.floor(hours / 24), "day");
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1428
1450
|
// src/dev/editor/paths.ts
|
|
1429
1451
|
var LOCALES = ["ar", "en"];
|
|
1430
1452
|
function isLocale(segment) {
|
|
@@ -1603,6 +1625,10 @@ code { font-size: 11.5px; background: var(--te-row); padding: 1px 4px; border-ra
|
|
|
1603
1625
|
.te-panel__actions { padding: 0 12px 4px; border-top: 1px solid var(--te-border); }
|
|
1604
1626
|
.te-panel__actions .te-btn { margin-top: 8px; }
|
|
1605
1627
|
.te-panel__foot { padding: 10px 16px; border-top: 1px solid var(--te-border); font-size: 11.5px; color: var(--te-faint); }
|
|
1628
|
+
.te-panel__foot--fresh { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; line-height: 1.5; }
|
|
1629
|
+
.te-panel__fetched { color: var(--te-sub); }
|
|
1630
|
+
.te-link-btn { border: none; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--te-accent); cursor: pointer; }
|
|
1631
|
+
.te-link-btn:hover { text-decoration: underline; }
|
|
1606
1632
|
|
|
1607
1633
|
.te-section-title {
|
|
1608
1634
|
font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
|
|
@@ -1767,6 +1793,7 @@ var DEVICE_KEY = "twilight:editor-device";
|
|
|
1767
1793
|
var PANEL_KEY = "twilight:editor-panel";
|
|
1768
1794
|
var PANEL_ID = "te-panel";
|
|
1769
1795
|
var PATH_POLL_MS = 500;
|
|
1796
|
+
var FETCHED_TICK_MS = 15e3;
|
|
1770
1797
|
function readDevice() {
|
|
1771
1798
|
if (typeof window === "undefined") return "mobile";
|
|
1772
1799
|
try {
|
|
@@ -1968,6 +1995,38 @@ function TopBar({
|
|
|
1968
1995
|
] })
|
|
1969
1996
|
] });
|
|
1970
1997
|
}
|
|
1998
|
+
function useNow(everyMs) {
|
|
1999
|
+
const [now, setNow] = useState(() => Date.now());
|
|
2000
|
+
useEffect(() => {
|
|
2001
|
+
const timer = setInterval(() => setNow(Date.now()), everyMs);
|
|
2002
|
+
return () => clearInterval(timer);
|
|
2003
|
+
}, [everyMs]);
|
|
2004
|
+
return now;
|
|
2005
|
+
}
|
|
2006
|
+
function FreshStoreData({
|
|
2007
|
+
t,
|
|
2008
|
+
locale,
|
|
2009
|
+
onReload
|
|
2010
|
+
}) {
|
|
2011
|
+
const { settingsFetchedAt } = useDevEditorMeta();
|
|
2012
|
+
const now = useNow(FETCHED_TICK_MS);
|
|
2013
|
+
return /* @__PURE__ */ jsxs("div", { className: "te-panel__foot te-panel__foot--fresh", children: [
|
|
2014
|
+
/* @__PURE__ */ jsx("span", { children: t.storeDataReused }),
|
|
2015
|
+
settingsFetchedAt != null && /* @__PURE__ */ jsx("span", { className: "te-panel__fetched", children: t.lastFetched(timeAgo(settingsFetchedAt, now, locale)) }),
|
|
2016
|
+
/* @__PURE__ */ jsx(
|
|
2017
|
+
"button",
|
|
2018
|
+
{
|
|
2019
|
+
type: "button",
|
|
2020
|
+
className: "te-link-btn",
|
|
2021
|
+
onClick: () => {
|
|
2022
|
+
requestFreshStoreSettings();
|
|
2023
|
+
onReload();
|
|
2024
|
+
},
|
|
2025
|
+
children: t.fetchFresh
|
|
2026
|
+
}
|
|
2027
|
+
)
|
|
2028
|
+
] });
|
|
2029
|
+
}
|
|
1971
2030
|
function PreviewCanvas({
|
|
1972
2031
|
frameRef,
|
|
1973
2032
|
frameKey,
|
|
@@ -1982,7 +2041,7 @@ function PreviewCanvas({
|
|
|
1982
2041
|
src,
|
|
1983
2042
|
title,
|
|
1984
2043
|
className: `te-frame te-frame--${device}`,
|
|
1985
|
-
onLoad: () => devSettingsStore.
|
|
2044
|
+
onLoad: () => devSettingsStore.frameLoaded(),
|
|
1986
2045
|
...{ [DEV_EDITOR_FRAME_ATTR]: "" }
|
|
1987
2046
|
},
|
|
1988
2047
|
frameKey
|
|
@@ -2099,6 +2158,7 @@ function ThemeEditor({ schema, initialPath }) {
|
|
|
2099
2158
|
onAddElement: panels.openAdding
|
|
2100
2159
|
}
|
|
2101
2160
|
) : /* @__PURE__ */ jsx(SettingsPanel, { schema, t }),
|
|
2161
|
+
/* @__PURE__ */ jsx(FreshStoreData, { t, locale, onReload: () => navigate(path) }),
|
|
2102
2162
|
/* @__PURE__ */ jsxs("div", { className: "te-panel__foot", children: [
|
|
2103
2163
|
t.savedTo,
|
|
2104
2164
|
" ",
|