@salla.sa/twilight-theme-engine 1.0.0-beta.9 → 1.0.0
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-VS67AFNL.js → AddToCartForm-H4K4VS3M.js} +24 -25
- package/dist/AddToCartForm-H4K4VS3M.js.map +1 -0
- package/dist/{BlogAuthorPage-276K2KQS.js → BlogAuthorPage-FN4XX2OK.js} +30 -27
- package/dist/BlogAuthorPage-FN4XX2OK.js.map +1 -0
- package/dist/{BlogCategoryPage-GF5PLRG7.js → BlogCategoryPage-MUHIK4WT.js} +30 -27
- package/dist/BlogCategoryPage-MUHIK4WT.js.map +1 -0
- package/dist/{BlogPage-BU672BXD.js → BlogPage-ZG655QM7.js} +33 -24
- package/dist/BlogPage-ZG655QM7.js.map +1 -0
- package/dist/{BlogSinglePage-ELV4S5EV.js → BlogSinglePage-FLVGIIL7.js} +25 -23
- package/dist/BlogSinglePage-FLVGIIL7.js.map +1 -0
- package/dist/{BlogTagPage-TXQP6ZOI.js → BlogTagPage-ETQGMVW3.js} +30 -27
- package/dist/BlogTagPage-ETQGMVW3.js.map +1 -0
- package/dist/{BrandsPage-C6ZHC4KC.js → BrandsPage-BCJWSKQ4.js} +24 -23
- package/dist/BrandsPage-BCJWSKQ4.js.map +1 -0
- package/dist/{Breadcrumb-TG4UTNRM.js → Breadcrumb-4AANUEKN.js} +24 -23
- package/dist/Breadcrumb-4AANUEKN.js.map +1 -0
- package/dist/{CartItem-55JV6HDS.js → CartItem-VMYGVMOT.js} +27 -26
- package/dist/CartItem-VMYGVMOT.js.map +1 -0
- package/dist/{CartSummary-CUWMHHMD.js → CartSummary-W7H5YTN6.js} +24 -23
- package/dist/CartSummary-W7H5YTN6.js.map +1 -0
- package/dist/Copyright-VREW3OTU.js +9 -0
- package/dist/{Copyright-PG76AVV6.js.map → Copyright-VREW3OTU.js.map} +1 -1
- package/dist/{CustomerLayout-SLNVCNZ6.js → CustomerLayout-HI3MHMOJ.js} +24 -23
- package/dist/CustomerLayout-HI3MHMOJ.js.map +1 -0
- package/dist/ErrorPage-XGBROULF.js +6 -0
- package/dist/{ErrorPage-TK4U3ENF.js.map → ErrorPage-XGBROULF.js.map} +1 -1
- package/dist/Footer-66XHPADY.js +40 -0
- package/dist/{Footer-MZDSEK57.js.map → Footer-66XHPADY.js.map} +1 -1
- package/dist/Header-TZX55FDN.js +15 -0
- package/dist/{Header-CXFKDTOA.js.map → Header-TZX55FDN.js.map} +1 -1
- package/dist/ImageModal-LHFSYPSU.js +32 -0
- package/dist/ImageModal-LHFSYPSU.js.map +1 -0
- package/dist/{LoyaltyPage-AIA3CUYI.js → LoyaltyPage-JN2KJC7E.js} +29 -28
- package/dist/LoyaltyPage-JN2KJC7E.js.map +1 -0
- package/dist/{MainMenu-T3M5RB7L.js → MainMenu-M2SHKHOK.js} +16 -37
- package/dist/MainMenu-M2SHKHOK.js.map +1 -0
- package/dist/MasterLayout-2346V2WQ.js +40 -0
- package/dist/{MasterLayout-QUBHRA32.js.map → MasterLayout-2346V2WQ.js.map} +1 -1
- package/dist/{MobileMenu-6D52JOQA.js → MobileMenu-LTGCUCOZ.js} +47 -60
- package/dist/MobileMenu-LTGCUCOZ.js.map +1 -0
- package/dist/{NotificationsPage-6H45SAS7.js → NotificationsPage-6D7WS3H2.js} +24 -23
- package/dist/NotificationsPage-6D7WS3H2.js.map +1 -0
- package/dist/{OrderSinglePage-GP2M3YVH.js → OrderSinglePage-NAZY23SD.js} +73 -61
- package/dist/OrderSinglePage-NAZY23SD.js.map +1 -0
- package/dist/{OrdersPage-OQGJLTQP.js → OrdersPage-ARIDUNIW.js} +25 -24
- package/dist/OrdersPage-ARIDUNIW.js.map +1 -0
- package/dist/{PageSingle-44NVAUIT.js → PageSingle-X7FAYXMH.js} +3 -3
- package/dist/{PageSingle-44NVAUIT.js.map → PageSingle-X7FAYXMH.js.map} +1 -1
- package/dist/{PreOrderNotification-ZVTGNV7K.js → PreOrderNotification-OP57EA6F.js} +3 -3
- package/dist/PreOrderNotification-OP57EA6F.js.map +1 -0
- package/dist/{PriceQuoteButton-RAAPL4N4.js → PriceQuoteButton-CGRNHY3E.js} +6 -6
- package/dist/PriceQuoteButton-CGRNHY3E.js.map +1 -0
- package/dist/{ProductDetails-2JUCRU4W.js → ProductDetails-M5DBXW7K.js} +11 -10
- package/dist/ProductDetails-M5DBXW7K.js.map +1 -0
- package/dist/{ProfilePage-XGZ2HCQH.js → ProfilePage-YMFZQIKT.js} +24 -23
- package/dist/ProfilePage-YMFZQIKT.js.map +1 -0
- package/dist/{SeoCartWidget-PDK6IQ2H.js → SeoCartWidget-VVDUBWCT.js} +24 -23
- package/dist/SeoCartWidget-VVDUBWCT.js.map +1 -0
- package/dist/{SettingsPage-VCQNV2PP.js → SettingsPage-P7H7MQHU.js} +24 -23
- package/dist/SettingsPage-P7H7MQHU.js.map +1 -0
- package/dist/StoreClosedNotification-4WCOB6Y6.js +41 -0
- package/dist/{StoreClosedNotification-3JRNBNQK.js.map → StoreClosedNotification-4WCOB6Y6.js.map} +1 -1
- package/dist/{TestimonialsPage-ENMVJ4QG.js → TestimonialsPage-OYWHHUB3.js} +4 -4
- package/dist/TestimonialsPage-OYWHHUB3.js.map +1 -0
- package/dist/{ThankYouPage-4FTP6E2Y.js → ThankYouPage-XSZXBUV3.js} +32 -26
- package/dist/ThankYouPage-XSZXBUV3.js.map +1 -0
- package/dist/{WalletPage-VKV44EEG.js → WalletPage-EPD22OHW.js} +25 -24
- package/dist/WalletPage-EPD22OHW.js.map +1 -0
- package/dist/WidgetHead-RWL7D3CT.js +7 -0
- package/dist/{WidgetHead-FXEPCB23.js.map → WidgetHead-RWL7D3CT.js.map} +1 -1
- package/dist/{WishlistPage-GJZCXQUY.js → WishlistPage-I27GDNTK.js} +25 -24
- package/dist/WishlistPage-I27GDNTK.js.map +1 -0
- package/dist/ambient/virtual-modules.d.ts +28 -0
- package/dist/api/apps.js +2 -2
- package/dist/api/brands.js +5 -34
- package/dist/api/cart.js +5 -34
- package/dist/api/category.js +5 -34
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +2 -2
- package/dist/api/home.js +3 -3
- package/dist/api/loyalty.js +5 -34
- package/dist/api/menu.js +3 -3
- package/dist/api/notification.js +3 -3
- package/dist/api/order.js +5 -34
- package/dist/api/page.js +5 -34
- package/dist/api/product.js +5 -34
- package/dist/api/profile.js +2 -2
- package/dist/api/store.js +3 -3
- package/dist/api/translations.d.ts +1 -1
- package/dist/api/translations.d.ts.map +1 -1
- package/dist/api/translations.js +3 -3
- package/dist/api/user.js +3 -3
- package/dist/api/wishlist.js +3 -3
- package/dist/chunk-2JV6WZ6O.js +136 -0
- package/dist/chunk-2JV6WZ6O.js.map +1 -0
- package/dist/{chunk-TQUHDSKQ.js → chunk-2TB2LTL2.js} +3 -11
- package/dist/chunk-2TB2LTL2.js.map +1 -0
- package/dist/{chunk-JIJOXZPF.js → chunk-2ZRLSZ4V.js} +6 -12
- package/dist/chunk-2ZRLSZ4V.js.map +1 -0
- package/dist/{chunk-433EFDBW.js → chunk-3OAVM4PY.js} +4 -4
- package/dist/chunk-3OAVM4PY.js.map +1 -0
- package/dist/{chunk-S6AVEFCN.js → chunk-4LGAJDZV.js} +19 -12
- package/dist/chunk-4LGAJDZV.js.map +1 -0
- package/dist/{chunk-GFMVML6I.js → chunk-6D7SF3YR.js} +3 -3
- package/dist/{chunk-GFMVML6I.js.map → chunk-6D7SF3YR.js.map} +1 -1
- package/dist/{chunk-THXWAZX2.js → chunk-6JMXDZXL.js} +12 -17
- package/dist/chunk-6JMXDZXL.js.map +1 -0
- package/dist/{chunk-FCZRF6DB.js → chunk-6NBBXERE.js} +3 -3
- package/dist/{chunk-FCZRF6DB.js.map → chunk-6NBBXERE.js.map} +1 -1
- package/dist/{chunk-5DZ7HLSO.js → chunk-6Q5BFHFA.js} +3 -3
- package/dist/{chunk-5DZ7HLSO.js.map → chunk-6Q5BFHFA.js.map} +1 -1
- package/dist/{chunk-XHGF75TM.js → chunk-6TKIUG5C.js} +11 -4
- package/dist/chunk-6TKIUG5C.js.map +1 -0
- package/dist/{chunk-TQLEQSXE.js → chunk-6Z4MOC4S.js} +3 -19
- package/dist/chunk-6Z4MOC4S.js.map +1 -0
- package/dist/{chunk-SUFCEN4T.js → chunk-7LP7D75V.js} +3 -3
- package/dist/{chunk-SUFCEN4T.js.map → chunk-7LP7D75V.js.map} +1 -1
- package/dist/{chunk-GS3G4O2R.js → chunk-7O5DYSLX.js} +4 -4
- package/dist/chunk-7O5DYSLX.js.map +1 -0
- package/dist/{chunk-EB7X4YMZ.js → chunk-7UZEHQEQ.js} +4 -4
- package/dist/{chunk-EB7X4YMZ.js.map → chunk-7UZEHQEQ.js.map} +1 -1
- package/dist/{chunk-D4SRWUMH.js → chunk-B2NXQJEO.js} +4 -4
- package/dist/{chunk-D4SRWUMH.js.map → chunk-B2NXQJEO.js.map} +1 -1
- package/dist/{chunk-2FU6CVSB.js → chunk-C5X6CVXC.js} +3 -3
- package/dist/{chunk-2FU6CVSB.js.map → chunk-C5X6CVXC.js.map} +1 -1
- package/dist/chunk-CUG6VOLM.js +10 -0
- package/dist/{chunk-3DCZJDDK.js.map → chunk-CUG6VOLM.js.map} +1 -1
- package/dist/{chunk-BWFBVXT3.js → chunk-DF6FBKDN.js} +2 -2
- package/dist/chunk-DF6FBKDN.js.map +1 -0
- package/dist/{chunk-GTM2GV2N.js → chunk-DIVL44G5.js} +65 -43
- package/dist/chunk-DIVL44G5.js.map +1 -0
- package/dist/{chunk-YRKMHN7W.js → chunk-EHKTHLXK.js} +3 -3
- package/dist/{chunk-YRKMHN7W.js.map → chunk-EHKTHLXK.js.map} +1 -1
- package/dist/{chunk-P43TLDS6.js → chunk-ENIGLGGV.js} +6 -6
- package/dist/chunk-ENIGLGGV.js.map +1 -0
- package/dist/{chunk-UE3BUFZI.js → chunk-FZKRSGLP.js} +3 -3
- package/dist/{chunk-UE3BUFZI.js.map → chunk-FZKRSGLP.js.map} +1 -1
- package/dist/{chunk-C5GWTTB6.js → chunk-GQG4KE5Z.js} +4 -4
- package/dist/chunk-GQG4KE5Z.js.map +1 -0
- package/dist/{chunk-J37AYLWL.js → chunk-GU2KUQVD.js} +4 -3
- package/dist/chunk-GU2KUQVD.js.map +1 -0
- package/dist/{chunk-SVZOWI7E.js → chunk-HTGBIA7K.js} +3 -6
- package/dist/chunk-HTGBIA7K.js.map +1 -0
- package/dist/{chunk-ZZ7Q5LEG.js → chunk-HWVEOUG4.js} +3 -3
- package/dist/{chunk-ZZ7Q5LEG.js.map → chunk-HWVEOUG4.js.map} +1 -1
- package/dist/{chunk-3UHSMGPY.js → chunk-HX3YKS5W.js} +9 -3
- package/dist/chunk-HX3YKS5W.js.map +1 -0
- package/dist/{chunk-WA5QBFRU.js → chunk-I5Z4NJBB.js} +4 -4
- package/dist/{chunk-WA5QBFRU.js.map → chunk-I5Z4NJBB.js.map} +1 -1
- package/dist/{chunk-TWAHYRKI.js → chunk-IWMGDYNN.js} +4 -4
- package/dist/chunk-IWMGDYNN.js.map +1 -0
- package/dist/{chunk-TFZ2RT6P.js → chunk-JKIRRMBU.js} +3 -3
- package/dist/chunk-JKIRRMBU.js.map +1 -0
- package/dist/{chunk-YU36GBMB.js → chunk-KCKHA75V.js} +3 -3
- package/dist/{chunk-YU36GBMB.js.map → chunk-KCKHA75V.js.map} +1 -1
- package/dist/{chunk-W4CSWDEH.js → chunk-KIPZQN3Y.js} +2 -7
- package/dist/chunk-KIPZQN3Y.js.map +1 -0
- package/dist/{chunk-2SUOZEX2.js → chunk-KJRALAYM.js} +3 -3
- package/dist/chunk-KJRALAYM.js.map +1 -0
- package/dist/{chunk-SAZBQNQK.js → chunk-KZDE3XKU.js} +7 -7
- package/dist/chunk-KZDE3XKU.js.map +1 -0
- package/dist/{chunk-O7Z6BIPP.js → chunk-LSDIFHXZ.js} +4 -4
- package/dist/{chunk-O7Z6BIPP.js.map → chunk-LSDIFHXZ.js.map} +1 -1
- package/dist/{chunk-7RVUSB5C.js → chunk-NBHI5X36.js} +4 -4
- package/dist/{chunk-7RVUSB5C.js.map → chunk-NBHI5X36.js.map} +1 -1
- package/dist/{chunk-UIX3W2PN.js → chunk-OAMIDZKW.js} +3 -3
- package/dist/chunk-OAMIDZKW.js.map +1 -0
- package/dist/{chunk-MXQCE3KA.js → chunk-OBSAH7K6.js} +4 -45
- package/dist/chunk-OBSAH7K6.js.map +1 -0
- package/dist/{chunk-IILTG4A6.js → chunk-P26QKBJC.js} +84 -63
- package/dist/chunk-P26QKBJC.js.map +1 -0
- package/dist/chunk-Q5YIGQTT.js +14 -0
- package/dist/{chunk-ZOCDYJPX.js.map → chunk-Q5YIGQTT.js.map} +1 -1
- package/dist/{chunk-25SSLQAJ.js → chunk-Q7VWURUR.js} +5 -12
- package/dist/chunk-Q7VWURUR.js.map +1 -0
- package/dist/{chunk-SSQ75CKA.js → chunk-RINZVHVS.js} +4 -4
- package/dist/chunk-RINZVHVS.js.map +1 -0
- package/dist/{chunk-RYBA3JDM.js → chunk-RJPPO3ET.js} +4 -4
- package/dist/{chunk-RYBA3JDM.js.map → chunk-RJPPO3ET.js.map} +1 -1
- package/dist/{chunk-Q6MQLAYL.js → chunk-TCSNNCRH.js} +3 -3
- package/dist/{chunk-Q6MQLAYL.js.map → chunk-TCSNNCRH.js.map} +1 -1
- package/dist/{chunk-GOYYO4NI.js → chunk-TP3LCGE7.js} +2 -2
- package/dist/{chunk-GOYYO4NI.js.map → chunk-TP3LCGE7.js.map} +1 -1
- package/dist/{chunk-U33UQAWO.js → chunk-TSAQIQCD.js} +10 -9
- package/dist/chunk-TSAQIQCD.js.map +1 -0
- package/dist/{chunk-VVRYP6IL.js → chunk-TYNZ5B2B.js} +2 -2
- package/dist/chunk-TYNZ5B2B.js.map +1 -0
- package/dist/{chunk-CI4HKXVH.js → chunk-W6HFR7YA.js} +4 -4
- package/dist/chunk-W6HFR7YA.js.map +1 -0
- package/dist/{chunk-REQC7YOE.js → chunk-WUTGBZQR.js} +9 -14
- package/dist/chunk-WUTGBZQR.js.map +1 -0
- package/dist/{chunk-4AYOFKHU.js → chunk-XK42WXU5.js} +3 -3
- package/dist/chunk-XK42WXU5.js.map +1 -0
- package/dist/{chunk-HL3HSO4R.js → chunk-Y62QQRYP.js} +5 -5
- package/dist/chunk-Y62QQRYP.js.map +1 -0
- package/dist/{chunk-FBFPH5BB.js → chunk-Z4Y55HWX.js} +8 -8
- package/dist/chunk-Z4Y55HWX.js.map +1 -0
- package/dist/{chunk-6LQFMCWK.js → chunk-ZNOJPVX3.js} +4 -4
- package/dist/chunk-ZNOJPVX3.js.map +1 -0
- package/dist/components/cart/CartItem.d.ts.map +1 -1
- package/dist/components/cart/PriceQuoteButton.d.ts.map +1 -1
- package/dist/components/cart/index.js +1 -1
- package/dist/components/collapse/Collapse.d.ts +2 -2
- package/dist/components/collapse/Collapse.d.ts.map +1 -1
- package/dist/components/collapse/index.js +3 -3
- package/dist/components/collapse/index.js.map +1 -1
- package/dist/components/common/DeferredData.d.ts +0 -1
- package/dist/components/common/DeferredData.d.ts.map +1 -1
- package/dist/components/common/ErrorPage.d.ts.map +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/drawer/Drawer.d.ts.map +1 -1
- package/dist/components/drawer/index.js +23 -22
- package/dist/components/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/dropdown/index.js +17 -1
- package/dist/components/dropdown/index.js.map +1 -1
- package/dist/components/home/ComponentErrorBoundary.d.ts +1 -1
- package/dist/components/home/ComponentErrorBoundary.d.ts.map +1 -1
- package/dist/components/home/PhotosSlider.d.ts +1 -0
- package/dist/components/home/PhotosSlider.d.ts.map +1 -1
- package/dist/components/home/SquarePhotos.d.ts +1 -0
- package/dist/components/home/SquarePhotos.d.ts.map +1 -1
- package/dist/components/home/StoreFeatures.d.ts.map +1 -1
- package/dist/components/home/index.js +25 -24
- package/dist/components/layout/Header.d.ts.map +1 -1
- package/dist/components/layout/index.js +10 -10
- package/dist/components/modal/ImageModal.d.ts.map +1 -1
- package/dist/components/modal/Modal.d.ts.map +1 -1
- package/dist/components/modal/index.js +2 -2
- package/dist/components/navigation/MainMenu.d.ts.map +1 -1
- package/dist/components/navigation/MobileMenu.d.ts +1 -1
- package/dist/components/navigation/MobileMenu.d.ts.map +1 -1
- package/dist/components/product/AddToCartForm.d.ts +1 -1
- package/dist/components/product/AddToCartForm.d.ts.map +1 -1
- package/dist/components/product/ProductGallery.d.ts.map +1 -1
- package/dist/components/product/index.js +23 -22
- package/dist/components/store/index.js +24 -23
- package/dist/components/store/index.js.map +1 -1
- package/dist/components/toast/index.js +47 -2
- package/dist/components/toast/index.js.map +1 -1
- package/dist/dev/DevSettingsWidget.d.ts +19 -0
- package/dist/dev/DevSettingsWidget.d.ts.map +1 -0
- package/dist/dev/dev-settings-store.d.ts +62 -0
- package/dist/dev/dev-settings-store.d.ts.map +1 -0
- package/dist/dev/index.d.ts +9 -0
- package/dist/dev/index.d.ts.map +1 -0
- package/dist/dev/index.js +330 -0
- package/dist/dev/index.js.map +1 -0
- package/dist/dev/schema-types.d.ts +43 -0
- package/dist/dev/schema-types.d.ts.map +1 -0
- package/dist/document-class-WLNCTQI2.js +21 -0
- package/dist/{document-class-V5XSWLMX.js.map → document-class-WLNCTQI2.js.map} +1 -1
- package/dist/hooks/HookRegistry.d.ts +1 -0
- package/dist/hooks/HookRegistry.d.ts.map +1 -1
- package/dist/hooks/HookRegistry.js +1 -1
- package/dist/hooks/HookSlot.d.ts +1 -1
- package/dist/hooks/HookSlot.d.ts.map +1 -1
- package/dist/hooks/HookSlot.js +3 -3
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +22 -21
- package/dist/hooks/useBlogLike.js +2 -2
- package/dist/hooks/useGtm.js +22 -21
- package/dist/hooks/useHook.js +2 -2
- package/dist/hooks/useMoney.d.ts.map +1 -1
- package/dist/hooks/useMoney.js +22 -21
- package/dist/hooks/useNumber.d.ts.map +1 -1
- package/dist/hooks/useStore.js +22 -21
- package/dist/hooks/useTheme.js +2 -2
- package/dist/hooks/useUser.js +4 -4
- package/dist/i18n.d.ts +1 -1
- package/dist/i18n.js +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -21
- package/dist/index.js.map +1 -1
- package/dist/navigation-ZCEGLIHD.js +10 -0
- package/dist/{navigation-77T2NTFS.js.map → navigation-ZCEGLIHD.js.map} +1 -1
- package/dist/{navigation-JPUI67XY.js → navigation-ZIULIDFF.js} +6 -6
- package/dist/{navigation-JPUI67XY.js.map → navigation-ZIULIDFF.js.map} +1 -1
- package/dist/nextjs/index.d.ts +1 -2
- package/dist/nextjs/index.d.ts.map +1 -1
- package/dist/nextjs/link.d.ts +0 -4
- package/dist/nextjs/link.d.ts.map +1 -1
- package/dist/nextjs/router.d.ts +0 -6
- package/dist/nextjs/router.d.ts.map +1 -1
- package/dist/nextjs.js +2 -7
- package/dist/nextjs.js.map +1 -1
- package/dist/{not-found-73ZVE5QO.js → not-found-GRNEMF22.js} +24 -23
- package/dist/not-found-GRNEMF22.js.map +1 -0
- package/dist/providers/{i18n.d.ts → I18nProvider.d.ts} +1 -1
- package/dist/providers/I18nProvider.d.ts.map +1 -0
- package/dist/providers/NavigationProvider.d.ts +1 -4
- package/dist/providers/NavigationProvider.d.ts.map +1 -1
- package/dist/providers/TwilightProvider.d.ts +1 -1
- package/dist/providers/TwilightProvider.d.ts.map +1 -1
- package/dist/providers/index.js +22 -21
- package/dist/providers/navigation-setups.d.ts +5 -0
- package/dist/providers/navigation-setups.d.ts.map +1 -0
- package/dist/providers/twilight-context.d.ts +1 -1
- package/dist/providers/twilight-context.d.ts.map +1 -1
- package/dist/providers/twilight-init.d.ts +1 -2
- package/dist/providers/twilight-init.d.ts.map +1 -1
- package/dist/routes/account/orders/OrderSinglePage.d.ts.map +1 -1
- package/dist/routes/account/orders.js +6 -35
- package/dist/routes/account.js +14 -43
- package/dist/routes/account.js.map +1 -1
- package/dist/routes/blog/BlogAuthorPage.d.ts.map +1 -1
- package/dist/routes/blog/BlogCategoryPage.d.ts.map +1 -1
- package/dist/routes/blog/BlogPage.d.ts +1 -1
- package/dist/routes/blog/BlogPage.d.ts.map +1 -1
- package/dist/routes/blog/BlogSinglePage.d.ts.map +1 -1
- package/dist/routes/blog/BlogTagPage.d.ts.map +1 -1
- package/dist/routes/blog.js +10 -39
- package/dist/routes/blog.js.map +1 -1
- package/dist/routes/brands.js +6 -35
- package/dist/routes/brands.js.map +1 -1
- package/dist/routes/cart.js +30 -29
- package/dist/routes/cart.js.map +1 -1
- package/dist/routes/home/HomePage.d.ts.map +1 -1
- package/dist/routes/home.js +27 -26
- package/dist/routes/index.d.ts +2 -2
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +5 -35
- package/dist/routes/loyalty.js +6 -35
- package/dist/routes/loyalty.js.map +1 -1
- package/dist/routes/page.js +6 -35
- package/dist/routes/page.js.map +1 -1
- package/dist/routes/product-listing/ProductListPage.d.ts.map +1 -1
- package/dist/routes/product-listing.js +30 -32
- package/dist/routes/product-listing.js.map +1 -1
- package/dist/routes/product.js +25 -24
- package/dist/routes/product.js.map +1 -1
- package/dist/routes/root/beforeLoad.d.ts +0 -2
- package/dist/routes/root/beforeLoad.d.ts.map +1 -1
- package/dist/routes/seo-redirects.js +4 -35
- package/dist/routes/testimonials.js +2 -2
- package/dist/routes/thank-you/ThankYouPage.d.ts +1 -1
- package/dist/routes/thank-you/ThankYouPage.d.ts.map +1 -1
- package/dist/routes/thank-you.js +6 -35
- package/dist/routes/thank-you.js.map +1 -1
- package/dist/skeleton.js +27 -26
- package/dist/tanstack/middleware/twilight.d.ts.map +1 -1
- package/dist/tanstack/router.d.ts +0 -3
- package/dist/tanstack/router.d.ts.map +1 -1
- package/dist/tanstack.js +16 -31
- package/dist/tanstack.js.map +1 -1
- package/dist/twilight/context.d.ts +0 -1
- package/dist/twilight/context.d.ts.map +1 -1
- package/dist/types/hooks.d.ts +1 -0
- package/dist/types/hooks.d.ts.map +1 -1
- package/dist/types/hooks.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/{providers/salla-sdk.types.d.ts → types/salla-sdk.d.ts} +3 -1
- package/dist/types/salla-sdk.d.ts.map +1 -0
- package/dist/{providers/twilight.types.d.ts → types/twilight.d.ts} +4 -5
- package/dist/types/twilight.d.ts.map +1 -0
- package/dist/utils/breadcrumb.d.ts +0 -1
- package/dist/utils/breadcrumb.d.ts.map +1 -1
- package/dist/utils/engine-version.d.ts +10 -0
- package/dist/utils/engine-version.d.ts.map +1 -0
- package/dist/utils/index.js +21 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/vite/adapters/tanstack.adapter.d.ts.map +1 -1
- package/dist/vite/index.js +174 -4
- package/dist/vite/index.js.map +1 -1
- package/dist/vite/plugins/twilight-schema.d.ts +18 -0
- package/dist/vite/plugins/twilight-schema.d.ts.map +1 -0
- package/dist/vite/plugins/twilight-schema.plugin.d.ts +20 -0
- package/dist/vite/plugins/twilight-schema.plugin.d.ts.map +1 -0
- package/dist/vite/types.d.ts +7 -0
- package/dist/vite/types.d.ts.map +1 -1
- package/package.json +8 -1
- package/dist/AddToCartForm-VS67AFNL.js.map +0 -1
- package/dist/BlogAuthorPage-276K2KQS.js.map +0 -1
- package/dist/BlogCategoryPage-GF5PLRG7.js.map +0 -1
- package/dist/BlogPage-BU672BXD.js.map +0 -1
- package/dist/BlogSinglePage-ELV4S5EV.js.map +0 -1
- package/dist/BlogTagPage-TXQP6ZOI.js.map +0 -1
- package/dist/BrandsPage-C6ZHC4KC.js.map +0 -1
- package/dist/Breadcrumb-TG4UTNRM.js.map +0 -1
- package/dist/CartItem-55JV6HDS.js.map +0 -1
- package/dist/CartSummary-CUWMHHMD.js.map +0 -1
- package/dist/Copyright-PG76AVV6.js +0 -9
- package/dist/CustomerLayout-SLNVCNZ6.js.map +0 -1
- package/dist/ErrorPage-TK4U3ENF.js +0 -6
- package/dist/Footer-MZDSEK57.js +0 -39
- package/dist/Header-CXFKDTOA.js +0 -15
- package/dist/ImageModal-WLJM3WIE.js +0 -41
- package/dist/ImageModal-WLJM3WIE.js.map +0 -1
- package/dist/LoyaltyPage-AIA3CUYI.js.map +0 -1
- package/dist/MainMenu-T3M5RB7L.js.map +0 -1
- package/dist/MasterLayout-QUBHRA32.js +0 -39
- package/dist/MobileMenu-6D52JOQA.js.map +0 -1
- package/dist/NotificationsPage-6H45SAS7.js.map +0 -1
- package/dist/OrderSinglePage-GP2M3YVH.js.map +0 -1
- package/dist/OrdersPage-OQGJLTQP.js.map +0 -1
- package/dist/PreOrderNotification-ZVTGNV7K.js.map +0 -1
- package/dist/PriceQuoteButton-RAAPL4N4.js.map +0 -1
- package/dist/ProductDetails-2JUCRU4W.js.map +0 -1
- package/dist/ProfilePage-XGZ2HCQH.js.map +0 -1
- package/dist/SeoCartWidget-PDK6IQ2H.js.map +0 -1
- package/dist/SettingsPage-VCQNV2PP.js.map +0 -1
- package/dist/StoreClosedNotification-3JRNBNQK.js +0 -40
- package/dist/TestimonialsPage-ENMVJ4QG.js.map +0 -1
- package/dist/ThankYouPage-4FTP6E2Y.js.map +0 -1
- package/dist/WalletPage-VKV44EEG.js.map +0 -1
- package/dist/WidgetHead-FXEPCB23.js +0 -7
- package/dist/WishlistPage-GJZCXQUY.js.map +0 -1
- package/dist/chunk-25SSLQAJ.js.map +0 -1
- package/dist/chunk-2SUOZEX2.js.map +0 -1
- package/dist/chunk-3DCZJDDK.js +0 -10
- package/dist/chunk-3UHSMGPY.js.map +0 -1
- package/dist/chunk-433EFDBW.js.map +0 -1
- package/dist/chunk-4AYOFKHU.js.map +0 -1
- package/dist/chunk-6LQFMCWK.js.map +0 -1
- package/dist/chunk-BWFBVXT3.js.map +0 -1
- package/dist/chunk-C5GWTTB6.js.map +0 -1
- package/dist/chunk-CI4HKXVH.js.map +0 -1
- package/dist/chunk-FBFPH5BB.js.map +0 -1
- package/dist/chunk-GS3G4O2R.js.map +0 -1
- package/dist/chunk-GTM2GV2N.js.map +0 -1
- package/dist/chunk-HL3HSO4R.js.map +0 -1
- package/dist/chunk-IILTG4A6.js.map +0 -1
- package/dist/chunk-J37AYLWL.js.map +0 -1
- package/dist/chunk-JIJOXZPF.js.map +0 -1
- package/dist/chunk-MXQCE3KA.js.map +0 -1
- package/dist/chunk-P43TLDS6.js.map +0 -1
- package/dist/chunk-REQC7YOE.js.map +0 -1
- package/dist/chunk-S6AVEFCN.js.map +0 -1
- package/dist/chunk-SAZBQNQK.js.map +0 -1
- package/dist/chunk-SSQ75CKA.js.map +0 -1
- package/dist/chunk-SVZOWI7E.js.map +0 -1
- package/dist/chunk-TFZ2RT6P.js.map +0 -1
- package/dist/chunk-THXWAZX2.js.map +0 -1
- package/dist/chunk-TQLEQSXE.js.map +0 -1
- package/dist/chunk-TQUHDSKQ.js.map +0 -1
- package/dist/chunk-TWAHYRKI.js.map +0 -1
- package/dist/chunk-U33UQAWO.js.map +0 -1
- package/dist/chunk-UIX3W2PN.js.map +0 -1
- package/dist/chunk-VVRYP6IL.js.map +0 -1
- package/dist/chunk-W4CSWDEH.js.map +0 -1
- package/dist/chunk-XHGF75TM.js.map +0 -1
- package/dist/chunk-ZOCDYJPX.js +0 -14
- package/dist/components/common/types.d.ts +0 -7
- package/dist/components/common/types.d.ts.map +0 -1
- package/dist/document-class-V5XSWLMX.js +0 -21
- package/dist/hooks/useIsMobile.d.ts +0 -2
- package/dist/hooks/useIsMobile.d.ts.map +0 -1
- package/dist/lib/services/index.d.ts +0 -1
- package/dist/lib/services/index.d.ts.map +0 -1
- package/dist/navigation-77T2NTFS.js +0 -10
- package/dist/not-found-73ZVE5QO.js.map +0 -1
- package/dist/providers/i18n.d.ts.map +0 -1
- package/dist/providers/salla-sdk.types.d.ts.map +0 -1
- package/dist/providers/twilight.types.d.ts.map +0 -1
- package/dist/router/context.d.ts +0 -3
- package/dist/router/context.d.ts.map +0 -1
- package/dist/router/index.d.ts +0 -4
- package/dist/router/index.d.ts.map +0 -1
- package/dist/twilight/index.d.ts +0 -3
- package/dist/twilight/index.d.ts.map +0 -1
package/dist/vite/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { tanstackHeadAdapter } from '../chunk-
|
|
1
|
+
import { tanstackHeadAdapter } from '../chunk-6Q5BFHFA.js';
|
|
2
2
|
import { nextjsHeadAdapter } from '../chunk-HOSHJBPS.js';
|
|
3
3
|
import { setHeadAdapter } from '../chunk-B3EFOE57.js';
|
|
4
4
|
import { RouteId } from '../chunk-MTONGOJD.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-KIPZQN3Y.js';
|
|
6
6
|
import '../chunk-T72DAX7R.js';
|
|
7
7
|
import '../chunk-DGUM43GV.js';
|
|
8
8
|
import { readdir, readFile } from 'fs/promises';
|
|
@@ -119,6 +119,174 @@ ${entries.join(",\n")}
|
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
// src/vite/plugins/twilight-schema.ts
|
|
123
|
+
var TEXTUAL_FORMATS = /* @__PURE__ */ new Set(["text", "textarea", "image", "icon", "line"]);
|
|
124
|
+
function labelOf(entry, fallback) {
|
|
125
|
+
return typeof entry.label === "string" && entry.label.trim() ? entry.label : fallback;
|
|
126
|
+
}
|
|
127
|
+
function titleOf(component) {
|
|
128
|
+
const t = component.title;
|
|
129
|
+
const fallback = component.path ?? component.key ?? "component";
|
|
130
|
+
if (t && typeof t === "object") {
|
|
131
|
+
const obj = t;
|
|
132
|
+
const en = typeof obj.en === "string" ? obj.en : void 0;
|
|
133
|
+
const ar = typeof obj.ar === "string" ? obj.ar : void 0;
|
|
134
|
+
return en || ar || fallback;
|
|
135
|
+
}
|
|
136
|
+
return typeof t === "string" && t ? t : fallback;
|
|
137
|
+
}
|
|
138
|
+
function toOptions(raw) {
|
|
139
|
+
if (!Array.isArray(raw)) return void 0;
|
|
140
|
+
const opts = raw.map((o) => {
|
|
141
|
+
const obj = o ?? {};
|
|
142
|
+
const value = obj.value ?? obj.key ?? "";
|
|
143
|
+
const label = obj.label ?? obj.value ?? obj.key ?? "";
|
|
144
|
+
return { label: String(label), value: String(value) };
|
|
145
|
+
}).filter((o) => o.value !== "");
|
|
146
|
+
return opts.length ? opts : void 0;
|
|
147
|
+
}
|
|
148
|
+
function firstScalar(v) {
|
|
149
|
+
if (Array.isArray(v)) {
|
|
150
|
+
const first = v[0];
|
|
151
|
+
if (first && typeof first === "object") {
|
|
152
|
+
const obj = first;
|
|
153
|
+
return obj.value ?? obj.key ?? void 0;
|
|
154
|
+
}
|
|
155
|
+
return first;
|
|
156
|
+
}
|
|
157
|
+
return v;
|
|
158
|
+
}
|
|
159
|
+
function classify(entry) {
|
|
160
|
+
const id = typeof entry.id === "string" ? entry.id : "";
|
|
161
|
+
if (!id) return null;
|
|
162
|
+
const { type, format } = entry;
|
|
163
|
+
const label = labelOf(entry, id);
|
|
164
|
+
if (type === "static") return null;
|
|
165
|
+
if (type === "boolean") {
|
|
166
|
+
return {
|
|
167
|
+
id,
|
|
168
|
+
label,
|
|
169
|
+
kind: "toggle",
|
|
170
|
+
default: typeof entry.value === "boolean" ? entry.value : false
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
if (type === "items" && format === "dropdown-list") {
|
|
174
|
+
const options = toOptions(entry.options);
|
|
175
|
+
if (!options) {
|
|
176
|
+
return {
|
|
177
|
+
id,
|
|
178
|
+
label,
|
|
179
|
+
kind: "readonly",
|
|
180
|
+
default: null,
|
|
181
|
+
note: `remote (${entry.source ?? "dynamic"})`
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
const fallback = options[0]?.value;
|
|
185
|
+
const def = firstScalar(entry.value) ?? firstScalar(entry.selected) ?? fallback;
|
|
186
|
+
return { id, label, kind: "select", default: def ?? "", options };
|
|
187
|
+
}
|
|
188
|
+
if (type === "string" && typeof format === "string" && TEXTUAL_FORMATS.has(format)) {
|
|
189
|
+
return { id, label, kind: "text", default: typeof entry.value === "string" ? entry.value : "" };
|
|
190
|
+
}
|
|
191
|
+
return {
|
|
192
|
+
id,
|
|
193
|
+
label,
|
|
194
|
+
kind: "readonly",
|
|
195
|
+
default: null,
|
|
196
|
+
note: `${type ?? "unknown"}/${format ?? "?"}`
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
function defaultsFor(fields) {
|
|
200
|
+
const out = {};
|
|
201
|
+
for (const f of fields) {
|
|
202
|
+
if (f.kind !== "readonly") out[f.id] = f.default;
|
|
203
|
+
}
|
|
204
|
+
return out;
|
|
205
|
+
}
|
|
206
|
+
function buildTwilightSchema(raw) {
|
|
207
|
+
const root = raw ?? {};
|
|
208
|
+
const settingsRaw = Array.isArray(root.settings) ? root.settings : [];
|
|
209
|
+
const settings = [];
|
|
210
|
+
for (const s of settingsRaw) {
|
|
211
|
+
const field = classify(s);
|
|
212
|
+
if (field) settings.push(field);
|
|
213
|
+
}
|
|
214
|
+
const componentsRaw = Array.isArray(root.components) ? root.components : [];
|
|
215
|
+
const components = [];
|
|
216
|
+
const componentDefaults = {};
|
|
217
|
+
for (const c of componentsRaw) {
|
|
218
|
+
const path = typeof c.path === "string" && c.path || typeof c.key === "string" && c.key || "";
|
|
219
|
+
if (!path) continue;
|
|
220
|
+
const fieldsRaw = Array.isArray(c.fields) ? c.fields : [];
|
|
221
|
+
const fields = [];
|
|
222
|
+
for (const fr of fieldsRaw) {
|
|
223
|
+
const field = classify(fr);
|
|
224
|
+
if (field) fields.push(field);
|
|
225
|
+
}
|
|
226
|
+
components.push({ path, title: titleOf(c), fields });
|
|
227
|
+
componentDefaults[path] = defaultsFor(fields);
|
|
228
|
+
}
|
|
229
|
+
return {
|
|
230
|
+
settings,
|
|
231
|
+
components,
|
|
232
|
+
settingsDefaults: defaultsFor(settings),
|
|
233
|
+
componentDefaults
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// src/dev/schema-types.ts
|
|
238
|
+
var EMPTY_DEV_SCHEMA = {
|
|
239
|
+
settings: [],
|
|
240
|
+
components: [],
|
|
241
|
+
settingsDefaults: {},
|
|
242
|
+
componentDefaults: {}
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
// src/vite/plugins/twilight-schema.plugin.ts
|
|
246
|
+
var VIRTUAL_ID2 = "virtual:twilight/schema";
|
|
247
|
+
var RESOLVED_ID2 = "\0" + VIRTUAL_ID2;
|
|
248
|
+
var EMPTY_MODULE = `export default ${JSON.stringify(EMPTY_DEV_SCHEMA)};`;
|
|
249
|
+
function twilightSchemaPlugin(twilightJsonPath = "twilight.json") {
|
|
250
|
+
let filePath;
|
|
251
|
+
let isDevServer = false;
|
|
252
|
+
return {
|
|
253
|
+
name: "twilight:schema",
|
|
254
|
+
configResolved(config) {
|
|
255
|
+
isDevServer = config.command === "serve";
|
|
256
|
+
filePath = resolve(config.root, twilightJsonPath);
|
|
257
|
+
},
|
|
258
|
+
resolveId(id) {
|
|
259
|
+
if (id === VIRTUAL_ID2) return RESOLVED_ID2;
|
|
260
|
+
},
|
|
261
|
+
async load(id) {
|
|
262
|
+
if (id !== RESOLVED_ID2) return;
|
|
263
|
+
if (!isDevServer || !filePath) return EMPTY_MODULE;
|
|
264
|
+
try {
|
|
265
|
+
const raw = JSON.parse(await readFile(filePath, "utf-8"));
|
|
266
|
+
const schema = buildTwilightSchema(raw);
|
|
267
|
+
return `export default ${JSON.stringify(schema)};`;
|
|
268
|
+
} catch {
|
|
269
|
+
return EMPTY_MODULE;
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
configureServer(server) {
|
|
273
|
+
if (!filePath) return;
|
|
274
|
+
const target = filePath;
|
|
275
|
+
server.watcher.add(target);
|
|
276
|
+
const invalidate = (file) => {
|
|
277
|
+
if (file !== target) return;
|
|
278
|
+
const mod = server.moduleGraph.getModuleById(RESOLVED_ID2);
|
|
279
|
+
if (mod) {
|
|
280
|
+
server.moduleGraph.invalidateModule(mod);
|
|
281
|
+
server.ws.send({ type: "full-reload" });
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
server.watcher.on("change", invalidate);
|
|
285
|
+
server.watcher.on("add", invalidate);
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
|
|
122
290
|
// src/vite/plugins/best-practices/rules/no-deep-component-import.ts
|
|
123
291
|
var COMPONENT_FOLDERS = [
|
|
124
292
|
"common",
|
|
@@ -913,7 +1081,7 @@ function pkgPattern(subpath) {
|
|
|
913
1081
|
return new RegExp(`^${ESCAPED_PKG}${subpath ? "/" + subpath : ""}$`);
|
|
914
1082
|
}
|
|
915
1083
|
var ALIASES = !engineSrc ? [] : [
|
|
916
|
-
{ find: pkgPattern("i18n"), replacement: `${engineSrc}/providers/
|
|
1084
|
+
{ find: pkgPattern("i18n"), replacement: `${engineSrc}/providers/I18nProvider.tsx` },
|
|
917
1085
|
{ find: pkgPattern("hooks"), replacement: `${engineSrc}/hooks/index.ts` },
|
|
918
1086
|
{
|
|
919
1087
|
find: pkgPattern("hooks/useAsyncFn"),
|
|
@@ -2086,7 +2254,8 @@ var tanstackAdapter = {
|
|
|
2086
2254
|
const {
|
|
2087
2255
|
srcDirectory = "app",
|
|
2088
2256
|
baseRoutesImport = "@salla.sa/twilight-theme-engine/routes",
|
|
2089
|
-
localesDir
|
|
2257
|
+
localesDir,
|
|
2258
|
+
twilightJson = "twilight.json"
|
|
2090
2259
|
} = options;
|
|
2091
2260
|
const projectRoot = process.cwd();
|
|
2092
2261
|
const allRoutes = tanstackAdapter.generateRouteFiles({ projectRoot, baseRoutesImport });
|
|
@@ -2158,6 +2327,7 @@ var tanstackAdapter = {
|
|
|
2158
2327
|
routeGeneratorPlugin,
|
|
2159
2328
|
webHydrationPlugin(),
|
|
2160
2329
|
themeTranslationsPlugin(localesDir),
|
|
2330
|
+
twilightSchemaPlugin(twilightJson),
|
|
2161
2331
|
bestPracticesPlugin()
|
|
2162
2332
|
];
|
|
2163
2333
|
}
|