@mohasinac/appkit 2.3.1 → 2.3.2
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/client.d.ts +12 -8
- package/dist/client.js +7 -4
- package/dist/constants/api-endpoints.d.ts +4 -0
- package/dist/constants/api-endpoints.js +2 -0
- package/dist/core/contact-submissions.repository.d.ts +32 -0
- package/dist/core/contact-submissions.repository.js +49 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +1 -0
- package/dist/features/about/components/HowPayoutsWorkView.js +1 -1
- package/dist/features/account/components/AddressFilters.d.ts +5 -0
- package/dist/features/account/components/AddressFilters.js +20 -0
- package/dist/features/account/components/AddressesIndexListing.d.ts +6 -0
- package/dist/features/account/components/AddressesIndexListing.js +51 -0
- package/dist/features/account/components/UserSidebar.d.ts +7 -3
- package/dist/features/account/components/UserSidebar.js +55 -7
- package/dist/features/account/hooks/useAddresses.d.ts +7 -0
- package/dist/features/account/hooks/useAddresses.js +12 -1
- package/dist/features/admin/actions/admin-read-actions.d.ts +12 -0
- package/dist/features/admin/actions/admin-read-actions.js +18 -0
- package/dist/features/admin/components/AdminBlogView.js +26 -2
- package/dist/features/admin/components/AdminCarouselView.js +18 -2
- package/dist/features/admin/components/AdminCategoriesView.js +27 -2
- package/dist/features/admin/components/AdminContactView.d.ts +4 -0
- package/dist/features/admin/components/AdminContactView.js +50 -0
- package/dist/features/admin/components/AdminFaqsView.js +19 -2
- package/dist/features/admin/components/AdminListingScaffold.d.ts +11 -2
- package/dist/features/admin/components/AdminListingScaffold.js +14 -3
- package/dist/features/admin/components/AdminNewsletterView.d.ts +4 -0
- package/dist/features/admin/components/AdminNewsletterView.js +50 -0
- package/dist/features/admin/components/AdminProductsView.js +30 -2
- package/dist/features/admin/components/AdminReviewsView.js +26 -2
- package/dist/features/admin/components/AdminStoresView.js +17 -2
- package/dist/features/admin/components/AdminUsersView.js +27 -2
- package/dist/features/admin/components/DataTable.d.ts +2 -1
- package/dist/features/admin/components/DataTable.js +18 -4
- package/dist/features/admin/components/index.d.ts +6 -0
- package/dist/features/admin/components/index.js +3 -0
- package/dist/features/admin/hooks/useAdminListingData.d.ts +3 -1
- package/dist/features/admin/hooks/useAdminListingData.js +12 -7
- package/dist/features/admin/server.d.ts +3 -0
- package/dist/features/admin/server.js +2 -0
- package/dist/features/auctions/components/AuctionDetailPageView.js +93 -47
- package/dist/features/auctions/components/AuctionFilters.d.ts +8 -0
- package/dist/features/auctions/components/AuctionFilters.js +12 -0
- package/dist/features/auctions/components/AuctionsListView.d.ts +6 -1
- package/dist/features/auctions/components/AuctionsListView.js +37 -5
- package/dist/features/auctions/schemas/index.d.ts +4 -4
- package/dist/features/blog/components/BlogFeaturedCard.d.ts +1 -7
- package/dist/features/blog/components/BlogFeaturedCard.js +4 -5
- package/dist/features/blog/components/BlogFilters.js +2 -1
- package/dist/features/blog/components/BlogIndexListing.js +14 -9
- package/dist/features/blog/components/BlogIndexPageView.d.ts +6 -1
- package/dist/features/blog/components/BlogIndexPageView.js +10 -2
- package/dist/features/blog/components/BlogListView.d.ts +2 -1
- package/dist/features/blog/components/BlogListView.js +10 -3
- package/dist/features/categories/components/CategoriesIndexListing.d.ts +1 -1
- package/dist/features/categories/components/CategoriesIndexListing.js +41 -38
- package/dist/features/categories/components/CategoriesIndexPageView.d.ts +6 -1
- package/dist/features/categories/components/CategoriesIndexPageView.js +41 -2
- package/dist/features/categories/components/CategoryDetailPageView.js +13 -6
- package/dist/features/categories/components/CategoryDetailTabs.d.ts +5 -0
- package/dist/features/categories/components/CategoryDetailTabs.js +17 -0
- package/dist/features/categories/components/CategoryFilters.js +2 -1
- package/dist/features/categories/components/CategoryGrid.d.ts +2 -1
- package/dist/features/categories/components/CategoryGrid.js +8 -6
- package/dist/features/categories/components/CategoryProductsListing.js +22 -11
- package/dist/features/categories/components/index.d.ts +2 -0
- package/dist/features/categories/components/index.js +1 -0
- package/dist/features/categories/hooks/useCategories.d.ts +20 -0
- package/dist/features/categories/hooks/useCategories.js +50 -1
- package/dist/features/categories/hooks/useCategoryTree.d.ts +17 -0
- package/dist/features/categories/hooks/useCategoryTree.js +65 -0
- package/dist/features/events/components/AdminEventEditorView.d.ts +6 -0
- package/dist/features/events/components/AdminEventEditorView.js +203 -0
- package/dist/features/events/components/AdminEventsView.js +28 -2
- package/dist/features/events/components/EventCard.js +4 -2
- package/dist/features/events/components/EventFilters.js +2 -1
- package/dist/features/events/components/EventsIndexListing.js +40 -10
- package/dist/features/events/components/EventsListPageView.d.ts +6 -1
- package/dist/features/events/components/EventsListPageView.js +40 -7
- package/dist/features/events/components/index.d.ts +2 -0
- package/dist/features/events/components/index.js +1 -0
- package/dist/features/events/hooks/useEvents.js +2 -0
- package/dist/features/events/types/index.d.ts +1 -0
- package/dist/features/homepage/components/BlogArticlesSection.js +1 -1
- package/dist/features/homepage/components/EventsSection.js +1 -1
- package/dist/features/homepage/components/FeaturedAuctionsSection.js +1 -1
- package/dist/features/homepage/components/FeaturedPreOrdersSection.js +1 -1
- package/dist/features/homepage/components/FeaturedProductsSection.js +1 -1
- package/dist/features/homepage/components/FeaturedStoresSection.js +1 -1
- package/dist/features/homepage/components/HeroCarousel.js +1 -1
- package/dist/features/homepage/components/MarketplaceHomepageView.js +27 -17
- package/dist/features/homepage/components/SectionCarousel.js +4 -4
- package/dist/features/homepage/components/ShopByCategorySection.js +2 -2
- package/dist/features/homepage/schemas/firestore.d.ts +1 -1
- package/dist/features/homepage/schemas/firestore.js +2 -1
- package/dist/features/layout/AppLayoutShell.d.ts +6 -2
- package/dist/features/layout/AppLayoutShell.js +7 -3
- package/dist/features/pre-orders/components/MarketplacePreorderCard.d.ts +3 -1
- package/dist/features/pre-orders/components/MarketplacePreorderCard.js +6 -2
- package/dist/features/pre-orders/components/PreOrderDetailPageView.js +80 -12
- package/dist/features/pre-orders/components/PreOrderFilters.d.ts +8 -0
- package/dist/features/pre-orders/components/PreOrderFilters.js +21 -0
- package/dist/features/pre-orders/components/PreOrdersIndexListing.d.ts +2 -1
- package/dist/features/pre-orders/components/PreOrdersIndexListing.js +69 -10
- package/dist/features/pre-orders/components/PreOrdersListView.d.ts +6 -1
- package/dist/features/pre-orders/components/PreOrdersListView.js +26 -7
- package/dist/features/pre-orders/components/index.d.ts +2 -0
- package/dist/features/pre-orders/components/index.js +1 -0
- package/dist/features/products/components/AuctionsIndexListing.d.ts +2 -1
- package/dist/features/products/components/AuctionsIndexListing.js +61 -9
- package/dist/features/products/components/InteractiveProductCard.d.ts +2 -4
- package/dist/features/products/components/InteractiveProductCard.js +2 -2
- package/dist/features/products/components/ProductDetailPageView.d.ts +1 -1
- package/dist/features/products/components/ProductDetailPageView.js +116 -25
- package/dist/features/products/components/ProductFilters.d.ts +6 -11
- package/dist/features/products/components/ProductFilters.js +5 -3
- package/dist/features/products/components/ProductGrid.d.ts +8 -2
- package/dist/features/products/components/ProductGrid.js +20 -5
- package/dist/features/products/components/ProductTabsShell.d.ts +3 -11
- package/dist/features/products/components/ProductTabsShell.js +14 -14
- package/dist/features/products/components/ProductsIndexListing.js +73 -9
- package/dist/features/products/components/ProductsIndexPageView.d.ts +6 -1
- package/dist/features/products/components/ProductsIndexPageView.js +39 -6
- package/dist/features/products/components/RelatedProductsCarousel.d.ts +7 -0
- package/dist/features/products/components/RelatedProductsCarousel.js +11 -0
- package/dist/features/products/components/index.d.ts +1 -0
- package/dist/features/products/components/index.js +1 -0
- package/dist/features/products/hooks/useProducts.js +16 -0
- package/dist/features/products/repository/products.repository.d.ts +8 -0
- package/dist/features/products/repository/products.repository.js +2 -0
- package/dist/features/products/schemas/index.d.ts +8 -8
- package/dist/features/products/types/index.d.ts +12 -0
- package/dist/features/promotions/components/CouponsIndexListing.d.ts +9 -0
- package/dist/features/promotions/components/CouponsIndexListing.js +86 -0
- package/dist/features/promotions/components/PromotionsView.d.ts +11 -5
- package/dist/features/promotions/components/PromotionsView.js +6 -1
- package/dist/features/promotions/components/index.d.ts +4 -2
- package/dist/features/promotions/components/index.js +2 -1
- package/dist/features/reviews/components/ReviewDetailPageView.d.ts +4 -0
- package/dist/features/reviews/components/ReviewDetailPageView.js +20 -0
- package/dist/features/reviews/components/ReviewDetailShell.d.ts +7 -0
- package/dist/features/reviews/components/ReviewDetailShell.js +80 -0
- package/dist/features/reviews/components/ReviewFilters.d.ts +3 -3
- package/dist/features/reviews/components/ReviewFilters.js +5 -4
- package/dist/features/reviews/components/ReviewsIndexListing.d.ts +4 -3
- package/dist/features/reviews/components/ReviewsIndexListing.js +35 -51
- package/dist/features/reviews/components/ReviewsIndexPageView.d.ts +6 -1
- package/dist/features/reviews/components/ReviewsIndexPageView.js +49 -3
- package/dist/features/reviews/components/ReviewsList.js +9 -1
- package/dist/features/reviews/components/index.d.ts +1 -0
- package/dist/features/reviews/hooks/useReviews.js +15 -1
- package/dist/features/reviews/types/index.d.ts +6 -1
- package/dist/features/seller/components/SellerSidebar.d.ts +8 -4
- package/dist/features/seller/components/SellerSidebar.js +6 -4
- package/dist/features/seller/components/index.d.ts +30 -0
- package/dist/features/seller/components/index.js +17 -0
- package/dist/features/seller/hooks/useSellerStore.d.ts +2 -0
- package/dist/features/seller/hooks/useSellerStore.js +2 -0
- package/dist/features/seller/permission-map.d.ts +4 -2
- package/dist/features/seller/permission-map.js +16 -14
- package/dist/features/seller/schemas/index.d.ts +2 -2
- package/dist/features/stores/api/[storeSlug]/reviews/route.d.ts +1 -1
- package/dist/features/stores/api/[storeSlug]/reviews/route.js +24 -19
- package/dist/features/stores/components/InteractiveStoreCard.d.ts +0 -5
- package/dist/features/stores/components/InteractiveStoreCard.js +9 -9
- package/dist/features/stores/components/StoreAuctionsListing.js +27 -9
- package/dist/features/stores/components/StoreDetailLayoutView.js +2 -0
- package/dist/features/stores/components/StoreFilters.d.ts +5 -0
- package/dist/features/stores/components/StoreFilters.js +20 -0
- package/dist/features/stores/components/StoreHeader.js +2 -2
- package/dist/features/stores/components/StorePreOrdersListing.d.ts +5 -0
- package/dist/features/stores/components/StorePreOrdersListing.js +40 -0
- package/dist/features/stores/components/StorePreOrdersPageView.d.ts +4 -0
- package/dist/features/stores/components/StorePreOrdersPageView.js +21 -0
- package/dist/features/stores/components/StoreProductsListing.js +21 -11
- package/dist/features/stores/components/StoreReviewsListing.js +2 -7
- package/dist/features/stores/components/StoresIndexListing.js +42 -8
- package/dist/features/stores/components/StoresIndexPageView.d.ts +6 -1
- package/dist/features/stores/components/StoresIndexPageView.js +9 -2
- package/dist/features/stores/components/index.d.ts +3 -0
- package/dist/features/stores/components/index.js +1 -0
- package/dist/features/stores/hooks/useStores.d.ts +7 -1
- package/dist/features/stores/hooks/useStores.js +16 -3
- package/dist/features/stores/schemas/index.d.ts +2 -2
- package/dist/features/stores/types/index.d.ts +3 -0
- package/dist/features/wishlist/hooks/useGuestWishlist.d.ts +20 -0
- package/dist/features/wishlist/hooks/useGuestWishlist.js +49 -0
- package/dist/features/wishlist/hooks/useWishlistCount.d.ts +7 -0
- package/dist/features/wishlist/hooks/useWishlistCount.js +31 -0
- package/dist/features/wishlist/hooks/useWishlistWithGuest.d.ts +56 -0
- package/dist/features/wishlist/hooks/useWishlistWithGuest.js +57 -0
- package/dist/features/wishlist/index.d.ts +3 -0
- package/dist/features/wishlist/index.js +3 -0
- package/dist/features/wishlist/utils/guest-wishlist.d.ts +22 -0
- package/dist/features/wishlist/utils/guest-wishlist.js +70 -0
- package/dist/index.d.ts +50 -1
- package/dist/index.js +63 -1
- package/dist/next/routing/route-map.d.ts +70 -36
- package/dist/next/routing/route-map.js +30 -22
- package/dist/seed/addresses-seed-data.js +62 -261
- package/dist/seed/beyblade-seed-data.d.ts +7 -0
- package/dist/seed/beyblade-seed-data.js +947 -0
- package/dist/seed/bids-seed-data.d.ts +10 -2
- package/dist/seed/bids-seed-data.js +220 -1071
- package/dist/seed/blog-posts-seed-data.d.ts +2 -2
- package/dist/seed/blog-posts-seed-data.js +455 -117
- package/dist/seed/cart-seed-data.d.ts +9 -9
- package/dist/seed/cart-seed-data.js +73 -74
- package/dist/seed/coupons-seed-data.d.ts +3 -4
- package/dist/seed/coupons-seed-data.js +3 -509
- package/dist/seed/events-seed-data.d.ts +2 -2
- package/dist/seed/events-seed-data.js +315 -476
- package/dist/seed/faq-seed-data.d.ts +18 -41
- package/dist/seed/faq-seed-data.js +1059 -1172
- package/dist/seed/hot-wheels-seed-data.d.ts +7 -0
- package/dist/seed/hot-wheels-seed-data.js +1365 -0
- package/dist/seed/index.d.ts +6 -1
- package/dist/seed/index.js +6 -1
- package/dist/seed/pokemon-carousel-slides-seed-data.d.ts +4 -2
- package/dist/seed/pokemon-carousel-slides-seed-data.js +152 -268
- package/dist/seed/pokemon-categories-seed-data.d.ts +18 -21
- package/dist/seed/pokemon-categories-seed-data.js +424 -1004
- package/dist/seed/pokemon-coupons-seed-data.d.ts +6 -0
- package/dist/seed/pokemon-coupons-seed-data.js +465 -0
- package/dist/seed/pokemon-homepage-sections-seed-data.d.ts +3 -2
- package/dist/seed/pokemon-homepage-sections-seed-data.js +67 -289
- package/dist/seed/pokemon-products-seed-data.js +662 -0
- package/dist/seed/pokemon-seed-bundle.d.ts +32 -11
- package/dist/seed/pokemon-seed-bundle.js +41 -11
- package/dist/seed/pokemon-stores-seed-data.d.ts +2 -3
- package/dist/seed/pokemon-stores-seed-data.js +56 -31
- package/dist/seed/pokemon-users-seed-data.d.ts +2 -2
- package/dist/seed/pokemon-users-seed-data.js +245 -261
- package/dist/seed/reviews-seed-data.d.ts +17 -2
- package/dist/seed/reviews-seed-data.js +519 -483
- package/dist/seed/site-settings-seed-data.js +14 -14
- package/dist/seed/store-addresses-seed-data.js +68 -50
- package/dist/seed/transformers-seed-data.d.ts +7 -0
- package/dist/seed/transformers-seed-data.js +510 -0
- package/dist/seed/wishlists-seed-data.d.ts +5 -1
- package/dist/seed/wishlists-seed-data.js +82 -4
- package/dist/server.d.ts +1 -0
- package/dist/server.js +2 -0
- package/dist/tokens/index.d.ts +6 -0
- package/dist/tokens/index.js +2 -0
- package/dist/ui/components/BaseListingCard.js +24 -26
- package/dist/ui/components/BaseListingCard.style.css +5 -5
- package/dist/ui/components/HorizontalScroller.d.ts +1 -1
- package/dist/ui/components/HorizontalScroller.js +19 -5
- package/dist/ui/components/SideDrawer.style.css +3 -11
- package/dist/ui/rich-text/RichText.js +19 -1
- package/package.json +1 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
const DEFAULT_GUEST_WISHLIST_KEY = process.env.NEXT_PUBLIC_APP_ID
|
|
2
|
+
? `${process.env.NEXT_PUBLIC_APP_ID}_guest_wishlist`
|
|
3
|
+
: "guest_wishlist";
|
|
4
|
+
function getDefaultStorage() {
|
|
5
|
+
if (typeof window === "undefined")
|
|
6
|
+
return null;
|
|
7
|
+
return window.localStorage;
|
|
8
|
+
}
|
|
9
|
+
function readItems(storage, key) {
|
|
10
|
+
if (!storage)
|
|
11
|
+
return [];
|
|
12
|
+
try {
|
|
13
|
+
const raw = storage.getItem(key);
|
|
14
|
+
if (!raw)
|
|
15
|
+
return [];
|
|
16
|
+
const parsed = JSON.parse(raw);
|
|
17
|
+
return Array.isArray(parsed) ? parsed : [];
|
|
18
|
+
}
|
|
19
|
+
catch {
|
|
20
|
+
return [];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function writeItems(storage, key, items) {
|
|
24
|
+
if (!storage)
|
|
25
|
+
return;
|
|
26
|
+
storage.setItem(key, JSON.stringify(items));
|
|
27
|
+
}
|
|
28
|
+
export function getGuestWishlistItems(storage = getDefaultStorage(), key = DEFAULT_GUEST_WISHLIST_KEY) {
|
|
29
|
+
return readItems(storage, key);
|
|
30
|
+
}
|
|
31
|
+
export function addToGuestWishlist(itemId, type, snapshot, storage = getDefaultStorage(), key = DEFAULT_GUEST_WISHLIST_KEY) {
|
|
32
|
+
const items = readItems(storage, key);
|
|
33
|
+
const existing = items.find((i) => i.itemId === itemId && i.type === type);
|
|
34
|
+
if (existing) {
|
|
35
|
+
// Already in wishlist, return unchanged
|
|
36
|
+
return items;
|
|
37
|
+
}
|
|
38
|
+
const updated = [
|
|
39
|
+
...items,
|
|
40
|
+
{
|
|
41
|
+
itemId,
|
|
42
|
+
type,
|
|
43
|
+
title: snapshot?.title,
|
|
44
|
+
image: snapshot?.image,
|
|
45
|
+
addedAt: new Date().toISOString(),
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
writeItems(storage, key, updated);
|
|
49
|
+
return updated;
|
|
50
|
+
}
|
|
51
|
+
export function removeFromGuestWishlist(itemId, type, storage = getDefaultStorage(), key = DEFAULT_GUEST_WISHLIST_KEY) {
|
|
52
|
+
const updated = readItems(storage, key).filter((i) => !(i.itemId === itemId && i.type === type));
|
|
53
|
+
writeItems(storage, key, updated);
|
|
54
|
+
return updated;
|
|
55
|
+
}
|
|
56
|
+
export function isInGuestWishlist(itemId, type, storage = getDefaultStorage(), key = DEFAULT_GUEST_WISHLIST_KEY) {
|
|
57
|
+
const items = readItems(storage, key);
|
|
58
|
+
return items.some((i) => i.itemId === itemId && i.type === type);
|
|
59
|
+
}
|
|
60
|
+
export function clearGuestWishlist(storage = getDefaultStorage(), key = DEFAULT_GUEST_WISHLIST_KEY) {
|
|
61
|
+
if (!storage)
|
|
62
|
+
return;
|
|
63
|
+
storage.removeItem(key);
|
|
64
|
+
}
|
|
65
|
+
export function getGuestWishlistCount(storage = getDefaultStorage(), key = DEFAULT_GUEST_WISHLIST_KEY) {
|
|
66
|
+
return readItems(storage, key).length;
|
|
67
|
+
}
|
|
68
|
+
export function getGuestWishlistByType(type, storage = getDefaultStorage(), key = DEFAULT_GUEST_WISHLIST_KEY) {
|
|
69
|
+
return readItems(storage, key).filter((i) => i.type === type);
|
|
70
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -355,6 +355,8 @@ export { inferMutationEvent } from "./core/index";
|
|
|
355
355
|
export { invalidateIntegrationKeysCache } from "./core/index";
|
|
356
356
|
export { logger } from "./core/index";
|
|
357
357
|
export { newsletterRepository } from "./core/index";
|
|
358
|
+
export { contactSubmissionsRepository, CONTACT_SUBMISSIONS_COLLECTION } from "./core/index";
|
|
359
|
+
export type { ContactSubmissionDocument, ContactSubmissionCreateInput } from "./core/index";
|
|
358
360
|
export { onMutation } from "./core/index";
|
|
359
361
|
export { resetMarketDefaults } from "./core/index";
|
|
360
362
|
export { resolveSiteConfig } from "./core/index";
|
|
@@ -603,6 +605,10 @@ export { siteSettingsSeedData } from "./seed/index";
|
|
|
603
605
|
export { storeAddressesSeedData } from "./seed/index";
|
|
604
606
|
export { storesSeedData } from "./seed/index";
|
|
605
607
|
export { pokemonStoresSeedData } from "./seed/index";
|
|
608
|
+
export { allProductsSeedData } from "./seed/index";
|
|
609
|
+
export { hotWheelsProductsSeedData } from "./seed/index";
|
|
610
|
+
export { beybladeProductsSeedData } from "./seed/index";
|
|
611
|
+
export { transformersProductsSeedData } from "./seed/index";
|
|
606
612
|
export { usersSeedData } from "./seed/index";
|
|
607
613
|
export { wishlistsSeedData } from "./seed/index";
|
|
608
614
|
export type { CouponDiscountType } from "./seed/index";
|
|
@@ -1034,6 +1040,8 @@ export { AdminCouponsView } from "./features/admin/index";
|
|
|
1034
1040
|
export { AdminDashboardView } from "./features/admin/index";
|
|
1035
1041
|
export { AdminFaqsView } from "./features/admin/index";
|
|
1036
1042
|
export { AdminFeatureFlagsView } from "./features/admin/index";
|
|
1043
|
+
export { AdminNewsletterView } from "./features/admin/index";
|
|
1044
|
+
export { AdminContactView } from "./features/admin/index";
|
|
1037
1045
|
export { AdminFilterBar } from "./features/admin/index";
|
|
1038
1046
|
export { AdminMediaView } from "./features/admin/index";
|
|
1039
1047
|
export { AdminNavigationView } from "./features/admin/index";
|
|
@@ -1079,6 +1087,11 @@ export { useChatRooms } from "./features/admin/index";
|
|
|
1079
1087
|
export { useCreateChatRoom } from "./features/admin/index";
|
|
1080
1088
|
export { useDashboardStats } from "./features/admin/index";
|
|
1081
1089
|
export { useDeleteChatRoom } from "./features/admin/index";
|
|
1090
|
+
export { useAdminListingData } from "./features/admin/index";
|
|
1091
|
+
export { AdminListingScaffold } from "./features/admin/index";
|
|
1092
|
+
export { toRecordArray } from "./features/admin/index";
|
|
1093
|
+
export { toStringValue } from "./features/admin/index";
|
|
1094
|
+
export { toRelativeDate } from "./features/admin/index";
|
|
1082
1095
|
export type { AdminAnalyticsData } from "./features/admin/index";
|
|
1083
1096
|
export type { AdminAnalyticsViewLabels } from "./features/admin/index";
|
|
1084
1097
|
export type { AdminAnalyticsViewProps } from "./features/admin/index";
|
|
@@ -1092,6 +1105,8 @@ export type { AdminCouponsViewProps } from "./features/admin/index";
|
|
|
1092
1105
|
export type { AdminDashboardViewProps } from "./features/admin/index";
|
|
1093
1106
|
export type { AdminFaqsViewProps } from "./features/admin/index";
|
|
1094
1107
|
export type { AdminFeatureFlagsViewProps } from "./features/admin/index";
|
|
1108
|
+
export type { AdminNewsletterViewProps } from "./features/admin/index";
|
|
1109
|
+
export type { AdminContactViewProps } from "./features/admin/index";
|
|
1095
1110
|
export type { AdminFilterBarProps } from "./features/admin/index";
|
|
1096
1111
|
export type { AdminListParams } from "./features/admin/index";
|
|
1097
1112
|
export type { AdminListResponse } from "./features/admin/index";
|
|
@@ -1619,6 +1634,8 @@ export type { PubSubJobFn } from "./features/cron/index";
|
|
|
1619
1634
|
export type { ScheduledJobFn } from "./features/cron/index";
|
|
1620
1635
|
export { AdminEventEntriesView } from "./features/events/index";
|
|
1621
1636
|
export { AdminEventsView } from "./features/events/index";
|
|
1637
|
+
export { AdminEventEditorView } from "./features/events/index";
|
|
1638
|
+
export type { AdminEventEditorViewProps } from "./features/events/index";
|
|
1622
1639
|
export { EVENTS_COLLECTION } from "./features/events/index";
|
|
1623
1640
|
export { EVENT_ADMIN_SORT_OPTIONS } from "./features/events/index";
|
|
1624
1641
|
export { EVENT_ENTRIES_COLLECTION } from "./features/events/index";
|
|
@@ -2274,8 +2291,11 @@ export { COUPONS_UPDATABLE_FIELDS } from "./features/promotions/index";
|
|
|
2274
2291
|
export { COUPON_TYPE_LABELS } from "./features/promotions/index";
|
|
2275
2292
|
export { COUPON_USAGE_SUBCOLLECTION } from "./features/promotions/index";
|
|
2276
2293
|
export { CouponCard } from "./features/promotions/index";
|
|
2294
|
+
export { CouponsIndexListing } from "./features/promotions/index";
|
|
2295
|
+
export type { CouponsIndexListingProps } from "./features/promotions/index";
|
|
2277
2296
|
export { DEFAULT_COUPON_DATA } from "./features/promotions/index";
|
|
2278
|
-
export { PromotionsView } from "./features/promotions/index";
|
|
2297
|
+
export { PromotionsView, PromotionsHero } from "./features/promotions/index";
|
|
2298
|
+
export type { PromotionsHeroProps } from "./features/promotions/index";
|
|
2279
2299
|
export { PromotionsViewProductSection } from "./features/promotions/index";
|
|
2280
2300
|
export { buildCouponColumns } from "./features/promotions/index";
|
|
2281
2301
|
export { buildSellerCouponCode } from "./features/promotions/index";
|
|
@@ -2346,6 +2366,8 @@ export { ReviewSummary } from "./features/reviews/index";
|
|
|
2346
2366
|
export { ReviewsList } from "./features/reviews/index";
|
|
2347
2367
|
export { ReviewsListView } from "./features/reviews/index";
|
|
2348
2368
|
export { ReviewsIndexPageView } from "./features/reviews/components/ReviewsIndexPageView";
|
|
2369
|
+
export { ReviewDetailPageView } from "./features/reviews/components/ReviewDetailPageView";
|
|
2370
|
+
export type { ReviewDetailPageViewProps } from "./features/reviews/components/ReviewDetailPageView";
|
|
2349
2371
|
export { ReviewsIndexListing } from "./features/reviews/components/ReviewsIndexListing";
|
|
2350
2372
|
export type { ReviewsIndexListingProps } from "./features/reviews/components/ReviewsIndexListing";
|
|
2351
2373
|
export { ViewReviewModal } from "./features/reviews/index";
|
|
@@ -2455,6 +2477,18 @@ export { SellerStoreView } from "./features/seller/index";
|
|
|
2455
2477
|
export { SellerStorefrontView } from "./features/seller/index";
|
|
2456
2478
|
export { SellerTopProducts } from "./features/seller/index";
|
|
2457
2479
|
export { SellersListView } from "./features/seller/index";
|
|
2480
|
+
export { SellerAddressesView as StoreAddressesView } from "./features/seller/index";
|
|
2481
|
+
export { SellerAnalyticsView as StoreAnalyticsView } from "./features/seller/index";
|
|
2482
|
+
export { SellerCouponsView as StoreCouponsView } from "./features/seller/index";
|
|
2483
|
+
export { SellerCreateProductView as StoreCreateProductView } from "./features/seller/index";
|
|
2484
|
+
export { SellerEditProductView as StoreEditProductView } from "./features/seller/index";
|
|
2485
|
+
export { SellerOffersView as StoreOffersView } from "./features/seller/index";
|
|
2486
|
+
export { SellerOrdersView as StoreOrdersView } from "./features/seller/index";
|
|
2487
|
+
export { SellerPayoutSettingsView as StorePayoutSettingsView } from "./features/seller/index";
|
|
2488
|
+
export { SellerPayoutsView as StorePayoutsView } from "./features/seller/index";
|
|
2489
|
+
export { SellerProductsView as StoreProductListingsView } from "./features/seller/index";
|
|
2490
|
+
export { SellerShippingView as StoreShippingView } from "./features/seller/index";
|
|
2491
|
+
export { SellerStorefrontView as StoreStorefrontView } from "./features/seller/index";
|
|
2458
2492
|
export { buildPayoutColumns } from "./features/seller/index";
|
|
2459
2493
|
export { buildSellerColumns } from "./features/seller/index";
|
|
2460
2494
|
export { createOfferId } from "./features/seller/index";
|
|
@@ -2518,6 +2552,18 @@ export type { SellerStorefrontViewProps } from "./features/seller/index";
|
|
|
2518
2552
|
export type { SellerTopProductsLabels } from "./features/seller/index";
|
|
2519
2553
|
export type { SellerTopProductsProps } from "./features/seller/index";
|
|
2520
2554
|
export type { SellersListViewProps } from "./features/seller/index";
|
|
2555
|
+
export type { SellerAddressesViewProps as StoreAddressesViewProps } from "./features/seller/index";
|
|
2556
|
+
export type { SellerAnalyticsViewProps as StoreAnalyticsViewProps } from "./features/seller/index";
|
|
2557
|
+
export type { SellerCouponsViewProps as StoreCouponsViewProps } from "./features/seller/index";
|
|
2558
|
+
export type { SellerCreateProductViewProps as StoreCreateProductViewProps } from "./features/seller/index";
|
|
2559
|
+
export type { SellerEditProductViewProps as StoreEditProductViewProps } from "./features/seller/index";
|
|
2560
|
+
export type { SellerOffersViewProps as StoreOffersViewProps } from "./features/seller/index";
|
|
2561
|
+
export type { SellerOrdersViewProps as StoreOrdersViewProps } from "./features/seller/index";
|
|
2562
|
+
export type { SellerPayoutSettingsViewProps as StorePayoutSettingsViewProps } from "./features/seller/index";
|
|
2563
|
+
export type { SellerPayoutsViewProps as StorePayoutsViewProps } from "./features/seller/index";
|
|
2564
|
+
export type { SellerProductsViewProps as StoreProductListingsViewProps } from "./features/seller/index";
|
|
2565
|
+
export type { SellerShippingViewProps as StoreShippingViewProps } from "./features/seller/index";
|
|
2566
|
+
export type { SellerStorefrontViewProps as StoreStorefrontViewProps } from "./features/seller/index";
|
|
2521
2567
|
export type { StoreStatus } from "./features/seller/index";
|
|
2522
2568
|
export type { UpdateSellerStoreInput } from "./features/seller/index";
|
|
2523
2569
|
export type { UseBecomeSellerOptions } from "./features/seller/index";
|
|
@@ -2595,6 +2641,9 @@ export { StoreDetailLayoutView } from "./features/stores/components/StoreDetailL
|
|
|
2595
2641
|
export { StoreProductsPageView } from "./features/stores/components/StoreProductsPageView";
|
|
2596
2642
|
export { StoreAuctionsPageView } from "./features/stores/components/StoreAuctionsPageView";
|
|
2597
2643
|
export { StoreReviewsPageView } from "./features/stores/components/StoreReviewsPageView";
|
|
2644
|
+
export { StorePreOrdersPageView } from "./features/stores/components/StorePreOrdersPageView";
|
|
2645
|
+
export { StorePreOrdersListing } from "./features/stores/components/StorePreOrdersListing";
|
|
2646
|
+
export type { StorePreOrdersListingProps } from "./features/stores/components/StorePreOrdersListing";
|
|
2598
2647
|
export { buildStoreColumns } from "./features/stores/index";
|
|
2599
2648
|
export { generateStoreSlug } from "./features/stores/index";
|
|
2600
2649
|
export { storeAdminColumns } from "./features/stores/index";
|
package/dist/index.js
CHANGED
|
@@ -676,6 +676,8 @@ export { logger } from "./core/index";
|
|
|
676
676
|
// [DB]-Database layer — uses firebase-admin or another server-side DB SDK; can only run in a trusted server environment.
|
|
677
677
|
// newsletterRepository - Shared export for newsletter repository.
|
|
678
678
|
export { newsletterRepository } from "./core/index";
|
|
679
|
+
// contactSubmissionsRepository - Firestore repository for contact form submissions.
|
|
680
|
+
export { contactSubmissionsRepository, CONTACT_SUBMISSIONS_COLLECTION } from "./core/index";
|
|
679
681
|
// [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
|
|
680
682
|
// onMutation - Shared export for on mutation.
|
|
681
683
|
export { onMutation } from "./core/index";
|
|
@@ -1306,6 +1308,14 @@ export { storeAddressesSeedData } from "./seed/index";
|
|
|
1306
1308
|
export { storesSeedData } from "./seed/index";
|
|
1307
1309
|
// [SERVER-ONLY]-Server-only — Server-side seed dataset for Pokemon-themed stores.
|
|
1308
1310
|
export { pokemonStoresSeedData } from "./seed/index";
|
|
1311
|
+
// [SERVER-ONLY]-Server-only — Combined seed dataset for all 4 franchises (Pokemon, Hot Wheels, Beyblade, Transformers).
|
|
1312
|
+
export { allProductsSeedData } from "./seed/index";
|
|
1313
|
+
// [SERVER-ONLY]-Server-only — Hot Wheels franchise seed data.
|
|
1314
|
+
export { hotWheelsProductsSeedData } from "./seed/index";
|
|
1315
|
+
// [SERVER-ONLY]-Server-only — Beyblade Burst franchise seed data.
|
|
1316
|
+
export { beybladeProductsSeedData } from "./seed/index";
|
|
1317
|
+
// [SERVER-ONLY]-Server-only — Transformers franchise seed data.
|
|
1318
|
+
export { transformersProductsSeedData } from "./seed/index";
|
|
1309
1319
|
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
1310
1320
|
// usersSeedData - Model for users seed data.
|
|
1311
1321
|
export { usersSeedData } from "./seed/index";
|
|
@@ -2044,6 +2054,10 @@ export { AdminFaqsView } from "./features/admin/index";
|
|
|
2044
2054
|
// [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
|
|
2045
2055
|
// AdminFeatureFlagsView - Component for admin feature flags view.
|
|
2046
2056
|
export { AdminFeatureFlagsView } from "./features/admin/index";
|
|
2057
|
+
// AdminNewsletterView - Admin view for newsletter subscribers.
|
|
2058
|
+
export { AdminNewsletterView } from "./features/admin/index";
|
|
2059
|
+
// AdminContactView - Admin view for contact form submissions.
|
|
2060
|
+
export { AdminContactView } from "./features/admin/index";
|
|
2047
2061
|
// [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
|
|
2048
2062
|
// AdminFilterBar - Shared export for admin filter bar.
|
|
2049
2063
|
export { AdminFilterBar } from "./features/admin/index";
|
|
@@ -2179,6 +2193,21 @@ export { useDashboardStats } from "./features/admin/index";
|
|
|
2179
2193
|
// [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
|
|
2180
2194
|
// useDeleteChatRoom - React hook for use delete chat room.
|
|
2181
2195
|
export { useDeleteChatRoom } from "./features/admin/index";
|
|
2196
|
+
// [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
|
|
2197
|
+
// useAdminListingData - React hook for admin listing data fetching.
|
|
2198
|
+
export { useAdminListingData } from "./features/admin/index";
|
|
2199
|
+
// [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
|
|
2200
|
+
// AdminListingScaffold - Component for admin listing scaffold.
|
|
2201
|
+
export { AdminListingScaffold } from "./features/admin/index";
|
|
2202
|
+
// [CLIENT-SSR]-Utility function for converting values to record array.
|
|
2203
|
+
// toRecordArray - Helper for converting values to record array.
|
|
2204
|
+
export { toRecordArray } from "./features/admin/index";
|
|
2205
|
+
// [CLIENT-SSR]-Utility function for converting values to string with fallback.
|
|
2206
|
+
// toStringValue - Helper for converting values to string.
|
|
2207
|
+
export { toStringValue } from "./features/admin/index";
|
|
2208
|
+
// [CLIENT-SSR]-Utility function for converting date values to relative date string.
|
|
2209
|
+
// toRelativeDate - Helper for converting date to relative date string.
|
|
2210
|
+
export { toRelativeDate } from "./features/admin/index";
|
|
2182
2211
|
// ./features/admin/server
|
|
2183
2212
|
// [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
|
|
2184
2213
|
// adminBidsGET - Shared export for admin bids get.
|
|
@@ -3174,6 +3203,8 @@ export { AdminEventEntriesView } from "./features/events/index";
|
|
|
3174
3203
|
// [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
|
|
3175
3204
|
// AdminEventsView - Component for admin events view.
|
|
3176
3205
|
export { AdminEventsView } from "./features/events/index";
|
|
3206
|
+
// AdminEventEditorView - Component for admin event create/edit form.
|
|
3207
|
+
export { AdminEventEditorView } from "./features/events/index";
|
|
3177
3208
|
// [SCHEMA]-Schema / data-shape constant — Zod validator, default-value object, or Firestore collection/field name constant.
|
|
3178
3209
|
// EVENTS_COLLECTION - Constant used across modules.
|
|
3179
3210
|
export { EVENTS_COLLECTION } from "./features/events/index";
|
|
@@ -4338,12 +4369,14 @@ export { COUPON_USAGE_SUBCOLLECTION } from "./features/promotions/index";
|
|
|
4338
4369
|
// [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
|
|
4339
4370
|
// CouponCard - Component for coupon card.
|
|
4340
4371
|
export { CouponCard } from "./features/promotions/index";
|
|
4372
|
+
// CouponsIndexListing - Client component for browsing coupons with search/filter/sort.
|
|
4373
|
+
export { CouponsIndexListing } from "./features/promotions/index";
|
|
4341
4374
|
// [SCHEMA]-Schema / data-shape constant — Zod validator, default-value object, or Firestore collection/field name constant.
|
|
4342
4375
|
// DEFAULT_COUPON_DATA - Constant used across modules.
|
|
4343
4376
|
export { DEFAULT_COUPON_DATA } from "./features/promotions/index";
|
|
4344
4377
|
// [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
|
|
4345
4378
|
// PromotionsView - Component for promotions view.
|
|
4346
|
-
export { PromotionsView } from "./features/promotions/index";
|
|
4379
|
+
export { PromotionsView, PromotionsHero } from "./features/promotions/index";
|
|
4347
4380
|
// [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
|
|
4348
4381
|
// PromotionsViewProductSection - Shared export for promotions view product section.
|
|
4349
4382
|
export { PromotionsViewProductSection } from "./features/promotions/index";
|
|
@@ -4477,6 +4510,8 @@ export { ReviewsList } from "./features/reviews/index";
|
|
|
4477
4510
|
export { ReviewsListView } from "./features/reviews/index";
|
|
4478
4511
|
// [SERVER-RSC]-Self-fetching index page view for reviews.
|
|
4479
4512
|
export { ReviewsIndexPageView } from "./features/reviews/components/ReviewsIndexPageView";
|
|
4513
|
+
// [SERVER-RSC]-Self-fetching review detail page view.
|
|
4514
|
+
export { ReviewDetailPageView } from "./features/reviews/components/ReviewDetailPageView";
|
|
4480
4515
|
// ReviewsIndexListing - Client listing component with sort/filter/pagination.
|
|
4481
4516
|
export { ReviewsIndexListing } from "./features/reviews/components/ReviewsIndexListing";
|
|
4482
4517
|
// [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
|
|
@@ -4702,6 +4737,31 @@ export { SellerTopProducts } from "./features/seller/index";
|
|
|
4702
4737
|
// [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
|
|
4703
4738
|
// SellersListView - Component for sellers list view.
|
|
4704
4739
|
export { SellersListView } from "./features/seller/index";
|
|
4740
|
+
// [CLIENT-SSR]-Store* aliases — same components, renamed for store-centric terminology
|
|
4741
|
+
// StoreAddressesView - Alias for SellerAddressesView.
|
|
4742
|
+
export { SellerAddressesView as StoreAddressesView } from "./features/seller/index";
|
|
4743
|
+
// StoreAnalyticsView - Alias for SellerAnalyticsView.
|
|
4744
|
+
export { SellerAnalyticsView as StoreAnalyticsView } from "./features/seller/index";
|
|
4745
|
+
// StoreCouponsView - Alias for SellerCouponsView.
|
|
4746
|
+
export { SellerCouponsView as StoreCouponsView } from "./features/seller/index";
|
|
4747
|
+
// StoreCreateProductView - Alias for SellerCreateProductView.
|
|
4748
|
+
export { SellerCreateProductView as StoreCreateProductView } from "./features/seller/index";
|
|
4749
|
+
// StoreEditProductView - Alias for SellerEditProductView.
|
|
4750
|
+
export { SellerEditProductView as StoreEditProductView } from "./features/seller/index";
|
|
4751
|
+
// StoreOffersView - Alias for SellerOffersView.
|
|
4752
|
+
export { SellerOffersView as StoreOffersView } from "./features/seller/index";
|
|
4753
|
+
// StoreOrdersView - Alias for SellerOrdersView.
|
|
4754
|
+
export { SellerOrdersView as StoreOrdersView } from "./features/seller/index";
|
|
4755
|
+
// StorePayoutSettingsView - Alias for SellerPayoutSettingsView.
|
|
4756
|
+
export { SellerPayoutSettingsView as StorePayoutSettingsView } from "./features/seller/index";
|
|
4757
|
+
// StorePayoutsView - Alias for SellerPayoutsView.
|
|
4758
|
+
export { SellerPayoutsView as StorePayoutsView } from "./features/seller/index";
|
|
4759
|
+
// StoreProductListingsView - Alias for SellerProductsView.
|
|
4760
|
+
export { SellerProductsView as StoreProductListingsView } from "./features/seller/index";
|
|
4761
|
+
// StoreShippingView - Alias for SellerShippingView.
|
|
4762
|
+
export { SellerShippingView as StoreShippingView } from "./features/seller/index";
|
|
4763
|
+
// StoreStorefrontView - Alias for SellerStorefrontView.
|
|
4764
|
+
export { SellerStorefrontView as StoreStorefrontView } from "./features/seller/index";
|
|
4705
4765
|
// [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
|
|
4706
4766
|
// buildPayoutColumns - Helper for build payout columns.
|
|
4707
4767
|
export { buildPayoutColumns } from "./features/seller/index";
|
|
@@ -4927,6 +4987,8 @@ export { StoreDetailLayoutView } from "./features/stores/components/StoreDetailL
|
|
|
4927
4987
|
export { StoreProductsPageView } from "./features/stores/components/StoreProductsPageView";
|
|
4928
4988
|
export { StoreAuctionsPageView } from "./features/stores/components/StoreAuctionsPageView";
|
|
4929
4989
|
export { StoreReviewsPageView } from "./features/stores/components/StoreReviewsPageView";
|
|
4990
|
+
export { StorePreOrdersPageView } from "./features/stores/components/StorePreOrdersPageView";
|
|
4991
|
+
export { StorePreOrdersListing } from "./features/stores/components/StorePreOrdersListing";
|
|
4930
4992
|
// [CLIENT-SSR]-Runs in both SSR and browser — React component or hook that does not depend on browser-only APIs.
|
|
4931
4993
|
// buildStoreColumns - Helper for build store columns.
|
|
4932
4994
|
export { buildStoreColumns } from "./features/stores/index";
|
|
@@ -5,7 +5,8 @@ export interface RouteMap {
|
|
|
5
5
|
ERRORS: Record<string, string>;
|
|
6
6
|
AUTH: Record<string, string>;
|
|
7
7
|
USER: Record<string, RoutePath>;
|
|
8
|
-
SELLER
|
|
8
|
+
/** Store management dashboard (requires seller role). Replaces the old SELLER section. */
|
|
9
|
+
STORE: Record<string, RoutePath>;
|
|
9
10
|
ADMIN: Record<string, RoutePath>;
|
|
10
11
|
DEMO: Record<string, RoutePath>;
|
|
11
12
|
BLOG: Record<string, RoutePath>;
|
|
@@ -28,11 +29,14 @@ export declare const DEFAULT_ROUTE_MAP: {
|
|
|
28
29
|
readonly STORE_DETAIL: (storeSlug: string) => string;
|
|
29
30
|
readonly STORE_PRODUCTS: (storeSlug: string) => string;
|
|
30
31
|
readonly STORE_AUCTIONS: (storeSlug: string) => string;
|
|
32
|
+
readonly STORE_PRE_ORDERS: (storeSlug: string) => string;
|
|
31
33
|
readonly STORE_REVIEWS: (storeSlug: string) => string;
|
|
32
34
|
readonly STORE_ABOUT: (storeSlug: string) => string;
|
|
35
|
+
readonly STORE_COUPONS: (storeSlug: string) => string;
|
|
33
36
|
readonly CATEGORIES: "/categories";
|
|
34
37
|
readonly CATEGORY_DETAIL: (slug: string) => string;
|
|
35
38
|
readonly REVIEWS: "/reviews";
|
|
39
|
+
readonly REVIEW_DETAIL: (id: string) => string;
|
|
36
40
|
readonly SEARCH: "/search";
|
|
37
41
|
readonly PROMOTIONS: "/promotions";
|
|
38
42
|
readonly ABOUT: "/about";
|
|
@@ -75,7 +79,7 @@ export declare const DEFAULT_ROUTE_MAP: {
|
|
|
75
79
|
readonly PROFILE: "/user/profile";
|
|
76
80
|
readonly SETTINGS: "/user/settings";
|
|
77
81
|
readonly ORDERS: "/user/orders";
|
|
78
|
-
readonly WISHLIST: "/
|
|
82
|
+
readonly WISHLIST: "/wishlist";
|
|
79
83
|
readonly ADDRESSES: "/user/addresses";
|
|
80
84
|
readonly ADDRESSES_ADD: "/user/addresses/add";
|
|
81
85
|
readonly ADDRESSES_EDIT: (id: string) => string;
|
|
@@ -89,23 +93,23 @@ export declare const DEFAULT_ROUTE_MAP: {
|
|
|
89
93
|
readonly CHECKOUT_SUCCESS: "/checkout/success";
|
|
90
94
|
readonly OFFERS: "/user/offers";
|
|
91
95
|
};
|
|
92
|
-
readonly
|
|
93
|
-
readonly DASHBOARD: "/
|
|
94
|
-
readonly PRODUCTS: "/
|
|
95
|
-
readonly PRODUCTS_NEW: "/
|
|
96
|
+
readonly STORE: {
|
|
97
|
+
readonly DASHBOARD: "/store";
|
|
98
|
+
readonly PRODUCTS: "/store/products";
|
|
99
|
+
readonly PRODUCTS_NEW: "/store/products/new";
|
|
96
100
|
readonly PRODUCTS_EDIT: (id: string) => string;
|
|
97
|
-
readonly ORDERS: "/
|
|
98
|
-
readonly AUCTIONS: "/
|
|
99
|
-
readonly PRE_ORDERS: "/
|
|
100
|
-
readonly ANALYTICS: "/
|
|
101
|
-
readonly PAYOUTS: "/
|
|
102
|
-
readonly
|
|
103
|
-
readonly SHIPPING: "/
|
|
104
|
-
readonly PAYOUT_SETTINGS: "/
|
|
105
|
-
readonly ADDRESSES: "/
|
|
106
|
-
readonly COUPONS: "/
|
|
107
|
-
readonly COUPONS_NEW: "/
|
|
108
|
-
readonly OFFERS: "/
|
|
101
|
+
readonly ORDERS: "/store/orders";
|
|
102
|
+
readonly AUCTIONS: "/store/auctions";
|
|
103
|
+
readonly PRE_ORDERS: "/store/pre-orders";
|
|
104
|
+
readonly ANALYTICS: "/store/analytics";
|
|
105
|
+
readonly PAYOUTS: "/store/payouts";
|
|
106
|
+
readonly STOREFRONT: "/store/storefront";
|
|
107
|
+
readonly SHIPPING: "/store/shipping";
|
|
108
|
+
readonly PAYOUT_SETTINGS: "/store/payout-settings";
|
|
109
|
+
readonly ADDRESSES: "/store/addresses";
|
|
110
|
+
readonly COUPONS: "/store/coupons";
|
|
111
|
+
readonly COUPONS_NEW: "/store/coupons/new";
|
|
112
|
+
readonly OFFERS: "/store/offers";
|
|
109
113
|
};
|
|
110
114
|
readonly ADMIN: {
|
|
111
115
|
readonly DASHBOARD: "/admin/dashboard";
|
|
@@ -120,6 +124,8 @@ export declare const DEFAULT_ROUTE_MAP: {
|
|
|
120
124
|
readonly COUPONS: "/admin/coupons";
|
|
121
125
|
readonly MEDIA: "/admin/media";
|
|
122
126
|
readonly PRODUCTS: "/admin/products";
|
|
127
|
+
readonly DEALS: "/admin/deals";
|
|
128
|
+
readonly FEATURED: "/admin/featured";
|
|
123
129
|
readonly ORDERS: "/admin/orders";
|
|
124
130
|
readonly BIDS: "/admin/bids";
|
|
125
131
|
readonly BLOG: "/admin/blog";
|
|
@@ -131,6 +137,8 @@ export declare const DEFAULT_ROUTE_MAP: {
|
|
|
131
137
|
readonly FEATURE_FLAGS: "/admin/feature-flags";
|
|
132
138
|
readonly COPILOT: "/admin/copilot";
|
|
133
139
|
readonly ADS: "/admin/ads";
|
|
140
|
+
readonly NEWSLETTER: "/admin/newsletter";
|
|
141
|
+
readonly CONTACT: "/admin/contact";
|
|
134
142
|
};
|
|
135
143
|
readonly DEMO: {
|
|
136
144
|
readonly SEED: "/demo/seed";
|
|
@@ -159,11 +167,14 @@ export declare const ROUTES: {
|
|
|
159
167
|
readonly STORE_DETAIL: (storeSlug: string) => string;
|
|
160
168
|
readonly STORE_PRODUCTS: (storeSlug: string) => string;
|
|
161
169
|
readonly STORE_AUCTIONS: (storeSlug: string) => string;
|
|
170
|
+
readonly STORE_PRE_ORDERS: (storeSlug: string) => string;
|
|
162
171
|
readonly STORE_REVIEWS: (storeSlug: string) => string;
|
|
163
172
|
readonly STORE_ABOUT: (storeSlug: string) => string;
|
|
173
|
+
readonly STORE_COUPONS: (storeSlug: string) => string;
|
|
164
174
|
readonly CATEGORIES: "/categories";
|
|
165
175
|
readonly CATEGORY_DETAIL: (slug: string) => string;
|
|
166
176
|
readonly REVIEWS: "/reviews";
|
|
177
|
+
readonly REVIEW_DETAIL: (id: string) => string;
|
|
167
178
|
readonly SEARCH: "/search";
|
|
168
179
|
readonly PROMOTIONS: "/promotions";
|
|
169
180
|
readonly ABOUT: "/about";
|
|
@@ -206,7 +217,7 @@ export declare const ROUTES: {
|
|
|
206
217
|
readonly PROFILE: "/user/profile";
|
|
207
218
|
readonly SETTINGS: "/user/settings";
|
|
208
219
|
readonly ORDERS: "/user/orders";
|
|
209
|
-
readonly WISHLIST: "/
|
|
220
|
+
readonly WISHLIST: "/wishlist";
|
|
210
221
|
readonly ADDRESSES: "/user/addresses";
|
|
211
222
|
readonly ADDRESSES_ADD: "/user/addresses/add";
|
|
212
223
|
readonly ADDRESSES_EDIT: (id: string) => string;
|
|
@@ -220,23 +231,23 @@ export declare const ROUTES: {
|
|
|
220
231
|
readonly CHECKOUT_SUCCESS: "/checkout/success";
|
|
221
232
|
readonly OFFERS: "/user/offers";
|
|
222
233
|
};
|
|
223
|
-
readonly
|
|
224
|
-
readonly DASHBOARD: "/
|
|
225
|
-
readonly PRODUCTS: "/
|
|
226
|
-
readonly PRODUCTS_NEW: "/
|
|
234
|
+
readonly STORE: {
|
|
235
|
+
readonly DASHBOARD: "/store";
|
|
236
|
+
readonly PRODUCTS: "/store/products";
|
|
237
|
+
readonly PRODUCTS_NEW: "/store/products/new";
|
|
227
238
|
readonly PRODUCTS_EDIT: (id: string) => string;
|
|
228
|
-
readonly ORDERS: "/
|
|
229
|
-
readonly AUCTIONS: "/
|
|
230
|
-
readonly PRE_ORDERS: "/
|
|
231
|
-
readonly ANALYTICS: "/
|
|
232
|
-
readonly PAYOUTS: "/
|
|
233
|
-
readonly
|
|
234
|
-
readonly SHIPPING: "/
|
|
235
|
-
readonly PAYOUT_SETTINGS: "/
|
|
236
|
-
readonly ADDRESSES: "/
|
|
237
|
-
readonly COUPONS: "/
|
|
238
|
-
readonly COUPONS_NEW: "/
|
|
239
|
-
readonly OFFERS: "/
|
|
239
|
+
readonly ORDERS: "/store/orders";
|
|
240
|
+
readonly AUCTIONS: "/store/auctions";
|
|
241
|
+
readonly PRE_ORDERS: "/store/pre-orders";
|
|
242
|
+
readonly ANALYTICS: "/store/analytics";
|
|
243
|
+
readonly PAYOUTS: "/store/payouts";
|
|
244
|
+
readonly STOREFRONT: "/store/storefront";
|
|
245
|
+
readonly SHIPPING: "/store/shipping";
|
|
246
|
+
readonly PAYOUT_SETTINGS: "/store/payout-settings";
|
|
247
|
+
readonly ADDRESSES: "/store/addresses";
|
|
248
|
+
readonly COUPONS: "/store/coupons";
|
|
249
|
+
readonly COUPONS_NEW: "/store/coupons/new";
|
|
250
|
+
readonly OFFERS: "/store/offers";
|
|
240
251
|
};
|
|
241
252
|
readonly ADMIN: {
|
|
242
253
|
readonly DASHBOARD: "/admin/dashboard";
|
|
@@ -251,6 +262,8 @@ export declare const ROUTES: {
|
|
|
251
262
|
readonly COUPONS: "/admin/coupons";
|
|
252
263
|
readonly MEDIA: "/admin/media";
|
|
253
264
|
readonly PRODUCTS: "/admin/products";
|
|
265
|
+
readonly DEALS: "/admin/deals";
|
|
266
|
+
readonly FEATURED: "/admin/featured";
|
|
254
267
|
readonly ORDERS: "/admin/orders";
|
|
255
268
|
readonly BIDS: "/admin/bids";
|
|
256
269
|
readonly BLOG: "/admin/blog";
|
|
@@ -262,6 +275,8 @@ export declare const ROUTES: {
|
|
|
262
275
|
readonly FEATURE_FLAGS: "/admin/feature-flags";
|
|
263
276
|
readonly COPILOT: "/admin/copilot";
|
|
264
277
|
readonly ADS: "/admin/ads";
|
|
278
|
+
readonly NEWSLETTER: "/admin/newsletter";
|
|
279
|
+
readonly CONTACT: "/admin/contact";
|
|
265
280
|
};
|
|
266
281
|
readonly DEMO: {
|
|
267
282
|
readonly SEED: "/demo/seed";
|
|
@@ -271,6 +286,25 @@ export declare const ROUTES: {
|
|
|
271
286
|
readonly ARTICLE: (slug: string) => string;
|
|
272
287
|
};
|
|
273
288
|
};
|
|
289
|
+
/** @deprecated Use ROUTES.STORE instead */
|
|
290
|
+
export declare const SELLER_ROUTES: {
|
|
291
|
+
readonly DASHBOARD: "/store";
|
|
292
|
+
readonly PRODUCTS: "/store/products";
|
|
293
|
+
readonly PRODUCTS_NEW: "/store/products/new";
|
|
294
|
+
readonly PRODUCTS_EDIT: (id: string) => string;
|
|
295
|
+
readonly ORDERS: "/store/orders";
|
|
296
|
+
readonly AUCTIONS: "/store/auctions";
|
|
297
|
+
readonly PRE_ORDERS: "/store/pre-orders";
|
|
298
|
+
readonly ANALYTICS: "/store/analytics";
|
|
299
|
+
readonly PAYOUTS: "/store/payouts";
|
|
300
|
+
readonly STOREFRONT: "/store/storefront";
|
|
301
|
+
readonly SHIPPING: "/store/shipping";
|
|
302
|
+
readonly PAYOUT_SETTINGS: "/store/payout-settings";
|
|
303
|
+
readonly ADDRESSES: "/store/addresses";
|
|
304
|
+
readonly COUPONS: "/store/coupons";
|
|
305
|
+
readonly COUPONS_NEW: "/store/coupons/new";
|
|
306
|
+
readonly OFFERS: "/store/offers";
|
|
307
|
+
};
|
|
274
308
|
export declare const PUBLIC_ROUTES: readonly ["/", string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, "/unauthorized", "/auth/login", "/auth/register", "/auth/forgot-password", "/auth/reset-password", "/auth/verify-email"];
|
|
275
|
-
export declare const PROTECTED_ROUTES: readonly [string, string, string, string, string, string, string
|
|
309
|
+
export declare const PROTECTED_ROUTES: readonly [string, string, string, string, string, string, string];
|
|
276
310
|
export declare const AUTH_ROUTES: readonly ["/auth/login", "/auth/register"];
|
|
@@ -16,11 +16,14 @@ export const DEFAULT_ROUTE_MAP = {
|
|
|
16
16
|
STORE_DETAIL: (storeSlug) => `/stores/${storeSlug}`,
|
|
17
17
|
STORE_PRODUCTS: (storeSlug) => `/stores/${storeSlug}/products`,
|
|
18
18
|
STORE_AUCTIONS: (storeSlug) => `/stores/${storeSlug}/auctions`,
|
|
19
|
+
STORE_PRE_ORDERS: (storeSlug) => `/stores/${storeSlug}/pre-orders`,
|
|
19
20
|
STORE_REVIEWS: (storeSlug) => `/stores/${storeSlug}/reviews`,
|
|
20
21
|
STORE_ABOUT: (storeSlug) => `/stores/${storeSlug}/about`,
|
|
22
|
+
STORE_COUPONS: (storeSlug) => `/stores/${storeSlug}/coupons`,
|
|
21
23
|
CATEGORIES: "/categories",
|
|
22
24
|
CATEGORY_DETAIL: (slug) => `/categories/${slug}`,
|
|
23
25
|
REVIEWS: "/reviews",
|
|
26
|
+
REVIEW_DETAIL: (id) => `/reviews/${id}`,
|
|
24
27
|
SEARCH: "/search",
|
|
25
28
|
PROMOTIONS: "/promotions",
|
|
26
29
|
ABOUT: "/about",
|
|
@@ -63,7 +66,7 @@ export const DEFAULT_ROUTE_MAP = {
|
|
|
63
66
|
PROFILE: "/user/profile",
|
|
64
67
|
SETTINGS: "/user/settings",
|
|
65
68
|
ORDERS: "/user/orders",
|
|
66
|
-
WISHLIST: "/
|
|
69
|
+
WISHLIST: "/wishlist",
|
|
67
70
|
ADDRESSES: "/user/addresses",
|
|
68
71
|
ADDRESSES_ADD: "/user/addresses/add",
|
|
69
72
|
ADDRESSES_EDIT: (id) => `/user/addresses/edit/${id}`,
|
|
@@ -77,23 +80,23 @@ export const DEFAULT_ROUTE_MAP = {
|
|
|
77
80
|
CHECKOUT_SUCCESS: "/checkout/success",
|
|
78
81
|
OFFERS: "/user/offers",
|
|
79
82
|
},
|
|
80
|
-
|
|
81
|
-
DASHBOARD: "/
|
|
82
|
-
PRODUCTS: "/
|
|
83
|
-
PRODUCTS_NEW: "/
|
|
84
|
-
PRODUCTS_EDIT: (id) => `/
|
|
85
|
-
ORDERS: "/
|
|
86
|
-
AUCTIONS: "/
|
|
87
|
-
PRE_ORDERS: "/
|
|
88
|
-
ANALYTICS: "/
|
|
89
|
-
PAYOUTS: "/
|
|
90
|
-
|
|
91
|
-
SHIPPING: "/
|
|
92
|
-
PAYOUT_SETTINGS: "/
|
|
93
|
-
ADDRESSES: "/
|
|
94
|
-
COUPONS: "/
|
|
95
|
-
COUPONS_NEW: "/
|
|
96
|
-
OFFERS: "/
|
|
83
|
+
STORE: {
|
|
84
|
+
DASHBOARD: "/store",
|
|
85
|
+
PRODUCTS: "/store/products",
|
|
86
|
+
PRODUCTS_NEW: "/store/products/new",
|
|
87
|
+
PRODUCTS_EDIT: (id) => `/store/products/${id}/edit`,
|
|
88
|
+
ORDERS: "/store/orders",
|
|
89
|
+
AUCTIONS: "/store/auctions",
|
|
90
|
+
PRE_ORDERS: "/store/pre-orders",
|
|
91
|
+
ANALYTICS: "/store/analytics",
|
|
92
|
+
PAYOUTS: "/store/payouts",
|
|
93
|
+
STOREFRONT: "/store/storefront",
|
|
94
|
+
SHIPPING: "/store/shipping",
|
|
95
|
+
PAYOUT_SETTINGS: "/store/payout-settings",
|
|
96
|
+
ADDRESSES: "/store/addresses",
|
|
97
|
+
COUPONS: "/store/coupons",
|
|
98
|
+
COUPONS_NEW: "/store/coupons/new",
|
|
99
|
+
OFFERS: "/store/offers",
|
|
97
100
|
},
|
|
98
101
|
ADMIN: {
|
|
99
102
|
DASHBOARD: "/admin/dashboard",
|
|
@@ -108,6 +111,8 @@ export const DEFAULT_ROUTE_MAP = {
|
|
|
108
111
|
COUPONS: "/admin/coupons",
|
|
109
112
|
MEDIA: "/admin/media",
|
|
110
113
|
PRODUCTS: "/admin/products",
|
|
114
|
+
DEALS: "/admin/deals",
|
|
115
|
+
FEATURED: "/admin/featured",
|
|
111
116
|
ORDERS: "/admin/orders",
|
|
112
117
|
BIDS: "/admin/bids",
|
|
113
118
|
BLOG: "/admin/blog",
|
|
@@ -119,6 +124,8 @@ export const DEFAULT_ROUTE_MAP = {
|
|
|
119
124
|
FEATURE_FLAGS: "/admin/feature-flags",
|
|
120
125
|
COPILOT: "/admin/copilot",
|
|
121
126
|
ADS: "/admin/ads",
|
|
127
|
+
NEWSLETTER: "/admin/newsletter",
|
|
128
|
+
CONTACT: "/admin/contact",
|
|
122
129
|
},
|
|
123
130
|
DEMO: {
|
|
124
131
|
SEED: "/demo/seed",
|
|
@@ -148,9 +155,9 @@ export function createRouteMap(overrides = {}) {
|
|
|
148
155
|
...DEFAULT_ROUTE_MAP.USER,
|
|
149
156
|
...(overrides.USER ?? {}),
|
|
150
157
|
},
|
|
151
|
-
|
|
152
|
-
...DEFAULT_ROUTE_MAP.
|
|
153
|
-
...(overrides.
|
|
158
|
+
STORE: {
|
|
159
|
+
...DEFAULT_ROUTE_MAP.STORE,
|
|
160
|
+
...(overrides.STORE ?? {}),
|
|
154
161
|
},
|
|
155
162
|
ADMIN: {
|
|
156
163
|
...DEFAULT_ROUTE_MAP.ADMIN,
|
|
@@ -167,6 +174,8 @@ export function createRouteMap(overrides = {}) {
|
|
|
167
174
|
};
|
|
168
175
|
}
|
|
169
176
|
export const ROUTES = DEFAULT_ROUTE_MAP;
|
|
177
|
+
/** @deprecated Use ROUTES.STORE instead */
|
|
178
|
+
export const SELLER_ROUTES = ROUTES.STORE;
|
|
170
179
|
export const PUBLIC_ROUTES = [
|
|
171
180
|
ROUTES.HOME,
|
|
172
181
|
ROUTES.PUBLIC.FAQS,
|
|
@@ -195,7 +204,6 @@ export const PROTECTED_ROUTES = [
|
|
|
195
204
|
ROUTES.USER.PROFILE,
|
|
196
205
|
ROUTES.USER.SETTINGS,
|
|
197
206
|
ROUTES.USER.ORDERS,
|
|
198
|
-
ROUTES.USER.WISHLIST,
|
|
199
207
|
ROUTES.USER.ADDRESSES,
|
|
200
208
|
ROUTES.USER.ADDRESSES_ADD,
|
|
201
209
|
ROUTES.USER.NOTIFICATIONS,
|