basklee-react 0.0.0-stage → 0.8.1
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/LICENSE +21 -0
- package/README.md +637 -2
- package/bin/basklee-react.mjs +177 -0
- package/package.json +66 -4
- package/runtime/app.d.mts +6 -0
- package/runtime/app.mjs +48 -0
- package/runtime/marketplace.d.mts +129 -0
- package/runtime/marketplace.mjs +905 -0
- package/src/install.mjs +361 -0
- package/src/migrate.mjs +124 -0
- package/src/project-readme.mjs +442 -0
- package/src/service.mjs +186 -0
- package/src/setup.mjs +274 -0
- package/src/sitemap.mjs +93 -0
- package/src/update.mjs +54 -0
- package/src/validation.mjs +27 -0
- package/templates/app/StorefrontShell.tsx +443 -0
- package/templates/app/[[...path]]/page.app.tsx +11 -0
- package/templates/app/_storefront/ActivityPage.tsx +23 -0
- package/templates/app/_storefront/AddressesPage.tsx +29 -0
- package/templates/app/_storefront/AppRoutes.tsx +184 -0
- package/templates/app/_storefront/ArticlePage.tsx +84 -0
- package/templates/app/_storefront/CartPage.tsx +53 -0
- package/templates/app/_storefront/CatalogPage.tsx +37 -0
- package/templates/app/_storefront/CategoryPage.tsx +68 -0
- package/templates/app/_storefront/ContactPage.tsx +32 -0
- package/templates/app/_storefront/HomePage.tsx +140 -0
- package/templates/app/_storefront/JournalPage.tsx +36 -0
- package/templates/app/_storefront/LogoutPage.tsx +91 -0
- package/templates/app/_storefront/ManufacturersPage.tsx +64 -0
- package/templates/app/_storefront/OrdersPage.tsx +129 -0
- package/templates/app/_storefront/PrivacyPage.tsx +15 -0
- package/templates/app/_storefront/ProductPage.tsx +113 -0
- package/templates/app/_storefront/ProfilePage.tsx +75 -0
- package/templates/app/_storefront/PromoPage.tsx +66 -0
- package/templates/app/_storefront/PromocodesPage.tsx +17 -0
- package/templates/app/_storefront/SearchPage.tsx +225 -0
- package/templates/app/_storefront/SellersPage.tsx +166 -0
- package/templates/app/_storefront/StorefrontErrorRoute.tsx +42 -0
- package/templates/app/_storefront/StorefrontPageMetadata.tsx +117 -0
- package/templates/app/_storefront/StorefrontPageStatus.tsx +61 -0
- package/templates/app/_storefront/StorefrontProductStructuredData.tsx +77 -0
- package/templates/app/_storefront/StoresPage.tsx +53 -0
- package/templates/app/_storefront/SubscriptionsPage.tsx +62 -0
- package/templates/app/_storefront/SupportPage.tsx +141 -0
- package/templates/app/_storefront/TariffsPage.tsx +180 -0
- package/templates/app/_storefront/UnsubscribePage.tsx +29 -0
- package/templates/app/_storefront/WalletPage.tsx +78 -0
- package/templates/app/_storefront/WishlistPage.tsx +79 -0
- package/templates/app/_storefront/storefrontRoutes.tsx +769 -0
- package/templates/app/_storefront/useAccountWallet.ts +27 -0
- package/templates/app/_storefront/useBlogComments.ts +389 -0
- package/templates/app/_storefront/useProductSearch.ts +242 -0
- package/templates/app/_storefront/useStorefrontNavigation.ts +36 -0
- package/templates/app/activity/page.tsx +9 -0
- package/templates/app/addresses/page.tsx +9 -0
- package/templates/app/api/[...basklee]/route.ts +21 -0
- package/templates/app/browse/page.tsx +27 -0
- package/templates/app/cart/page.tsx +9 -0
- package/templates/app/catalog/page.tsx +9 -0
- package/templates/app/category/[id]/page.tsx +9 -0
- package/templates/app/contact/page.tsx +9 -0
- package/templates/app/error.tsx +7 -0
- package/templates/app/featured/page.tsx +9 -0
- package/templates/app/global-error.tsx +61 -0
- package/templates/app/globals.css +58 -0
- package/templates/app/journal/[id]/page.tsx +9 -0
- package/templates/app/journal/page.tsx +9 -0
- package/templates/app/layout.app.tsx +20 -0
- package/templates/app/layout.tsx +66 -0
- package/templates/app/logout/page.tsx +9 -0
- package/templates/app/manufacturers/page.tsx +9 -0
- package/templates/app/not-found.tsx +5 -0
- package/templates/app/orders/page.tsx +9 -0
- package/templates/app/page.module.css +137 -0
- package/templates/app/page.tsx +9 -0
- package/templates/app/privacy/page.tsx +9 -0
- package/templates/app/product/[id]/page.tsx +9 -0
- package/templates/app/profile/page.tsx +9 -0
- package/templates/app/promo/[id]/page.tsx +9 -0
- package/templates/app/promocodes/page.tsx +9 -0
- package/templates/app/ps3/blog/[...basklee]/route.ts +13 -0
- package/templates/app/robots.txt/route.ts +11 -0
- package/templates/app/sellers/page.tsx +9 -0
- package/templates/app/sitemap.xml/route.ts +12 -0
- package/templates/app/storefront.module.css +406 -0
- package/templates/app/stores/page.tsx +9 -0
- package/templates/app/subscriptions/page.tsx +9 -0
- package/templates/app/tariffs/[slug]/[id]/page.tsx +9 -0
- package/templates/app/tariffs/page.tsx +9 -0
- package/templates/app/tickets/page.tsx +9 -0
- package/templates/app/unsubscribe/page.tsx +9 -0
- package/templates/app/wallet/page.tsx +9 -0
- package/templates/app/wishlist/page.tsx +9 -0
- package/templates/basklee/COMPONENT-DOWNLOAD.md +66 -0
- package/templates/basklee/COMPONENTS.md +35 -0
- package/templates/components/basklee/account/AccountActivity.README.md +70 -0
- package/templates/components/basklee/account/AccountActivity.module.css +16 -0
- package/templates/components/basklee/account/AccountActivity.tsx +94 -0
- package/templates/components/basklee/account/AccountPromocodes.README.md +70 -0
- package/templates/components/basklee/account/AccountPromocodes.module.css +92 -0
- package/templates/components/basklee/account/AccountPromocodes.tsx +257 -0
- package/templates/components/basklee/account/AccountSection.README.md +46 -0
- package/templates/components/basklee/account/AccountSection.module.css +110 -0
- package/templates/components/basklee/account/AccountSection.tsx +109 -0
- package/templates/components/basklee/account/ProfileAvatar.README.md +48 -0
- package/templates/components/basklee/account/ProfileAvatar.module.css +31 -0
- package/templates/components/basklee/account/ProfileAvatar.tsx +138 -0
- package/templates/components/basklee/account/ProfileDeleteAccount.README.md +59 -0
- package/templates/components/basklee/account/ProfileDeleteAccount.module.css +51 -0
- package/templates/components/basklee/account/ProfileDeleteAccount.tsx +171 -0
- package/templates/components/basklee/account/ProfileDetailsForm.README.md +48 -0
- package/templates/components/basklee/account/ProfileDetailsForm.module.css +35 -0
- package/templates/components/basklee/account/ProfileDetailsForm.tsx +183 -0
- package/templates/components/basklee/account/ProfileEmailSettings.README.md +52 -0
- package/templates/components/basklee/account/ProfileEmailSettings.module.css +51 -0
- package/templates/components/basklee/account/ProfileEmailSettings.tsx +276 -0
- package/templates/components/basklee/account/ProfilePasswordForm.README.md +45 -0
- package/templates/components/basklee/account/ProfilePasswordForm.module.css +43 -0
- package/templates/components/basklee/account/ProfilePasswordForm.tsx +227 -0
- package/templates/components/basklee/account/ProfileSignIn.README.md +64 -0
- package/templates/components/basklee/account/ProfileSignIn.module.css +86 -0
- package/templates/components/basklee/account/ProfileSignIn.tsx +463 -0
- package/templates/components/basklee/account/SignInHistory.README.md +52 -0
- package/templates/components/basklee/account/SignInHistory.module.css +81 -0
- package/templates/components/basklee/account/SignInHistory.tsx +231 -0
- package/templates/components/basklee/account/StorefrontLogout.README.md +48 -0
- package/templates/components/basklee/account/StorefrontLogout.module.css +166 -0
- package/templates/components/basklee/account/StorefrontLogout.tsx +73 -0
- package/templates/components/basklee/account/StorefrontProfile.README.md +71 -0
- package/templates/components/basklee/account/StorefrontProfile.module.css +65 -0
- package/templates/components/basklee/account/StorefrontProfile.tsx +189 -0
- package/templates/components/basklee/account/account.module.css +1180 -0
- package/templates/components/basklee/account/profile.module.css +696 -0
- package/templates/components/basklee/address/AddressForm.README.md +152 -0
- package/templates/components/basklee/address/AddressForm.module.css +336 -0
- package/templates/components/basklee/address/AddressForm.tsx +827 -0
- package/templates/components/basklee/address/StorefrontAddresses.README.md +99 -0
- package/templates/components/basklee/address/StorefrontAddresses.module.css +271 -0
- package/templates/components/basklee/address/StorefrontAddresses.tsx +438 -0
- package/templates/components/basklee/banners/MainBanner.README.md +65 -0
- package/templates/components/basklee/banners/MainBanner.module.css +112 -0
- package/templates/components/basklee/banners/MainBanner.tsx +159 -0
- package/templates/components/basklee/blog/BlogArticle.README.md +183 -0
- package/templates/components/basklee/blog/BlogArticle.module.css +333 -0
- package/templates/components/basklee/blog/BlogArticle.tsx +545 -0
- package/templates/components/basklee/blog/BlogCommentForm.README.md +51 -0
- package/templates/components/basklee/blog/BlogCommentForm.module.css +93 -0
- package/templates/components/basklee/blog/BlogCommentForm.tsx +125 -0
- package/templates/components/basklee/blog/BlogComments.README.md +98 -0
- package/templates/components/basklee/blog/BlogComments.module.css +151 -0
- package/templates/components/basklee/blog/BlogComments.tsx +590 -0
- package/templates/components/basklee/blog/BlogPostCard.README.md +51 -0
- package/templates/components/basklee/blog/BlogPostCard.module.css +167 -0
- package/templates/components/basklee/blog/BlogPostCard.tsx +177 -0
- package/templates/components/basklee/blog/BlogPostGroup.README.md +49 -0
- package/templates/components/basklee/blog/BlogPostGroup.module.css +37 -0
- package/templates/components/basklee/blog/BlogPostGroup.tsx +129 -0
- package/templates/components/basklee/blog/StorefrontJournal.README.md +105 -0
- package/templates/components/basklee/blog/StorefrontJournal.module.css +387 -0
- package/templates/components/basklee/blog/StorefrontJournal.tsx +549 -0
- package/templates/components/basklee/branding/BrandLogos.README.md +29 -0
- package/templates/components/basklee/branding/BrandLogos.module.css +7 -0
- package/templates/components/basklee/branding/BrandLogos.tsx +30 -0
- package/templates/components/basklee/cart/CartCheckoutDetails.README.md +96 -0
- package/templates/components/basklee/cart/CartCheckoutDetails.module.css +159 -0
- package/templates/components/basklee/cart/CartCheckoutDetails.tsx +381 -0
- package/templates/components/basklee/cart/CartDeliverySelector.README.md +166 -0
- package/templates/components/basklee/cart/CartDeliverySelector.module.css +105 -0
- package/templates/components/basklee/cart/CartDeliverySelector.tsx +679 -0
- package/templates/components/basklee/cart/CartItemOptions.README.md +172 -0
- package/templates/components/basklee/cart/CartItemOptions.module.css +113 -0
- package/templates/components/basklee/cart/CartItemOptions.tsx +503 -0
- package/templates/components/basklee/cart/CartLineItem.README.md +138 -0
- package/templates/components/basklee/cart/CartLineItem.module.css +57 -0
- package/templates/components/basklee/cart/CartLineItem.tsx +263 -0
- package/templates/components/basklee/cart/CartPreview.README.md +99 -0
- package/templates/components/basklee/cart/CartPreview.module.css +225 -0
- package/templates/components/basklee/cart/CartPreview.tsx +188 -0
- package/templates/components/basklee/cart/DeliveryMap.README.md +65 -0
- package/templates/components/basklee/cart/DeliveryMap.module.css +32 -0
- package/templates/components/basklee/cart/DeliveryMap.tsx +131 -0
- package/templates/components/basklee/cart/StorefrontCart.README.md +281 -0
- package/templates/components/basklee/cart/StorefrontCart.module.css +460 -0
- package/templates/components/basklee/cart/StorefrontCart.tsx +937 -0
- package/templates/components/basklee/catalog/CatalogHeader.README.md +136 -0
- package/templates/components/basklee/catalog/CatalogHeader.module.css +387 -0
- package/templates/components/basklee/catalog/CatalogHeader.tsx +644 -0
- package/templates/components/basklee/catalog/CatalogRepresentative.README.md +68 -0
- package/templates/components/basklee/catalog/CatalogRepresentative.tsx +51 -0
- package/templates/components/basklee/catalog/StorefrontCatalog.README.md +120 -0
- package/templates/components/basklee/catalog/StorefrontCatalog.module.css +179 -0
- package/templates/components/basklee/catalog/StorefrontCatalog.tsx +304 -0
- package/templates/components/basklee/categories/CategoryGroup.README.md +68 -0
- package/templates/components/basklee/categories/CategoryGroup.module.css +110 -0
- package/templates/components/basklee/categories/CategoryGroup.tsx +123 -0
- package/templates/components/basklee/categories/StorefrontCategory.README.md +155 -0
- package/templates/components/basklee/categories/StorefrontCategory.module.css +148 -0
- package/templates/components/basklee/categories/StorefrontCategory.tsx +225 -0
- package/templates/components/basklee/contact/AboutPage.README.md +40 -0
- package/templates/components/basklee/contact/AboutPage.module.css +216 -0
- package/templates/components/basklee/contact/AboutPage.tsx +191 -0
- package/templates/components/basklee/contact/ContactForm.README.md +93 -0
- package/templates/components/basklee/contact/ContactForm.module.css +264 -0
- package/templates/components/basklee/contact/ContactForm.tsx +382 -0
- package/templates/components/basklee/contact/EmailUnsubscribe.README.md +67 -0
- package/templates/components/basklee/contact/EmailUnsubscribe.module.css +95 -0
- package/templates/components/basklee/contact/EmailUnsubscribe.tsx +130 -0
- package/templates/components/basklee/contact/StorefrontContact.README.md +73 -0
- package/templates/components/basklee/contact/StorefrontContact.module.css +101 -0
- package/templates/components/basklee/contact/StorefrontContact.tsx +62 -0
- package/templates/components/basklee/currencies/MainCurrencySwitcher.README.md +37 -0
- package/templates/components/basklee/currencies/MainCurrencySwitcher.tsx +68 -0
- package/templates/components/basklee/events/EventEnrollmentDialog.README.md +108 -0
- package/templates/components/basklee/events/EventEnrollmentDialog.module.css +110 -0
- package/templates/components/basklee/events/EventEnrollmentDialog.tsx +315 -0
- package/templates/components/basklee/events/EventsBlock.README.md +58 -0
- package/templates/components/basklee/events/EventsBlock.module.css +101 -0
- package/templates/components/basklee/events/EventsBlock.tsx +109 -0
- package/templates/components/basklee/legal/CookieNotice.README.md +42 -0
- package/templates/components/basklee/legal/CookieNotice.module.css +48 -0
- package/templates/components/basklee/legal/CookieNotice.tsx +82 -0
- package/templates/components/basklee/legal/StorefrontPrivacy.README.md +49 -0
- package/templates/components/basklee/legal/StorefrontPrivacy.module.css +166 -0
- package/templates/components/basklee/legal/StorefrontPrivacy.tsx +83 -0
- package/templates/components/basklee/locale/MainLanguageSwitcher.README.md +46 -0
- package/templates/components/basklee/locale/MainLanguageSwitcher.module.css +196 -0
- package/templates/components/basklee/locale/MainLanguageSwitcher.tsx +387 -0
- package/templates/components/basklee/manufacturers/ManufacturerIndex.README.md +83 -0
- package/templates/components/basklee/manufacturers/ManufacturerIndex.module.css +271 -0
- package/templates/components/basklee/manufacturers/ManufacturerIndex.tsx +218 -0
- package/templates/components/basklee/manufacturers/StorefrontManufacturers.README.md +122 -0
- package/templates/components/basklee/manufacturers/StorefrontManufacturers.module.css +92 -0
- package/templates/components/basklee/manufacturers/StorefrontManufacturers.tsx +455 -0
- package/templates/components/basklee/orders/OrderDetails.README.md +116 -0
- package/templates/components/basklee/orders/OrderDetails.module.css +730 -0
- package/templates/components/basklee/orders/OrderDetails.tsx +693 -0
- package/templates/components/basklee/orders/OrderPaymentForm.README.md +92 -0
- package/templates/components/basklee/orders/OrderPaymentForm.module.css +105 -0
- package/templates/components/basklee/orders/OrderPaymentForm.tsx +90 -0
- package/templates/components/basklee/orders/StorefrontOrders.README.md +131 -0
- package/templates/components/basklee/orders/StorefrontOrders.module.css +633 -0
- package/templates/components/basklee/orders/StorefrontOrders.tsx +922 -0
- package/templates/components/basklee/payments/PaymentPanel.README.md +114 -0
- package/templates/components/basklee/payments/PaymentPanel.module.css +134 -0
- package/templates/components/basklee/payments/PaymentPanel.tsx +76 -0
- package/templates/components/basklee/products/HoverImageViewer.README.md +62 -0
- package/templates/components/basklee/products/HoverImageViewer.module.css +88 -0
- package/templates/components/basklee/products/HoverImageViewer.tsx +179 -0
- package/templates/components/basklee/products/ProductCard.README.md +154 -0
- package/templates/components/basklee/products/ProductCard.module.css +333 -0
- package/templates/components/basklee/products/ProductCard.tsx +730 -0
- package/templates/components/basklee/products/ProductCardActions.README.md +84 -0
- package/templates/components/basklee/products/ProductCardActions.module.css +146 -0
- package/templates/components/basklee/products/ProductCardActions.tsx +311 -0
- package/templates/components/basklee/products/ProductCardBadges.README.md +44 -0
- package/templates/components/basklee/products/ProductCardBadges.module.css +15 -0
- package/templates/components/basklee/products/ProductCardBadges.tsx +78 -0
- package/templates/components/basklee/products/ProductCardDescription.README.md +33 -0
- package/templates/components/basklee/products/ProductCardDescription.module.css +6 -0
- package/templates/components/basklee/products/ProductCardDescription.tsx +43 -0
- package/templates/components/basklee/products/ProductCardFavorite.README.md +52 -0
- package/templates/components/basklee/products/ProductCardFavorite.module.css +64 -0
- package/templates/components/basklee/products/ProductCardFavorite.tsx +90 -0
- package/templates/components/basklee/products/ProductCardPrice.README.md +33 -0
- package/templates/components/basklee/products/ProductCardPrice.module.css +22 -0
- package/templates/components/basklee/products/ProductCardPrice.tsx +50 -0
- package/templates/components/basklee/products/ProductCardRating.README.md +33 -0
- package/templates/components/basklee/products/ProductCardRating.module.css +7 -0
- package/templates/components/basklee/products/ProductCardRating.tsx +56 -0
- package/templates/components/basklee/products/ProductCardSeller.README.md +36 -0
- package/templates/components/basklee/products/ProductCardSeller.module.css +31 -0
- package/templates/components/basklee/products/ProductCardSeller.tsx +61 -0
- package/templates/components/basklee/products/ProductCardStockNotice.README.md +36 -0
- package/templates/components/basklee/products/ProductCardStockNotice.module.css +8 -0
- package/templates/components/basklee/products/ProductCardStockNotice.tsx +35 -0
- package/templates/components/basklee/products/ProductCardTitle.README.md +30 -0
- package/templates/components/basklee/products/ProductCardTitle.module.css +13 -0
- package/templates/components/basklee/products/ProductCardTitle.tsx +31 -0
- package/templates/components/basklee/products/ProductCardVariants.README.md +77 -0
- package/templates/components/basklee/products/ProductCardVariants.module.css +97 -0
- package/templates/components/basklee/products/ProductCardVariants.tsx +350 -0
- package/templates/components/basklee/products/ProductGroup.README.md +91 -0
- package/templates/components/basklee/products/ProductGroup.module.css +64 -0
- package/templates/components/basklee/products/ProductGroup.tsx +186 -0
- package/templates/components/basklee/products/ProductPreorderDialog.README.md +89 -0
- package/templates/components/basklee/products/ProductPreorderDialog.module.css +320 -0
- package/templates/components/basklee/products/ProductPreorderDialog.tsx +346 -0
- package/templates/components/basklee/products/ProductReviewForm.README.md +72 -0
- package/templates/components/basklee/products/ProductReviewForm.module.css +217 -0
- package/templates/components/basklee/products/ProductReviewForm.tsx +288 -0
- package/templates/components/basklee/products/ProductReviewGallery.README.md +61 -0
- package/templates/components/basklee/products/ProductReviewGallery.module.css +108 -0
- package/templates/components/basklee/products/ProductReviewGallery.tsx +110 -0
- package/templates/components/basklee/products/ProductReviewImageViewer.README.md +60 -0
- package/templates/components/basklee/products/ProductReviewImageViewer.module.css +59 -0
- package/templates/components/basklee/products/ProductReviewImageViewer.tsx +312 -0
- package/templates/components/basklee/products/ProductReviews.README.md +137 -0
- package/templates/components/basklee/products/ProductReviews.module.css +602 -0
- package/templates/components/basklee/products/ProductReviews.tsx +944 -0
- package/templates/components/basklee/products/ProductSecondaryVariantModal.README.md +67 -0
- package/templates/components/basklee/products/ProductSecondaryVariantModal.module.css +79 -0
- package/templates/components/basklee/products/ProductSecondaryVariantModal.tsx +324 -0
- package/templates/components/basklee/products/ProductSpecificationsDialog.README.md +52 -0
- package/templates/components/basklee/products/ProductSpecificationsDialog.module.css +138 -0
- package/templates/components/basklee/products/ProductSpecificationsDialog.tsx +117 -0
- package/templates/components/basklee/products/StorefrontProduct.README.md +200 -0
- package/templates/components/basklee/products/StorefrontProduct.module.css +767 -0
- package/templates/components/basklee/products/StorefrontProduct.tsx +1339 -0
- package/templates/components/basklee/products/StorefrontWishlist.README.md +162 -0
- package/templates/components/basklee/products/StorefrontWishlist.module.css +71 -0
- package/templates/components/basklee/products/StorefrontWishlist.tsx +402 -0
- package/templates/components/basklee/promo/PromoProducts.README.md +133 -0
- package/templates/components/basklee/promo/PromoProducts.module.css +68 -0
- package/templates/components/basklee/promo/PromoProducts.tsx +345 -0
- package/templates/components/basklee/search/MainSearch.README.md +73 -0
- package/templates/components/basklee/search/MainSearch.module.css +202 -0
- package/templates/components/basklee/search/MainSearch.tsx +217 -0
- package/templates/components/basklee/search/ProductSearchResults.README.md +166 -0
- package/templates/components/basklee/search/ProductSearchResults.module.css +361 -0
- package/templates/components/basklee/search/ProductSearchResults.tsx +359 -0
- package/templates/components/basklee/search/SearchFilters.README.md +109 -0
- package/templates/components/basklee/search/SearchFilters.module.css +274 -0
- package/templates/components/basklee/search/SearchFilters.tsx +439 -0
- package/templates/components/basklee/sellers/SellerFilters.README.md +66 -0
- package/templates/components/basklee/sellers/SellerFilters.module.css +232 -0
- package/templates/components/basklee/sellers/SellerFilters.tsx +201 -0
- package/templates/components/basklee/sellers/SellerPhotoGallery.README.md +72 -0
- package/templates/components/basklee/sellers/SellerPhotoGallery.module.css +314 -0
- package/templates/components/basklee/sellers/SellerPhotoGallery.tsx +335 -0
- package/templates/components/basklee/sellers/SellerSummary.README.md +62 -0
- package/templates/components/basklee/sellers/SellerSummary.module.css +182 -0
- package/templates/components/basklee/sellers/SellerSummary.tsx +107 -0
- package/templates/components/basklee/sellers/StorefrontSellers.README.md +120 -0
- package/templates/components/basklee/sellers/StorefrontSellers.module.css +147 -0
- package/templates/components/basklee/sellers/StorefrontSellers.tsx +360 -0
- package/templates/components/basklee/shared/BaskleeAvatar.README.md +35 -0
- package/templates/components/basklee/shared/BaskleeAvatar.module.css +35 -0
- package/templates/components/basklee/shared/BaskleeAvatar.tsx +61 -0
- package/templates/components/basklee/shared/BaskleeBreadcrumbs.README.md +33 -0
- package/templates/components/basklee/shared/BaskleeBreadcrumbs.module.css +81 -0
- package/templates/components/basklee/shared/BaskleeBreadcrumbs.tsx +91 -0
- package/templates/components/basklee/shared/BaskleeEmptyState.README.md +37 -0
- package/templates/components/basklee/shared/BaskleeEmptyState.module.css +126 -0
- package/templates/components/basklee/shared/BaskleeEmptyState.tsx +78 -0
- package/templates/components/basklee/shared/BaskleeImage.README.md +45 -0
- package/templates/components/basklee/shared/BaskleeImage.module.css +22 -0
- package/templates/components/basklee/shared/BaskleeImage.tsx +97 -0
- package/templates/components/basklee/shared/BaskleeInfoHint.README.md +31 -0
- package/templates/components/basklee/shared/BaskleeInfoHint.module.css +59 -0
- package/templates/components/basklee/shared/BaskleeInfoHint.tsx +126 -0
- package/templates/components/basklee/shared/BaskleePasswordInput.README.md +39 -0
- package/templates/components/basklee/shared/BaskleePasswordInput.module.css +79 -0
- package/templates/components/basklee/shared/BaskleePasswordInput.tsx +103 -0
- package/templates/components/basklee/shared/BaskleeSearchSelect.README.md +97 -0
- package/templates/components/basklee/shared/BaskleeSearchSelect.module.css +246 -0
- package/templates/components/basklee/shared/BaskleeSearchSelect.tsx +367 -0
- package/templates/components/basklee/shared/BaskleeSelect.README.md +69 -0
- package/templates/components/basklee/shared/BaskleeSelect.module.css +233 -0
- package/templates/components/basklee/shared/BaskleeSelect.tsx +439 -0
- package/templates/components/basklee/shared/StorefrontErrorPage.README.md +52 -0
- package/templates/components/basklee/shared/StorefrontErrorPage.module.css +141 -0
- package/templates/components/basklee/shared/StorefrontErrorPage.tsx +103 -0
- package/templates/components/basklee/shared/StorefrontPagination.README.md +45 -0
- package/templates/components/basklee/shared/StorefrontPagination.module.css +69 -0
- package/templates/components/basklee/shared/StorefrontPagination.tsx +158 -0
- package/templates/components/basklee/shared/dialogs.css +36 -0
- package/templates/components/basklee/shared/emptyStateArt.ts +231 -0
- package/templates/components/basklee/shared/features.module.css +162 -0
- package/templates/components/basklee/social/SocialLinks.README.md +16 -0
- package/templates/components/basklee/social/SocialLinks.module.css +36 -0
- package/templates/components/basklee/social/SocialLinks.tsx +59 -0
- package/templates/components/basklee/storefront/StorefrontAccount.README.md +59 -0
- package/templates/components/basklee/storefront/StorefrontAccount.module.css +159 -0
- package/templates/components/basklee/storefront/StorefrontAccount.tsx +303 -0
- package/templates/components/basklee/storefront/StorefrontCartButton.README.md +47 -0
- package/templates/components/basklee/storefront/StorefrontCartButton.module.css +88 -0
- package/templates/components/basklee/storefront/StorefrontCartButton.tsx +54 -0
- package/templates/components/basklee/storefront/StorefrontFooter.README.md +55 -0
- package/templates/components/basklee/storefront/StorefrontFooter.module.css +118 -0
- package/templates/components/basklee/storefront/StorefrontFooter.tsx +168 -0
- package/templates/components/basklee/storefront/StorefrontHeader.README.md +150 -0
- package/templates/components/basklee/storefront/StorefrontHeader.module.css +186 -0
- package/templates/components/basklee/storefront/StorefrontHeader.tsx +389 -0
- package/templates/components/basklee/storefront/StorefrontHome.README.md +138 -0
- package/templates/components/basklee/storefront/StorefrontHome.module.css +116 -0
- package/templates/components/basklee/storefront/StorefrontHome.tsx +282 -0
- package/templates/components/basklee/storefront/StorefrontWishlistButton.README.md +51 -0
- package/templates/components/basklee/storefront/StorefrontWishlistButton.module.css +95 -0
- package/templates/components/basklee/storefront/StorefrontWishlistButton.tsx +80 -0
- package/templates/components/basklee/stores/StorefrontStores.README.md +87 -0
- package/templates/components/basklee/stores/StorefrontStores.module.css +218 -0
- package/templates/components/basklee/stores/StorefrontStores.tsx +397 -0
- package/templates/components/basklee/subscriptions/StorefrontSubscriptions.README.md +183 -0
- package/templates/components/basklee/subscriptions/StorefrontSubscriptions.module.css +347 -0
- package/templates/components/basklee/subscriptions/StorefrontSubscriptions.tsx +884 -0
- package/templates/components/basklee/subscriptions/StorefrontTariff.README.md +124 -0
- package/templates/components/basklee/subscriptions/StorefrontTariff.module.css +311 -0
- package/templates/components/basklee/subscriptions/StorefrontTariff.tsx +485 -0
- package/templates/components/basklee/subscriptions/StorefrontTariffs.README.md +115 -0
- package/templates/components/basklee/subscriptions/StorefrontTariffs.module.css +219 -0
- package/templates/components/basklee/subscriptions/StorefrontTariffs.tsx +367 -0
- package/templates/components/basklee/subscriptions/SubscriptionCancelDialog.README.md +67 -0
- package/templates/components/basklee/subscriptions/SubscriptionCancelDialog.tsx +175 -0
- package/templates/components/basklee/subscriptions/SubscriptionChangeDialog.README.md +95 -0
- package/templates/components/basklee/subscriptions/SubscriptionChangeDialog.tsx +634 -0
- package/templates/components/basklee/subscriptions/SubscriptionDialog.module.css +453 -0
- package/templates/components/basklee/subscriptions/SubscriptionExtendDialog.README.md +75 -0
- package/templates/components/basklee/subscriptions/SubscriptionExtendDialog.tsx +384 -0
- package/templates/components/basklee/subscriptions/SubscriptionPlanSummary.README.md +116 -0
- package/templates/components/basklee/subscriptions/SubscriptionPlanSummary.module.css +168 -0
- package/templates/components/basklee/subscriptions/SubscriptionPlanSummary.tsx +236 -0
- package/templates/components/basklee/subscriptions/SubscriptionRemoteDetails.README.md +123 -0
- package/templates/components/basklee/subscriptions/SubscriptionRemoteDetails.module.css +57 -0
- package/templates/components/basklee/subscriptions/SubscriptionRemoteDetails.tsx +101 -0
- package/templates/components/basklee/subscriptions/SubscriptionRenewalDialog.README.md +109 -0
- package/templates/components/basklee/subscriptions/SubscriptionRenewalDialog.tsx +253 -0
- package/templates/components/basklee/support/StorefrontSupport.README.md +157 -0
- package/templates/components/basklee/support/StorefrontSupport.tsx +1040 -0
- package/templates/components/basklee/support/Support.module.css +1133 -0
- package/templates/components/basklee/support/TicketConversation.README.md +105 -0
- package/templates/components/basklee/support/TicketConversation.tsx +502 -0
- package/templates/components/basklee/support/TicketImage.README.md +52 -0
- package/templates/components/basklee/support/TicketImage.tsx +254 -0
- package/templates/components/basklee/support/TicketItemCard.README.md +66 -0
- package/templates/components/basklee/support/TicketItemCard.tsx +140 -0
- package/templates/components/basklee/support/TicketMessageForm.README.md +88 -0
- package/templates/components/basklee/support/TicketMessageForm.tsx +261 -0
- package/templates/components/basklee/support/TicketSubscriptionCard.README.md +53 -0
- package/templates/components/basklee/support/TicketSubscriptionCard.tsx +118 -0
- package/templates/components/basklee/tariffs/TariffCard.README.md +108 -0
- package/templates/components/basklee/tariffs/TariffCard.module.css +86 -0
- package/templates/components/basklee/tariffs/TariffCard.tsx +225 -0
- package/templates/components/basklee/tariffs/TariffCardDescription.README.md +40 -0
- package/templates/components/basklee/tariffs/TariffCardDescription.module.css +72 -0
- package/templates/components/basklee/tariffs/TariffCardDescription.tsx +58 -0
- package/templates/components/basklee/tariffs/TariffCardFeatures.README.md +58 -0
- package/templates/components/basklee/tariffs/TariffCardFeatures.module.css +60 -0
- package/templates/components/basklee/tariffs/TariffCardFeatures.tsx +140 -0
- package/templates/components/basklee/tariffs/TariffCardImage.README.md +36 -0
- package/templates/components/basklee/tariffs/TariffCardImage.module.css +8 -0
- package/templates/components/basklee/tariffs/TariffCardImage.tsx +32 -0
- package/templates/components/basklee/tariffs/TariffCardPrices.README.md +82 -0
- package/templates/components/basklee/tariffs/TariffCardPrices.module.css +142 -0
- package/templates/components/basklee/tariffs/TariffCardPrices.tsx +191 -0
- package/templates/components/basklee/tariffs/TariffCardTitle.README.md +32 -0
- package/templates/components/basklee/tariffs/TariffCardTitle.module.css +9 -0
- package/templates/components/basklee/tariffs/TariffCardTitle.tsx +29 -0
- package/templates/components/basklee/tariffs/TariffCards.README.md +88 -0
- package/templates/components/basklee/tariffs/TariffCards.module.css +24 -0
- package/templates/components/basklee/tariffs/TariffCards.tsx +44 -0
- package/templates/components/basklee/tariffs/TariffSubscriptionModal.README.md +92 -0
- package/templates/components/basklee/tariffs/TariffSubscriptionModal.module.css +214 -0
- package/templates/components/basklee/tariffs/TariffSubscriptionModal.tsx +299 -0
- package/templates/components/basklee/theme/BaskleeThemeProvider.README.md +30 -0
- package/templates/components/basklee/theme/BaskleeThemeProvider.module.css +8 -0
- package/templates/components/basklee/theme/BaskleeThemeProvider.tsx +32 -0
- package/templates/components/basklee/units/UnitSwitcher.README.md +35 -0
- package/templates/components/basklee/units/UnitSwitcher.tsx +58 -0
- package/templates/components/basklee/wallet/StorefrontWallet.README.md +154 -0
- package/templates/components/basklee/wallet/StorefrontWallet.module.css +507 -0
- package/templates/components/basklee/wallet/StorefrontWallet.tsx +915 -0
- package/templates/components/basklee/wallet/WalletBalance.README.md +46 -0
- package/templates/components/basklee/wallet/WalletBalance.module.css +46 -0
- package/templates/components/basklee/wallet/WalletBalance.tsx +51 -0
- package/templates/components/basklee/wallet/WalletTopUpForm.README.md +54 -0
- package/templates/components/basklee/wallet/WalletTopUpForm.module.css +152 -0
- package/templates/components/basklee/wallet/WalletTopUpForm.tsx +181 -0
- package/templates/hooks/useAccountActivity.ts +251 -0
- package/templates/hooks/useAccountAddresses.ts +81 -0
- package/templates/hooks/useAccountPromocodes.ts +91 -0
- package/templates/hooks/useBaskleeActionMenu.ts +118 -0
- package/templates/hooks/useBaskleeAddressForm.ts +262 -0
- package/templates/hooks/useBaskleeApi.ts +98 -0
- package/templates/hooks/useBaskleeAppLoad.ts +66 -0
- package/templates/hooks/useBaskleeBlogReading.ts +351 -0
- package/templates/hooks/useBaskleeDialog.ts +85 -0
- package/templates/hooks/useBaskleeHomeProducts.ts +97 -0
- package/templates/hooks/useBaskleeMap.tsx +230 -0
- package/templates/hooks/useBaskleeMediaFormat.ts +33 -0
- package/templates/hooks/useBaskleeProduct.ts +28 -0
- package/templates/hooks/useBaskleeProfile.ts +347 -0
- package/templates/hooks/useBaskleeReviews.ts +352 -0
- package/templates/hooks/useBaskleeStableHeight.ts +65 -0
- package/templates/hooks/useBaskleeStorefront.tsx +593 -0
- package/templates/hooks/useBaskleeTariffPurchase.ts +212 -0
- package/templates/interfaces/basklee/accounts/IContact.ts +21 -0
- package/templates/interfaces/basklee/accounts/IEmailNotificationLocale.ts +17 -0
- package/templates/interfaces/basklee/accounts/IEmailVerification.ts +59 -0
- package/templates/interfaces/basklee/accounts/IProfileActions.ts +38 -0
- package/templates/interfaces/basklee/accounts/IProfileData.ts +125 -0
- package/templates/interfaces/basklee/accounts/IProfileMedia.ts +17 -0
- package/templates/interfaces/basklee/accounts/IStorefrontProfile.ts +54 -0
- package/templates/interfaces/basklee/address/IAddressCitySuggestion.ts +19 -0
- package/templates/interfaces/basklee/address/IAddressEditor.ts +9 -0
- package/templates/interfaces/basklee/address/IAddressLocationSuggestion.ts +22 -0
- package/templates/interfaces/basklee/address/IAddressRegionSearch.ts +30 -0
- package/templates/interfaces/basklee/address/IAddressSuggestion.ts +20 -0
- package/templates/interfaces/basklee/address/IUserAddress.ts +87 -0
- package/templates/interfaces/basklee/apiBase/TMethod.ts +1 -0
- package/templates/interfaces/basklee/appBase/IAppLoad.ts +16 -0
- package/templates/interfaces/basklee/appBase/IAppLoadCommon.ts +47 -0
- package/templates/interfaces/basklee/appBase/IApploadUserProfile.ts +15 -0
- package/templates/interfaces/basklee/appBase/IForm.ts +21 -0
- package/templates/interfaces/basklee/appBase/ISEO.ts +21 -0
- package/templates/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonBanner.ts +11 -0
- package/templates/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonContact.ts +8 -0
- package/templates/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonCurrency.ts +15 -0
- package/templates/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonEvents.ts +18 -0
- package/templates/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonLocale.ts +14 -0
- package/templates/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonLogos.ts +6 -0
- package/templates/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonPath.ts +22 -0
- package/templates/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonSEO.ts +26 -0
- package/templates/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonSocial.ts +15 -0
- package/templates/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonTariff.ts +7 -0
- package/templates/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonUnit.ts +12 -0
- package/templates/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonVariables.ts +8 -0
- package/templates/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonVisualSettings.ts +11 -0
- package/templates/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonWalletValue.ts +3 -0
- package/templates/interfaces/basklee/blog/IBlogApi.ts +247 -0
- package/templates/interfaces/basklee/blog/IBlogPostPreview.ts +30 -0
- package/templates/interfaces/basklee/cart/ICartActions.ts +67 -0
- package/templates/interfaces/basklee/cart/ICartData.ts +382 -0
- package/templates/interfaces/basklee/cart/ICartDeliveryActions.ts +68 -0
- package/templates/interfaces/basklee/cart/ICartModal.ts +22 -0
- package/templates/interfaces/basklee/cart/IDeliveryMap.ts +29 -0
- package/templates/interfaces/basklee/catalog/ICatalogDirectory.ts +75 -0
- package/templates/interfaces/basklee/category/ICategory.ts +41 -0
- package/templates/interfaces/basklee/domains/IDomain.ts +13 -0
- package/templates/interfaces/basklee/forms/ICustomerSubfilter.ts +19 -0
- package/templates/interfaces/basklee/index.ts +64 -0
- package/templates/interfaces/basklee/marketing/IPromoActions.ts +51 -0
- package/templates/interfaces/basklee/orders/IOrderActions.ts +99 -0
- package/templates/interfaces/basklee/orders/IOrderHistory.ts +259 -0
- package/templates/interfaces/basklee/orders/IProductPreorder.ts +31 -0
- package/templates/interfaces/basklee/payments/IInvoice.ts +147 -0
- package/templates/interfaces/basklee/products/IProduct.ts +262 -0
- package/templates/interfaces/basklee/products/IProductFeedbackApi.ts +218 -0
- package/templates/interfaces/basklee/products/IProductSearchApi.ts +146 -0
- package/templates/interfaces/basklee/products/IProductSearchFacets.ts +35 -0
- package/templates/interfaces/basklee/products/IProductSecondaryVariantRequest.ts +15 -0
- package/templates/interfaces/basklee/products/IProductSpecification.ts +14 -0
- package/templates/interfaces/basklee/products/IWishlist.ts +22 -0
- package/templates/interfaces/basklee/sellers/ISellerDirectory.ts +70 -0
- package/templates/interfaces/basklee/shared/IBreadcrumb.ts +10 -0
- package/templates/interfaces/basklee/shared/IGeoCoordinates.ts +4 -0
- package/templates/interfaces/basklee/shared/IStorefrontControls.ts +6 -0
- package/templates/interfaces/basklee/shared/ITransformValue.ts +3 -0
- package/templates/interfaces/basklee/state.ts +4 -0
- package/templates/interfaces/basklee/stores/IStoreDirectory.ts +63 -0
- package/templates/interfaces/basklee/subscribeOptions/ISubscribeOption.ts +9 -0
- package/templates/interfaces/basklee/subscribeTariff/ISubscribeTariff.ts +56 -0
- package/templates/interfaces/basklee/subscribeTariff/ITariffSelection.ts +11 -0
- package/templates/interfaces/basklee/subscribes/ISubscribe.ts +28 -0
- package/templates/interfaces/basklee/subscribes/ISubscriptionApi.ts +127 -0
- package/templates/interfaces/basklee/tickets/ICustomerTicketApi.ts +223 -0
- package/templates/interfaces/basklee/transport.ts +34 -0
- package/templates/lib/basklee/accountLabels.ts +29 -0
- package/templates/lib/basklee/activityLabels.ts +96 -0
- package/templates/lib/basklee/activityPresentation.ts +9 -0
- package/templates/lib/basklee/addressChanges.ts +26 -0
- package/templates/lib/basklee/addressPresentation.ts +58 -0
- package/templates/lib/basklee/api.ts +326 -0
- package/templates/lib/basklee/appLoadClient.ts +80 -0
- package/templates/lib/basklee/appLoadResult.ts +120 -0
- package/templates/lib/basklee/appLoadServer.ts +183 -0
- package/templates/lib/basklee/blogArticle.ts +122 -0
- package/templates/lib/basklee/blogArticleHtml.ts +371 -0
- package/templates/lib/basklee/blogComments.ts +102 -0
- package/templates/lib/basklee/blogImageViewer.ts +84 -0
- package/templates/lib/basklee/blogJournal.ts +128 -0
- package/templates/lib/basklee/blogLabels.ts +158 -0
- package/templates/lib/basklee/blogPresentation.ts +67 -0
- package/templates/lib/basklee/blogProductPlacements.ts +105 -0
- package/templates/lib/basklee/browseLabels.ts +145 -0
- package/templates/lib/basklee/cartAddress.ts +86 -0
- package/templates/lib/basklee/cartController.ts +104 -0
- package/templates/lib/basklee/cartLabels.ts +390 -0
- package/templates/lib/basklee/cartOptions.ts +115 -0
- package/templates/lib/basklee/cartPreview.ts +135 -0
- package/templates/lib/basklee/cartPromo.ts +150 -0
- package/templates/lib/basklee/cartShipment.ts +61 -0
- package/templates/lib/basklee/cartSnapshot.ts +21 -0
- package/templates/lib/basklee/catalog.ts +150 -0
- package/templates/lib/basklee/categoryLabels.ts +29 -0
- package/templates/lib/basklee/contact.ts +47 -0
- package/templates/lib/basklee/contactLabels.ts +152 -0
- package/templates/lib/basklee/currency.ts +128 -0
- package/templates/lib/basklee/deliveryMap.ts +86 -0
- package/templates/lib/basklee/directoryLabels.ts +198 -0
- package/templates/lib/basklee/domain.ts +21 -0
- package/templates/lib/basklee/errorPageLabels.ts +89 -0
- package/templates/lib/basklee/eventEnrollment.ts +22 -0
- package/templates/lib/basklee/featureData.ts +28 -0
- package/templates/lib/basklee/featureLabels.ts +406 -0
- package/templates/lib/basklee/featuredLabels.ts +38 -0
- package/templates/lib/basklee/footerLabels.ts +53 -0
- package/templates/lib/basklee/guestSession.ts +55 -0
- package/templates/lib/basklee/headerLabels.ts +98 -0
- package/templates/lib/basklee/homeContent.ts +193 -0
- package/templates/lib/basklee/homeLabels.ts +74 -0
- package/templates/lib/basklee/htmlText.ts +51 -0
- package/templates/lib/basklee/manufacturerDirectory.ts +71 -0
- package/templates/lib/basklee/manufacturerIndex.ts +107 -0
- package/templates/lib/basklee/modalWindow.ts +109 -0
- package/templates/lib/basklee/nativeApp.ts +365 -0
- package/templates/lib/basklee/navigation.tsx +121 -0
- package/templates/lib/basklee/notice.ts +22 -0
- package/templates/lib/basklee/orderLabels.ts +458 -0
- package/templates/lib/basklee/orderPresentation.ts +617 -0
- package/templates/lib/basklee/pageMetadata.ts +361 -0
- package/templates/lib/basklee/pageSeo.ts +662 -0
- package/templates/lib/basklee/paginationScroll.ts +131 -0
- package/templates/lib/basklee/phone.ts +22 -0
- package/templates/lib/basklee/presentation.ts +84 -0
- package/templates/lib/basklee/privacyLabels.ts +273 -0
- package/templates/lib/basklee/productActionLabels.ts +108 -0
- package/templates/lib/basklee/productAvailability.ts +30 -0
- package/templates/lib/basklee/productGallery.ts +64 -0
- package/templates/lib/basklee/productLabels.ts +119 -0
- package/templates/lib/basklee/productListLocation.ts +130 -0
- package/templates/lib/basklee/productPage.ts +308 -0
- package/templates/lib/basklee/productPhotos.ts +67 -0
- package/templates/lib/basklee/productSearch.ts +280 -0
- package/templates/lib/basklee/productSeller.ts +56 -0
- package/templates/lib/basklee/productStructuredData.ts +221 -0
- package/templates/lib/basklee/profile.ts +169 -0
- package/templates/lib/basklee/profileLabels.ts +227 -0
- package/templates/lib/basklee/promoLabels.ts +111 -0
- package/templates/lib/basklee/promoPresentation.ts +381 -0
- package/templates/lib/basklee/reviewLabels.ts +256 -0
- package/templates/lib/basklee/reviewPresentation.ts +64 -0
- package/templates/lib/basklee/reviewScope.ts +38 -0
- package/templates/lib/basklee/searchFilters.ts +99 -0
- package/templates/lib/basklee/searchHistory.ts +144 -0
- package/templates/lib/basklee/sellerDirectory.ts +120 -0
- package/templates/lib/basklee/seo.ts +52 -0
- package/templates/lib/basklee/serverApi.ts +158 -0
- package/templates/lib/basklee/serverLocale.ts +29 -0
- package/templates/lib/basklee/serverMetadata.ts +93 -0
- package/templates/lib/basklee/serverRecords.ts +31 -0
- package/templates/lib/basklee/serverRoute.tsx +59 -0
- package/templates/lib/basklee/sessionLabels.ts +38 -0
- package/templates/lib/basklee/signInReturn.ts +89 -0
- package/templates/lib/basklee/storeDirectory.ts +47 -0
- package/templates/lib/basklee/storefrontRecords.ts +42 -0
- package/templates/lib/basklee/subscriptionChanges.ts +120 -0
- package/templates/lib/basklee/subscriptionLabels.ts +100 -0
- package/templates/lib/basklee/subscriptionManageLabels.ts +422 -0
- package/templates/lib/basklee/subscriptionPlans.ts +122 -0
- package/templates/lib/basklee/subscriptionRemote.ts +85 -0
- package/templates/lib/basklee/subscriptionUsage.ts +58 -0
- package/templates/lib/basklee/tariffLabels.ts +176 -0
- package/templates/lib/basklee/tariffPage.ts +54 -0
- package/templates/lib/basklee/tariffVariables.ts +174 -0
- package/templates/lib/basklee/tariffs.ts +241 -0
- package/templates/lib/basklee/ticketItems.ts +75 -0
- package/templates/lib/basklee/ticketLabels.ts +428 -0
- package/templates/lib/basklee/ticketLocation.ts +79 -0
- package/templates/lib/basklee/ticketRequests.ts +70 -0
- package/templates/lib/basklee/walletTransaction.ts +105 -0
- package/templates/providers/BaskleeProvider.tsx +191 -0
- package/templates/proxy.ts +63 -0
- package/templates/stores/basklee.ts +282 -0
- package/templates/stores/baskleeBrowse.ts +89 -0
- package/templates/stores/baskleeCatalog.ts +162 -0
- package/templates/stores/baskleeProducts.ts +389 -0
- package/templates/stores/baskleeScope.ts +104 -0
- package/templates/stores/baskleeSelections.ts +130 -0
- package/templates/themes/basklee.ts +106 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { setupProject } from '../src/setup.mjs';
|
|
3
|
+
import { updateProject } from '../src/update.mjs';
|
|
4
|
+
import { installService, serverName } from '../src/install.mjs';
|
|
5
|
+
import { SERVICE_ACTIONS, SERVICE_ALIASES, controlService, findApp, printService } from '../src/service.mjs';
|
|
6
|
+
import { sitemapCommand } from '../src/sitemap.mjs';
|
|
7
|
+
import { readFile } from 'node:fs/promises';
|
|
8
|
+
import { resolve } from 'node:path';
|
|
9
|
+
import { createInterface } from 'node:readline/promises';
|
|
10
|
+
|
|
11
|
+
const help = `Basklee React setup
|
|
12
|
+
|
|
13
|
+
From zero (Node.js 20.9+ with npm; run from the parent folder):
|
|
14
|
+
npx --yes basklee-react init my-marketplace
|
|
15
|
+
cd my-marketplace
|
|
16
|
+
npm install
|
|
17
|
+
npx basklee-react set backend your-project.orionplace.app
|
|
18
|
+
npx basklee-react add frontend shop.example.com
|
|
19
|
+
npm run dev
|
|
20
|
+
|
|
21
|
+
Replace the backend with the domain from your basklee.com profile,
|
|
22
|
+
and the frontend with your storefront domain. Open Next.js's local URL;
|
|
23
|
+
the storefront opens after Application Load succeeds.
|
|
24
|
+
|
|
25
|
+
Commands for an existing project (run from its root):
|
|
26
|
+
npx basklee-react help
|
|
27
|
+
npx basklee-react init [directory]
|
|
28
|
+
npx basklee-react update
|
|
29
|
+
npx basklee-react set backend <personal-backend.orionplace.app>
|
|
30
|
+
npx basklee-react add frontend <shop.example.com>
|
|
31
|
+
npx basklee-react remove frontend <shop.example.com>
|
|
32
|
+
npx basklee-react set mimic <existing-frontend.example.com>
|
|
33
|
+
npx basklee-react set frontend <shop.example.com>
|
|
34
|
+
npx basklee-react sitemap rebuild [domain] rebuild /sitemap.xml now (every frontend, or one);
|
|
35
|
+
the running storefront serves it at once
|
|
36
|
+
npx basklee-react sitemap status [domain] when each sitemap was built
|
|
37
|
+
|
|
38
|
+
On your Linux server (run from the project root):
|
|
39
|
+
sudo npx basklee-react install
|
|
40
|
+
Builds the storefront, installs it as a system service (systemd or OpenRC)
|
|
41
|
+
and, when the basklee server tool is set up, connects its domains with
|
|
42
|
+
nginx and HTTPS. Run it again after changes or an update to rebuild and restart.
|
|
43
|
+
Server tool: https://basklee.com/downloads/basklee.sh
|
|
44
|
+
|
|
45
|
+
Manage the installed service (from the project root, or name it with --name):
|
|
46
|
+
npx basklee-react status service, autostart, port and home page answer
|
|
47
|
+
sudo npx basklee-react start
|
|
48
|
+
sudo npx basklee-react stop
|
|
49
|
+
sudo npx basklee-react restart restart and wait until the home page answers
|
|
50
|
+
sudo npx basklee-react logs [lines] last log lines (100); --follow keeps reading
|
|
51
|
+
npx basklee-react list every storefront service on this server
|
|
52
|
+
sudo npx basklee-react uninstall stop the service and remove it (alias: cleanup);
|
|
53
|
+
the project folder stays
|
|
54
|
+
|
|
55
|
+
Options: --cwd <directory> --dry-run --help --version
|
|
56
|
+
Update option: --local (apply this CLI version instead of fetching the latest release)
|
|
57
|
+
Install options: --name <service> --port <port> --user <user> --no-build --no-domains --yes
|
|
58
|
+
Service options: --name <service> --follow (logs) --dry-run --yes (uninstall)
|
|
59
|
+
|
|
60
|
+
Update downloads the latest release, refreshes unedited source, and installs dependencies.
|
|
61
|
+
It preserves edited source, domain mappings and MIMIC. --dry-run leaves project files unchanged.
|
|
62
|
+
Set backend or add frontend also initializes the integration; either can come first.
|
|
63
|
+
MIMIC starts empty. The first added frontend sets it; later additions preserve it.
|
|
64
|
+
Set mimic selects an existing frontend without changing any domain mappings.
|
|
65
|
+
Set frontend is the legacy shortcut to add and select a frontend.
|
|
66
|
+
Set backend updates every managed frontend mapping. Remove frontend deletes only that mapping.
|
|
67
|
+
After creating a new project, run npm install and npm run dev in that directory.
|
|
68
|
+
Documentation and editable gateway source are generated in basklee/.
|
|
69
|
+
Your App Router source is generated next to it, or under src/ when that layout is used.`;
|
|
70
|
+
try {
|
|
71
|
+
const argv = process.argv.slice(2);
|
|
72
|
+
if (!argv.length || argv[0] === 'help' || argv.includes('--help') || argv.includes('-h')) {
|
|
73
|
+
console.log(help);
|
|
74
|
+
} else if (argv.includes('--version')) {
|
|
75
|
+
console.log(JSON.parse(await readFile(new URL('../package.json', import.meta.url), 'utf8')).version);
|
|
76
|
+
} else {
|
|
77
|
+
const positional = [];
|
|
78
|
+
let cwd = process.cwd();
|
|
79
|
+
let dryRun = false;
|
|
80
|
+
let local = false;
|
|
81
|
+
let follow = false;
|
|
82
|
+
const install = { domains: true, build: true, yes: false };
|
|
83
|
+
for (let index = 0; index < argv.length; index++) {
|
|
84
|
+
if (argv[index] === '--dry-run') dryRun = true;
|
|
85
|
+
else if (argv[index] === '--local') local = true;
|
|
86
|
+
else if (argv[index] === '--no-domains') install.domains = false;
|
|
87
|
+
else if (argv[index] === '--no-build') install.build = false;
|
|
88
|
+
else if (argv[index] === '--follow' || argv[index] === '-f') follow = true;
|
|
89
|
+
else if (argv[index] === '--yes' || argv[index] === '-y') install.yes = true;
|
|
90
|
+
else if (['--name', '--port', '--user'].includes(argv[index])) {
|
|
91
|
+
if (!argv[index + 1]) throw new Error(`${argv[index]} needs a value`);
|
|
92
|
+
install[argv[index].slice(2)] = argv[++index];
|
|
93
|
+
} else if (argv[index] === '--cwd') {
|
|
94
|
+
if (!argv[index + 1]) throw new Error('--cwd needs a directory');
|
|
95
|
+
cwd = resolve(argv[++index]);
|
|
96
|
+
} else if (argv[index].startsWith('--')) throw new Error(`Unknown option: ${argv[index]}`);
|
|
97
|
+
else positional.push(argv[index]);
|
|
98
|
+
}
|
|
99
|
+
const [given, target] = positional;
|
|
100
|
+
const command = SERVICE_ALIASES[given] || given;
|
|
101
|
+
if (local && command !== 'update') throw new Error('--local is only supported by update.');
|
|
102
|
+
const service = SERVICE_ACTIONS.includes(command);
|
|
103
|
+
if (command !== 'install' && (install.port || install.user || !install.domains || !install.build || (install.yes && command !== 'uninstall') || (install.name && !service))) {
|
|
104
|
+
throw new Error('--port, --user, --no-build, --no-domains and --yes are install options (--yes also for uninstall); --name is for install and the service commands.');
|
|
105
|
+
}
|
|
106
|
+
if (follow && command !== 'logs') throw new Error('--follow is a logs option.');
|
|
107
|
+
if (dryRun && service && command !== 'uninstall') throw new Error('--dry-run is only for uninstall among the service commands; status shows the state without changes.');
|
|
108
|
+
let result;
|
|
109
|
+
if (command === 'install' && positional.length === 1) {
|
|
110
|
+
const done = await installService({ cwd, dryRun, ...install });
|
|
111
|
+
if (done.dryRun) {
|
|
112
|
+
console.log(`Planned service basklee-${done.name} on 127.0.0.1:${done.port} as ${done.user}`);
|
|
113
|
+
console.log(`Domains: ${done.frontends.join(', ') || 'none yet'} -> ${done.backend || 'no backend yet'}`);
|
|
114
|
+
console.log(`\n${done.unitPath}:\n${done.unit}`);
|
|
115
|
+
} else {
|
|
116
|
+
console.log(`\nInstalled ${serverName}-${done.name} (port ${done.port}, user ${done.user}).`);
|
|
117
|
+
for (const domain of done.frontends) {
|
|
118
|
+
if (!install.domains) console.log(` - ${domain}: not connected (--no-domains)`);
|
|
119
|
+
else if (!done.connected) console.log(` - ${domain}: not connected to nginx (see above)`);
|
|
120
|
+
else if (done.failed.includes(domain)) console.log(` ✗ ${domain}: not connected (see above)`);
|
|
121
|
+
else console.log(` ✓ https://${domain}`);
|
|
122
|
+
}
|
|
123
|
+
if (done.failed.length) console.log('Fix the problems above, then run: sudo basklee domain add <domain>');
|
|
124
|
+
console.log(`Manage it from this folder: npx basklee-react status | sudo npx basklee-react restart | sudo npx basklee-react logs`);
|
|
125
|
+
console.log('After code changes or npx basklee-react update, run sudo npx basklee-react install again.');
|
|
126
|
+
}
|
|
127
|
+
} else if (service && positional.length <= (command === 'logs' ? 2 : 1)) {
|
|
128
|
+
if (command === 'uninstall' && !dryRun && !install.yes && process.stdin.isTTY) {
|
|
129
|
+
const app = await findApp({ cwd, name: install.name });
|
|
130
|
+
const prompt = createInterface({ input: process.stdin, output: process.stdout });
|
|
131
|
+
let answer;
|
|
132
|
+
try { answer = await prompt.question(`Stop and remove the service basklee-${app.NAME}? The project stays in ${app.DIR}. [y/N] `); }
|
|
133
|
+
finally { prompt.close(); }
|
|
134
|
+
if (!/^y(es)?$/i.test(answer.trim())) { console.log('Nothing changed.'); process.exit(0); }
|
|
135
|
+
}
|
|
136
|
+
const done = await controlService({ action: command, cwd, name: install.name, lines: positional[1] ?? 100, follow, dryRun });
|
|
137
|
+
process.exitCode = printService(done);
|
|
138
|
+
} else if (command === 'sitemap' && positional.length <= 3) {
|
|
139
|
+
if (dryRun) throw new Error('--dry-run is not a sitemap option; sitemap status shows the state without changes.');
|
|
140
|
+
process.exitCode = await sitemapCommand({ cwd, action: target, domain: positional[2] });
|
|
141
|
+
} else if (command === 'init' && positional.length <= 2) {
|
|
142
|
+
result = await setupProject({ cwd: target ? resolve(cwd, target) : cwd, dryRun });
|
|
143
|
+
} else if (command === 'update' && positional.length === 1) {
|
|
144
|
+
result = await updateProject({ cwd, dryRun, local });
|
|
145
|
+
} else if (((command === 'set' && ['backend', 'frontend', 'mimic'].includes(target)) ||
|
|
146
|
+
(['add', 'remove'].includes(command) && target === 'frontend')) && positional.length <= 3) {
|
|
147
|
+
let value = positional[2];
|
|
148
|
+
if (!value && process.stdin.isTTY) {
|
|
149
|
+
const prompt = createInterface({ input: process.stdin, output: process.stdout });
|
|
150
|
+
try { value = await prompt.question(`${target === 'backend' ? 'Personal backend API' : target === 'mimic' ? 'Existing frontend to use for MIMIC' : 'Public frontend domain'}: `); }
|
|
151
|
+
finally { prompt.close(); }
|
|
152
|
+
}
|
|
153
|
+
if (!value) throw new Error(`Provide the ${target} domain. See --help.`);
|
|
154
|
+
result = await setupProject({ cwd, action: command, field: target, value, dryRun });
|
|
155
|
+
} else throw new Error('Unknown command. See --help.');
|
|
156
|
+
if (result) {
|
|
157
|
+
console.log(`${dryRun ? 'Planned' : 'Updated'} ${result.root}`);
|
|
158
|
+
for (const path of result.changed) console.log(` ${result.removed.includes(path) ? 'Remove: ' : ''}${path}`);
|
|
159
|
+
for (const path of result.preserved) console.log(` Preserved your edits: ${path}`);
|
|
160
|
+
console.log(result.settings.backend && result.settings.frontend
|
|
161
|
+
? `Ready: ${result.settings.frontends.join(', ')} -> ${result.settings.backend}\nLocal MIMIC: ${result.settings.frontend}`
|
|
162
|
+
: `Next: ${result.settings.backend ? 'add frontend' : 'set backend'} to complete the domain mapping.`);
|
|
163
|
+
if (result.changed.some(path => path.endsWith('.cfg') || path === '.env')) console.log('Restart a running development server to reload MIMIC and domain mappings. Reload your production environment when changing MIMIC.');
|
|
164
|
+
if (result.isNewNext) console.log('Run npm install in the project, then npm run dev.');
|
|
165
|
+
if (result.preserved.includes('tsconfig.json')) {
|
|
166
|
+
console.log('Merge the import aliases into your retained configuration; see Import aliases in basklee/README.md.');
|
|
167
|
+
}
|
|
168
|
+
console.log('Project documentation: basklee/README.md');
|
|
169
|
+
if (command === 'update') console.log(dryRun
|
|
170
|
+
? 'Dependency installation would run after applying these changes. Project files were not changed.'
|
|
171
|
+
: 'Update complete. Restart development, or rebuild and redeploy your production frontend.');
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
} catch (error) {
|
|
175
|
+
console.error(`Basklee: ${error.message}`);
|
|
176
|
+
process.exitCode = 1;
|
|
177
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,68 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "basklee-react",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.8.1",
|
|
4
|
+
"description": "Next.js 16 storefront for your Basklee marketplace: setup CLI, server API gateway, typed store and ready-made catalog, cart, checkout and account components in English, Russian and Spanish, plus an Android app build.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Basklee",
|
|
8
|
+
"homepage": "https://basklee.com/en/sandbox/new-project/react",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"react",
|
|
11
|
+
"next",
|
|
12
|
+
"nextjs",
|
|
13
|
+
"app-router",
|
|
14
|
+
"basklee",
|
|
15
|
+
"marketplace",
|
|
16
|
+
"storefront",
|
|
17
|
+
"ecommerce",
|
|
18
|
+
"e-commerce",
|
|
19
|
+
"shop",
|
|
20
|
+
"cart",
|
|
21
|
+
"checkout",
|
|
22
|
+
"ssr",
|
|
23
|
+
"cli",
|
|
24
|
+
"android",
|
|
25
|
+
"capacitor"
|
|
26
|
+
],
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=20.9.0"
|
|
29
|
+
},
|
|
30
|
+
"bin": {
|
|
31
|
+
"basklee-react": "./bin/basklee-react.mjs"
|
|
32
|
+
},
|
|
33
|
+
"main": "./runtime/marketplace.mjs",
|
|
34
|
+
"types": "./runtime/marketplace.d.mts",
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./runtime/marketplace.d.mts",
|
|
38
|
+
"import": "./runtime/marketplace.mjs"
|
|
39
|
+
},
|
|
40
|
+
"./runtime": {
|
|
41
|
+
"types": "./runtime/marketplace.d.mts",
|
|
42
|
+
"import": "./runtime/marketplace.mjs"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"bin",
|
|
47
|
+
"src",
|
|
48
|
+
"runtime",
|
|
49
|
+
"templates",
|
|
50
|
+
"README.md",
|
|
51
|
+
"LICENSE"
|
|
52
|
+
],
|
|
53
|
+
"scripts": {
|
|
54
|
+
"test": "node --import ../../scripts/register-test-aliases.mjs --test test/*.test.mjs"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"next": "^16.0.0"
|
|
58
|
+
},
|
|
59
|
+
"publishConfig": {
|
|
60
|
+
"access": "public",
|
|
61
|
+
"registry": "https://registry.npmjs.org/"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"dompurify": "^3.4.13",
|
|
65
|
+
"esbuild": "^0.27.7",
|
|
66
|
+
"zustand": "^5.0.15"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { NextConfig } from 'next';
|
|
2
|
+
|
|
3
|
+
/** The validated storefront origin of an Android app build; empty for the website. */
|
|
4
|
+
export function androidAppOrigin(value?: string): string;
|
|
5
|
+
/** The Next.js options, made a static export of the app's page for the Android app build. */
|
|
6
|
+
export function androidAppConfig(config?: NextConfig): NextConfig;
|
package/runtime/app.mjs
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Android app build: BASKLEE_APP_ORIGIN=https://shop.example.com next build
|
|
3
|
+
*
|
|
4
|
+
* The app is a static export (out/) that Capacitor wraps: one page,
|
|
5
|
+
* app/[[...path]]/page.app.tsx with app/layout.app.tsx, which shows the
|
|
6
|
+
* storefront page of the current address in the app. Its API requests go to
|
|
7
|
+
* the public storefront named by the variable, through its /api gateway (see
|
|
8
|
+
* lib/basklee/nativeApp.ts). Without the variable the project builds the
|
|
9
|
+
* website as before and ignores the *.app.tsx files.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
const hostname = /^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/;
|
|
13
|
+
|
|
14
|
+
/** The validated storefront origin of an app build; empty for the website. */
|
|
15
|
+
export function androidAppOrigin(value = process.env.BASKLEE_APP_ORIGIN) {
|
|
16
|
+
const text = value?.trim() ?? '';
|
|
17
|
+
if (!text) return '';
|
|
18
|
+
if (/^http:/i.test(text)) throw new Error('BASKLEE_APP_ORIGIN must use HTTPS.');
|
|
19
|
+
let url;
|
|
20
|
+
try { url = new URL(text.includes('://') ? text : `https://${text}`); }
|
|
21
|
+
catch { url = null; }
|
|
22
|
+
const host = url?.hostname.toLowerCase().replace(/\.$/, '') ?? '';
|
|
23
|
+
if (!url || url.protocol !== 'https:' || !hostname.test(host) || /^[\d.]+$/.test(host) ||
|
|
24
|
+
url.username || url.password || url.port || url.search || url.hash || url.pathname !== '/') {
|
|
25
|
+
throw new Error('BASKLEE_APP_ORIGIN must be your public storefront, for example https://shop.example.com.');
|
|
26
|
+
}
|
|
27
|
+
return `https://${host}`;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The Next.js options: the website's, with the app origin known to the code;
|
|
32
|
+
* for the app build a static export of the app's own page.
|
|
33
|
+
* @param {import('next').NextConfig} config
|
|
34
|
+
*/
|
|
35
|
+
export function androidAppConfig(config = {}) {
|
|
36
|
+
const origin = androidAppOrigin();
|
|
37
|
+
const env = { ...config.env, BASKLEE_APP_ORIGIN: origin };
|
|
38
|
+
if (!origin) return { ...config, env };
|
|
39
|
+
return {
|
|
40
|
+
...config,
|
|
41
|
+
env,
|
|
42
|
+
output: 'export',
|
|
43
|
+
// Only app/layout.app.tsx and app/[[...path]]/page.app.tsx: the server
|
|
44
|
+
// pages, the /api gateway and proxy.ts stay with the website.
|
|
45
|
+
pageExtensions: ['app.tsx'],
|
|
46
|
+
images: { ...config.images, unoptimized: true },
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export interface MarketplaceConfiguration {
|
|
2
|
+
mimicFrontDomain?: string;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export interface MarketplaceTenant {
|
|
6
|
+
domain: string;
|
|
7
|
+
api: URL;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare function normalizeFrontDomain(value: unknown): string | null;
|
|
11
|
+
|
|
12
|
+
export declare function isMarketplaceMediaPath(pathname: string): boolean;
|
|
13
|
+
|
|
14
|
+
export declare function resolveFrontDomain(
|
|
15
|
+
request: Request,
|
|
16
|
+
mimic?: string,
|
|
17
|
+
): string | null;
|
|
18
|
+
|
|
19
|
+
export declare function readMarketplace(
|
|
20
|
+
request: Request,
|
|
21
|
+
configuration?: MarketplaceConfiguration,
|
|
22
|
+
): Promise<MarketplaceTenant>;
|
|
23
|
+
|
|
24
|
+
export declare function forwardMarketplace(
|
|
25
|
+
request: Request,
|
|
26
|
+
configuration?: MarketplaceConfiguration,
|
|
27
|
+
): Promise<Response>;
|
|
28
|
+
|
|
29
|
+
export interface MarketplaceSitemapPage {
|
|
30
|
+
path: string;
|
|
31
|
+
lastmod?: string | null;
|
|
32
|
+
locales?: string[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export declare function marketplacePublicOrigin(
|
|
36
|
+
request: Request,
|
|
37
|
+
tenantDomain?: string,
|
|
38
|
+
): string;
|
|
39
|
+
|
|
40
|
+
export declare function marketplaceCacheControl(
|
|
41
|
+
media: boolean,
|
|
42
|
+
upstream: Response,
|
|
43
|
+
): string;
|
|
44
|
+
|
|
45
|
+
export declare function noindexPathPrefixes(value?: string): string[];
|
|
46
|
+
|
|
47
|
+
export declare function marketplaceNoindexPath(
|
|
48
|
+
pathname: string,
|
|
49
|
+
value?: string,
|
|
50
|
+
): boolean;
|
|
51
|
+
|
|
52
|
+
export declare function sitemapIndexedPages(
|
|
53
|
+
pages: MarketplaceSitemapPage[],
|
|
54
|
+
value?: string,
|
|
55
|
+
): MarketplaceSitemapPage[];
|
|
56
|
+
|
|
57
|
+
export declare function marketplaceRobots(origin: string): string;
|
|
58
|
+
|
|
59
|
+
export declare function marketplaceRobotsResponse(
|
|
60
|
+
request: Request,
|
|
61
|
+
configuration?: MarketplaceConfiguration,
|
|
62
|
+
): Promise<Response>;
|
|
63
|
+
|
|
64
|
+
export declare function sitemapLocales(locales: unknown): string[];
|
|
65
|
+
|
|
66
|
+
export declare function sitemapLastmod(
|
|
67
|
+
value: unknown,
|
|
68
|
+
now?: number,
|
|
69
|
+
): string | null;
|
|
70
|
+
|
|
71
|
+
export declare function sitemapApiPath(
|
|
72
|
+
paths: unknown,
|
|
73
|
+
name: string,
|
|
74
|
+
): string | null;
|
|
75
|
+
|
|
76
|
+
export declare function sitemapCategoryIds(categories: unknown): number[];
|
|
77
|
+
|
|
78
|
+
export declare function marketplaceSitemapXml(
|
|
79
|
+
origin: string,
|
|
80
|
+
pages: MarketplaceSitemapPage[],
|
|
81
|
+
locales: string[],
|
|
82
|
+
): string;
|
|
83
|
+
|
|
84
|
+
export declare function marketplaceSitemapResponse(
|
|
85
|
+
request: Request,
|
|
86
|
+
configuration?: MarketplaceConfiguration,
|
|
87
|
+
): Promise<Response>;
|
|
88
|
+
|
|
89
|
+
export interface MarketplaceSitemap {
|
|
90
|
+
version: number;
|
|
91
|
+
domain: string;
|
|
92
|
+
built: string;
|
|
93
|
+
locales: string[];
|
|
94
|
+
pages: MarketplaceSitemapPage[];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface MarketplaceSitemapRebuild {
|
|
98
|
+
domain: string;
|
|
99
|
+
path: string;
|
|
100
|
+
built: string;
|
|
101
|
+
urls: number;
|
|
102
|
+
pages: number;
|
|
103
|
+
publications: number;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export declare const SITEMAP_LIFETIME: number;
|
|
107
|
+
|
|
108
|
+
export declare function readMarketplaceDomain(
|
|
109
|
+
domain: string,
|
|
110
|
+
options?: { root?: string },
|
|
111
|
+
): Promise<MarketplaceTenant>;
|
|
112
|
+
|
|
113
|
+
export declare function marketplaceConfigDirectory(root?: string): string;
|
|
114
|
+
|
|
115
|
+
export declare function marketplaceDomains(root?: string): Promise<string[]>;
|
|
116
|
+
|
|
117
|
+
export declare function sitemapCacheDirectory(root?: string): string;
|
|
118
|
+
|
|
119
|
+
export declare function readSitemapCache(
|
|
120
|
+
domain: string,
|
|
121
|
+
root?: string,
|
|
122
|
+
): Promise<MarketplaceSitemap | null>;
|
|
123
|
+
|
|
124
|
+
export declare function sitemapUrlCount(sitemap: MarketplaceSitemap): number;
|
|
125
|
+
|
|
126
|
+
export declare function rebuildMarketplaceSitemap(
|
|
127
|
+
domain: string,
|
|
128
|
+
options?: { root?: string },
|
|
129
|
+
): Promise<MarketplaceSitemapRebuild>;
|