@mohasinac/appkit 2.7.27 → 2.7.31
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/_internal/client/features/filters/filter-load-options.d.ts +29 -0
- package/dist/_internal/client/features/filters/filter-load-options.js +98 -0
- package/dist/_internal/client/features/layout/DashboardLayoutClient.js +1 -1
- package/dist/_internal/server/features/checkout/actions.js +42 -35
- package/dist/_internal/server/features/classified/adapters.d.ts +21 -0
- package/dist/_internal/server/features/classified/adapters.js +24 -0
- package/dist/_internal/server/features/classified/index.d.ts +3 -0
- package/dist/_internal/server/features/classified/index.js +3 -0
- package/dist/_internal/server/features/classified/metadata.d.ts +8 -0
- package/dist/_internal/server/features/classified/metadata.js +43 -0
- package/dist/_internal/server/features/classified/og.d.ts +30 -0
- package/dist/_internal/server/features/classified/og.js +76 -0
- package/dist/_internal/server/features/digital-code/adapters.d.ts +21 -0
- package/dist/_internal/server/features/digital-code/adapters.js +29 -0
- package/dist/_internal/server/features/digital-code/index.d.ts +3 -0
- package/dist/_internal/server/features/digital-code/index.js +3 -0
- package/dist/_internal/server/features/digital-code/metadata.d.ts +8 -0
- package/dist/_internal/server/features/digital-code/metadata.js +36 -0
- package/dist/_internal/server/features/digital-code/og.d.ts +27 -0
- package/dist/_internal/server/features/digital-code/og.js +77 -0
- package/dist/_internal/server/features/live/adapters.d.ts +21 -0
- package/dist/_internal/server/features/live/adapters.js +34 -0
- package/dist/_internal/server/features/live/index.d.ts +3 -0
- package/dist/_internal/server/features/live/index.js +3 -0
- package/dist/_internal/server/features/live/metadata.d.ts +8 -0
- package/dist/_internal/server/features/live/metadata.js +39 -0
- package/dist/_internal/server/features/live/og.d.ts +27 -0
- package/dist/_internal/server/features/live/og.js +72 -0
- package/dist/_internal/server/features/promotions/actions.js +4 -3
- package/dist/_internal/server/jobs/core/onOrderCreate.js +19 -16
- package/dist/_internal/server/jobs/core/onOrderStatusChange.js +25 -22
- package/dist/_internal/server/jobs/core/onProductWrite.js +48 -58
- package/dist/_internal/shared/actions/action-registry.js +504 -9
- package/dist/_internal/shared/features/blog/schema.d.ts +4 -4
- package/dist/_internal/shared/features/brands/schema.d.ts +5 -5
- package/dist/_internal/shared/features/cart/schema.d.ts +18 -18
- package/dist/_internal/shared/features/categories/bundle-copy.d.ts +1 -1
- package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +38 -38
- package/dist/_internal/shared/features/events/schema.d.ts +8 -8
- package/dist/_internal/shared/features/orders/schema.d.ts +8 -8
- package/dist/_internal/shared/features/products/schema.d.ts +42 -42
- package/dist/_internal/shared/features/promotions/schema.d.ts +4 -4
- package/dist/_internal/shared/features/reviews/schema.d.ts +1 -1
- package/dist/_internal/shared/media/limits.js +4 -3
- package/dist/client.d.ts +4 -0
- package/dist/client.js +2 -0
- package/dist/configs/next.js +4 -0
- package/dist/constants/api-endpoints.d.ts +6 -0
- package/dist/constants/api-endpoints.js +2 -0
- package/dist/constants/field-names.d.ts +1 -0
- package/dist/constants/field-names.js +1 -0
- package/dist/constants/table-keys.d.ts +6 -0
- package/dist/constants/table-keys.js +9 -0
- package/dist/core/hooks/useSyncManager.js +9 -8
- package/dist/features/about/components/FeesView.js +10 -7
- package/dist/features/about/components/HelpPageView.js +10 -1
- package/dist/features/about/components/HowAuctionsWorkView.js +10 -1
- package/dist/features/about/components/HowCheckoutWorksView.js +10 -1
- package/dist/features/about/components/HowOffersWorkView.js +10 -1
- package/dist/features/about/components/HowOrdersWorkView.js +10 -1
- package/dist/features/about/components/HowPayoutsWorkView.js +10 -1
- package/dist/features/about/components/HowPreOrdersWorkView.js +10 -1
- package/dist/features/about/components/HowReviewsWorkView.js +10 -1
- package/dist/features/about/components/PublicProfileView.js +46 -16
- package/dist/features/about/components/SecurityPrivacyView.js +7 -1
- package/dist/features/account/components/AddressesIndexListing.js +2 -2
- package/dist/features/account/components/NotificationBell.js +27 -16
- package/dist/features/account/components/NotificationPreferencesPanel.d.ts +9 -0
- package/dist/features/account/components/NotificationPreferencesPanel.js +91 -0
- package/dist/features/account/components/UserSidebar.js +4 -4
- package/dist/features/account/components/UserSupportView.js +16 -6
- package/dist/features/account/components/index.d.ts +2 -0
- package/dist/features/account/components/index.js +1 -0
- package/dist/features/account/schemas/index.d.ts +4 -4
- package/dist/features/account/types/index.d.ts +34 -0
- package/dist/features/admin/actions/admin-actions.js +4 -3
- package/dist/features/admin/actions/notification-actions.d.ts +24 -22
- package/dist/features/admin/actions/notification-actions.js +122 -22
- package/dist/features/admin/components/AdminAdEditorView.js +29 -15
- package/dist/features/admin/components/AdminAddressEditorView.d.ts +7 -0
- package/dist/features/admin/components/AdminAddressEditorView.js +117 -0
- package/dist/features/admin/components/AdminAdsView.js +22 -28
- package/dist/features/admin/components/AdminAllEventEntriesView.js +6 -1
- package/dist/features/admin/components/AdminBidsView.js +10 -3
- package/dist/features/admin/components/AdminBlogEditorView.js +2 -2
- package/dist/features/admin/components/AdminBlogView.js +8 -3
- package/dist/features/admin/components/AdminBrandsView.js +7 -2
- package/dist/features/admin/components/AdminBundleEditorView.js +5 -2
- package/dist/features/admin/components/AdminCarouselEditorView.js +6 -3
- package/dist/features/admin/components/AdminCarouselView.js +13 -7
- package/dist/features/admin/components/AdminCategoriesView.js +8 -3
- package/dist/features/admin/components/AdminCategoryEditorView.js +12 -9
- package/dist/features/admin/components/AdminContactView.js +6 -1
- package/dist/features/admin/components/AdminCouponEditorView.js +8 -2
- package/dist/features/admin/components/AdminCouponsView.js +6 -1
- package/dist/features/admin/components/AdminEmployeeEditorView.js +12 -9
- package/dist/features/admin/components/AdminFaqEditorView.js +2 -2
- package/dist/features/admin/components/AdminFaqsView.js +7 -2
- package/dist/features/admin/components/AdminFeatureFlagsView.js +58 -13
- package/dist/features/admin/components/AdminFeaturesView.js +4 -3
- package/dist/features/admin/components/AdminMediaView.js +9 -8
- package/dist/features/admin/components/AdminNavigationView.js +10 -17
- package/dist/features/admin/components/AdminNewsletterView.js +6 -1
- package/dist/features/admin/components/AdminNotificationsView.js +11 -3
- package/dist/features/admin/components/AdminOrdersView.js +6 -1
- package/dist/features/admin/components/AdminPayoutsView.js +10 -3
- package/dist/features/admin/components/AdminPrizeDrawsView.js +10 -3
- package/dist/features/admin/components/AdminProductEditorView.d.ts +3 -1
- package/dist/features/admin/components/AdminProductEditorView.js +12 -9
- package/dist/features/admin/components/AdminProductsView.js +18 -12
- package/dist/features/admin/components/AdminReturnRequestsView.js +5 -4
- package/dist/features/admin/components/AdminReviewsView.js +36 -26
- package/dist/features/admin/components/AdminScammerEditorView.js +3 -2
- package/dist/features/admin/components/AdminScammersView.js +28 -26
- package/dist/features/admin/components/AdminSectionsView.js +112 -99
- package/dist/features/admin/components/AdminSessionsView.js +10 -3
- package/dist/features/admin/components/AdminSidebar.js +4 -4
- package/dist/features/admin/components/AdminSiteSettingsView.js +45 -4
- package/dist/features/admin/components/AdminStoresView.js +6 -1
- package/dist/features/admin/components/AdminSublistingCategoriesView.js +0 -1
- package/dist/features/admin/components/AdminSupportTicketDetailView.js +1 -1
- package/dist/features/admin/components/AdminSupportTicketsView.js +32 -34
- package/dist/features/admin/components/AdminTeamView.js +6 -1
- package/dist/features/admin/components/AdminUserEditorView.js +8 -15
- package/dist/features/admin/components/AdminUsersView.js +6 -1
- package/dist/features/admin/components/AdminViewCards.js +4 -3
- package/dist/features/admin/components/DashboardStats.js +2 -2
- package/dist/features/admin/components/DataTable.js +2 -2
- package/dist/features/admin/components/index.d.ts +2 -0
- package/dist/features/admin/components/index.js +1 -0
- package/dist/features/admin/components/sections/adminSectionsTypes.js +4 -3
- package/dist/features/admin/repository/chat.repository.js +8 -8
- package/dist/features/admin/repository/site-settings.repository.d.ts +1 -0
- package/dist/features/admin/repository/site-settings.repository.js +11 -9
- package/dist/features/admin/schemas/firestore.d.ts +38 -0
- package/dist/features/admin/schemas/firestore.js +15 -0
- package/dist/features/auctions/components/AuctionBidsTable.d.ts +13 -0
- package/dist/features/auctions/components/AuctionBidsTable.js +62 -0
- package/dist/features/auctions/components/AuctionDetailPageView.js +15 -21
- package/dist/features/auctions/components/AuctionFilters.d.ts +7 -1
- package/dist/features/auctions/components/AuctionFilters.js +3 -2
- package/dist/features/auctions/components/MarketplaceAuctionCard.js +18 -9
- package/dist/features/auctions/components/MarketplaceAuctionGrid.js +3 -2
- package/dist/features/auctions/components/index.d.ts +2 -1
- package/dist/features/auctions/components/index.js +1 -1
- package/dist/features/auctions/schemas/index.d.ts +14 -14
- package/dist/features/auth/actions/realtime-token-actions.js +19 -4
- package/dist/features/auth/components/RegisterForm.js +8 -4
- package/dist/features/auth/consent-otp.d.ts +2 -0
- package/dist/features/auth/consent-otp.js +8 -0
- package/dist/features/auth/schemas/firestore.d.ts +2 -0
- package/dist/features/auth/schemas/firestore.js +18 -25
- package/dist/features/auth/schemas/index.d.ts +2 -2
- package/dist/features/before-after/api/[id]/route.js +8 -6
- package/dist/features/before-after/schemas/index.d.ts +2 -2
- package/dist/features/blog/actions/blog-actions.d.ts +3 -3
- package/dist/features/blog/components/BlogIndexListing.js +21 -2
- package/dist/features/blog/components/BlogPostForm.js +11 -5
- package/dist/features/blog/components/BlogPostView.js +10 -2
- package/dist/features/blog/schemas/index.d.ts +18 -18
- package/dist/features/cart/components/CartDrawer.js +3 -2
- package/dist/features/cart/components/CartView.js +2 -1
- package/dist/features/cart/components/CheckoutView.js +2 -1
- package/dist/features/cart/repository/cart.repository.js +4 -3
- package/dist/features/cart/utils/pending-ops.d.ts +1 -1
- package/dist/features/categories/api/[id]/route.js +4 -3
- package/dist/features/categories/api/route.js +4 -3
- package/dist/features/categories/components/BrandDetailPageView.js +2 -2
- package/dist/features/categories/components/BrandDetailTabs.d.ts +5 -1
- package/dist/features/categories/components/BrandDetailTabs.js +30 -16
- package/dist/features/categories/components/BundleCollage.d.ts +8 -0
- package/dist/features/categories/components/BundleCollage.js +50 -0
- package/dist/features/categories/components/BundleDetailView.js +2 -10
- package/dist/features/categories/components/BundleItemsPicker.js +20 -13
- package/dist/features/categories/components/CategoriesIndexListing.js +28 -9
- package/dist/features/categories/components/CategoryDetailPageView.js +2 -2
- package/dist/features/categories/components/CategoryDetailTabs.d.ts +5 -1
- package/dist/features/categories/components/CategoryDetailTabs.js +31 -16
- package/dist/features/categories/components/CategoryProductsListing.js +52 -13
- package/dist/features/categories/components/index.d.ts +2 -0
- package/dist/features/categories/components/index.js +1 -0
- package/dist/features/categories/schemas/index.d.ts +6 -6
- package/dist/features/checkout/actions/checkout-actions.js +4 -3
- package/dist/features/checkout/hooks/usePaymentCheckout.js +31 -22
- package/dist/features/classified/components/ClassifiedFilters.d.ts +12 -0
- package/dist/features/classified/components/ClassifiedFilters.js +20 -0
- package/dist/features/classified/components/ClassifiedIndexListing.d.ts +4 -0
- package/dist/features/classified/components/ClassifiedIndexListing.js +110 -0
- package/dist/features/classified/components/ClassifiedListView.d.ts +6 -0
- package/dist/features/classified/components/ClassifiedListView.js +43 -0
- package/dist/features/classified/components/index.d.ts +6 -0
- package/dist/features/classified/components/index.js +3 -0
- package/dist/features/collections/api/[slug]/route.js +16 -12
- package/dist/features/collections/schemas/index.d.ts +5 -5
- package/dist/features/consultation/api/[id]/route.js +12 -9
- package/dist/features/consultation/components/ConsultationForm.js +3 -2
- package/dist/features/consultation/schemas/index.d.ts +6 -6
- package/dist/features/contact/email.js +77 -116
- package/dist/features/copilot/components/AdminCopilotView.js +12 -2
- package/dist/features/corporate/api/[id]/route.js +12 -9
- package/dist/features/corporate/components/CorporateInquiryForm.js +2 -1
- package/dist/features/digital-codes/components/DigitalCodeFilters.d.ts +12 -0
- package/dist/features/digital-codes/components/DigitalCodeFilters.js +17 -0
- package/dist/features/digital-codes/components/DigitalCodesIndexListing.d.ts +4 -0
- package/dist/features/digital-codes/components/DigitalCodesIndexListing.js +107 -0
- package/dist/features/digital-codes/components/DigitalCodesListView.d.ts +6 -0
- package/dist/features/digital-codes/components/DigitalCodesListView.js +37 -0
- package/dist/features/digital-codes/components/index.d.ts +6 -0
- package/dist/features/digital-codes/components/index.js +3 -0
- package/dist/features/events/actions/event-actions.js +4 -3
- package/dist/features/events/components/AdminEventEditorView.js +3 -2
- package/dist/features/events/components/AdminEventsView.js +4 -2
- package/dist/features/events/components/EventPollWidget.js +5 -5
- package/dist/features/events/components/EventsIndexListing.js +2 -2
- package/dist/features/events/repository/event-entry.repository.d.ts +1 -0
- package/dist/features/events/repository/event-entry.repository.js +5 -0
- package/dist/features/events/schemas/index.d.ts +20 -20
- package/dist/features/faq/actions/faq-actions.d.ts +8 -8
- package/dist/features/faq/components/ContactCTA.js +3 -1
- package/dist/features/faq/components/FAQAccordion.js +1 -1
- package/dist/features/faq/schemas/index.d.ts +4 -4
- package/dist/features/filters/AsyncFacetSection.d.ts +18 -0
- package/dist/features/filters/AsyncFacetSection.js +65 -0
- package/dist/features/filters/index.d.ts +2 -0
- package/dist/features/filters/index.js +1 -0
- package/dist/features/forms/Checkbox.js +2 -2
- package/dist/features/forms/Input.js +2 -2
- package/dist/features/forms/Radio.js +5 -5
- package/dist/features/forms/Select.js +2 -2
- package/dist/features/forms/Slider.js +2 -2
- package/dist/features/forms/Textarea.js +2 -2
- package/dist/features/homepage/api/[id]/route.js +4 -3
- package/dist/features/homepage/api/sections/[id]/route.js +12 -9
- package/dist/features/homepage/components/AdSlot.js +2 -1
- package/dist/features/homepage/components/AdvertisementBanner.js +5 -3
- package/dist/features/homepage/components/BrandsSection.js +2 -2
- package/dist/features/homepage/components/CTABannerSection.js +2 -2
- package/dist/features/homepage/components/CharacterHotspot.d.ts +2 -2
- package/dist/features/homepage/components/CharacterHotspot.js +119 -157
- package/dist/features/homepage/components/CharacterHotspotForm.js +25 -20
- package/dist/features/homepage/components/CustomCardsSection.js +8 -6
- package/dist/features/homepage/components/FeaturedProductsSection.js +2 -2
- package/dist/features/homepage/components/GoogleReviewsSection.js +3 -3
- package/dist/features/homepage/components/HeroBanner.js +5 -4
- package/dist/features/homepage/components/HeroCarousel.js +13 -26
- package/dist/features/homepage/components/HowItWorksSection.js +4 -2
- package/dist/features/homepage/components/SocialFeedSection.js +2 -2
- package/dist/features/homepage/components/SocialPostCard.js +3 -2
- package/dist/features/homepage/lib/social-feed-fetcher.js +6 -3
- package/dist/features/layout/AppLayoutShell.d.ts +8 -2
- package/dist/features/layout/AppLayoutShell.js +54 -78
- package/dist/features/layout/BottomActions.js +43 -48
- package/dist/features/live/components/LiveItemFilters.d.ts +12 -0
- package/dist/features/live/components/LiveItemFilters.js +24 -0
- package/dist/features/live/components/LiveItemsIndexListing.d.ts +4 -0
- package/dist/features/live/components/LiveItemsIndexListing.js +108 -0
- package/dist/features/live/components/LiveItemsListView.d.ts +6 -0
- package/dist/features/live/components/LiveItemsListView.js +43 -0
- package/dist/features/live/components/index.d.ts +6 -0
- package/dist/features/live/components/index.js +3 -0
- package/dist/features/media/MediaLightbox.js +8 -14
- package/dist/features/media/types/index.d.ts +2 -2
- package/dist/features/media/upload/CameraCapture.js +2 -2
- package/dist/features/media/upload/ImageUpload.js +4 -2
- package/dist/features/media/upload/MediaUploadField.js +24 -8
- package/dist/features/media/upload/MediaUploadList.js +1 -1
- package/dist/features/orders/actions/order-actions.js +4 -3
- package/dist/features/orders/components/MarketplaceOrderCard.js +2 -1
- package/dist/features/orders/components/OrderFilters.js +12 -9
- package/dist/features/orders/schemas/index.d.ts +6 -6
- package/dist/features/pre-orders/api/[id]/route.js +12 -9
- package/dist/features/pre-orders/components/MarketplacePreorderCard.js +5 -4
- package/dist/features/pre-orders/components/PreOrderDetailPageView.js +29 -22
- package/dist/features/pre-orders/components/PreOrderFilters.d.ts +7 -1
- package/dist/features/pre-orders/components/PreOrderFilters.js +3 -2
- package/dist/features/pre-orders/components/PreOrdersIndexListing.js +17 -52
- package/dist/features/pre-orders/components/PreorderCard.d.ts +0 -9
- package/dist/features/pre-orders/components/PreorderCard.js +2 -13
- package/dist/features/pre-orders/components/index.d.ts +1 -1
- package/dist/features/pre-orders/components/index.js +1 -1
- package/dist/features/pre-orders/schemas/index.d.ts +10 -10
- package/dist/features/products/api/[id]/route.js +9 -7
- package/dist/features/products/api/route.js +1 -1
- package/dist/features/products/columns/productTableColumns.js +3 -3
- package/dist/features/products/components/AuctionsIndexListing.js +15 -51
- package/dist/features/products/components/BidHistory.js +2 -2
- package/dist/features/products/components/CompareOverlay.d.ts +2 -0
- package/dist/features/products/components/CompareOverlay.js +3 -2
- package/dist/features/products/components/MakeOfferButton.js +20 -14
- package/dist/features/products/components/MarketplacePrizeDrawCard.js +2 -1
- package/dist/features/products/components/PrizeDrawCollage.d.ts +1 -15
- package/dist/features/products/components/PrizeDrawCollage.js +54 -14
- package/dist/features/products/components/PrizeDrawDetailPageView.js +2 -1
- package/dist/features/products/components/PrizeDrawEntryActions.js +2 -1
- package/dist/features/products/components/PrizeDrawItemsEditor.js +9 -7
- package/dist/features/products/components/PrizeDrawsIndexListing.js +18 -51
- package/dist/features/products/components/PrizeRevealModal.js +24 -14
- package/dist/features/products/components/ProductDetailPageView.js +2 -1
- package/dist/features/products/components/ProductFilters.d.ts +7 -1
- package/dist/features/products/components/ProductFilters.js +11 -8
- package/dist/features/products/components/ProductForm.js +18 -16
- package/dist/features/products/components/ProductGalleryClient.js +2 -1
- package/dist/features/products/components/ProductGrid.js +12 -15
- package/dist/features/products/components/ProductsIndexListing.js +16 -52
- package/dist/features/products/components/ProductsIndexPageView.js +2 -2
- package/dist/features/products/repository/products.repository.d.ts +4 -0
- package/dist/features/products/repository/products.repository.js +22 -3
- package/dist/features/products/schemas/firestore.d.ts +7 -1
- package/dist/features/products/schemas/index.d.ts +56 -56
- package/dist/features/products/schemas/product-features.validators.d.ts +14 -14
- package/dist/features/products/types/index.d.ts +4 -0
- package/dist/features/promotions/components/CouponsIndexListing.js +1 -1
- package/dist/features/promotions/schemas/index.d.ts +6 -6
- package/dist/features/reviews/actions/review-actions.js +6 -5
- package/dist/features/reviews/api/[id]/route.js +4 -3
- package/dist/features/reviews/components/ReviewDetailPageView.js +2 -2
- package/dist/features/reviews/components/ReviewDetailShell.js +6 -3
- package/dist/features/reviews/components/ReviewsIndexListing.js +2 -2
- package/dist/features/reviews/schemas/index.d.ts +6 -6
- package/dist/features/scams/components/ScamProfileView.js +19 -10
- package/dist/features/scams/components/ScamRegistryView.js +2 -1
- package/dist/features/search/components/Search.d.ts +1 -1
- package/dist/features/search/components/Search.js +56 -49
- package/dist/features/search/schemas/index.d.ts +5 -5
- package/dist/features/seller/actions/offer-actions.js +11 -9
- package/dist/features/seller/components/SellerAddressesView.js +6 -4
- package/dist/features/seller/components/SellerBidsView.js +2 -2
- package/dist/features/seller/components/SellerCouponsView.js +1 -1
- package/dist/features/seller/components/SellerOffersPanel.js +6 -1
- package/dist/features/seller/components/SellerOrdersView.js +1 -1
- package/dist/features/seller/components/SellerPayoutSettingsView.js +3 -3
- package/dist/features/seller/components/SellerPreOrdersView.js +5 -4
- package/dist/features/seller/components/SellerPrizeDrawsView.js +5 -4
- package/dist/features/seller/components/SellerProductShell.d.ts +19 -1
- package/dist/features/seller/components/SellerProductShell.js +75 -9
- package/dist/features/seller/components/SellerProductsView.js +10 -11
- package/dist/features/seller/components/SellerShippingView.js +3 -3
- package/dist/features/seller/components/SellerSidebar.js +10 -7
- package/dist/features/seller/components/SellerStorefrontView.js +3 -3
- package/dist/features/seller/schemas/index.d.ts +4 -4
- package/dist/features/shell/FormShell.js +2 -1
- package/dist/features/shell/QuickFormDrawer.js +4 -3
- package/dist/features/shell/StepForm.js +4 -3
- package/dist/features/stores/actions/store-query-actions.js +4 -3
- package/dist/features/stores/components/StoreAboutView.js +2 -1
- package/dist/features/stores/components/StoreAuctionsListing.js +43 -64
- package/dist/features/stores/components/StoreDetailLayoutView.js +18 -4
- package/dist/features/stores/components/StorePreOrdersListing.js +33 -57
- package/dist/features/stores/components/StoreProductsListing.js +16 -49
- package/dist/features/stores/components/StoresIndexListing.js +2 -2
- package/dist/features/stores/schemas/index.d.ts +2 -2
- package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +8 -7
- package/dist/features/wishlist/hooks/useGuestWishlist.d.ts +5 -5
- package/dist/features/wishlist/hooks/useWishlistWithGuest.d.ts +6 -6
- package/dist/features/wishlist/utils/guest-wishlist.d.ts +5 -5
- package/dist/index.d.ts +27 -3
- package/dist/index.js +1743 -1725
- package/dist/monitoring/server-logger.js +5 -9
- package/dist/next/api/apiHandler.js +56 -37
- package/dist/next/components/GlobalError.js +2 -1
- package/dist/next/routing/route-map.d.ts +41 -0
- package/dist/next/routing/route-map.js +17 -0
- package/dist/react/ErrorBoundary.js +2 -1
- package/dist/react/contexts/SessionContext.js +38 -28
- package/dist/react/hooks/useCamera.d.ts +1 -1
- package/dist/react/hooks/useCamera.js +8 -7
- package/dist/seed/products-auctions-seed-data.js +40 -40
- package/dist/seed/products-preorders-seed-data.js +16 -16
- package/dist/seed/products-prize-draws-seed-data.js +4 -4
- package/dist/seed/products-standard-seed-data.js +202 -202
- package/dist/seed/site-settings-seed-data.js +6 -0
- package/dist/server-entry.d.ts +3 -0
- package/dist/server-entry.js +3 -0
- package/dist/server.d.ts +12 -0
- package/dist/server.js +15 -0
- package/dist/tailwind-utilities.css +1 -1
- package/dist/ui/DataTable.js +28 -7
- package/dist/ui/components/Button.d.ts +8 -1
- package/dist/ui/components/Button.js +47 -8
- package/dist/ui/components/CollageLightbox.d.ts +18 -0
- package/dist/ui/components/CollageLightbox.js +41 -0
- package/dist/ui/components/Dropdown.js +7 -6
- package/dist/ui/components/ImageLightbox.d.ts +7 -1
- package/dist/ui/components/ImageLightbox.js +15 -5
- package/dist/ui/components/PageLoader.js +4 -3
- package/dist/ui/components/PaginatedMultiSelect.d.ts +28 -0
- package/dist/ui/components/PaginatedMultiSelect.js +141 -0
- package/dist/ui/components/PaginatedMultiSelect.style.css +272 -0
- package/dist/ui/components/Semantic.js +1 -1
- package/dist/ui/components/SideDrawer.js +17 -15
- package/dist/ui/components/index.style.css +1 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.js +1 -0
- package/dist/utils/number.formatter.js +5 -13
- package/dist/utils/string.formatter.js +21 -18
- package/dist/validation/schemas.d.ts +2 -2
- package/package.json +1 -1
|
@@ -68,6 +68,7 @@ export const ACTIONS = {
|
|
|
68
68
|
"add-to-cart": {
|
|
69
69
|
id: "product.add-to-cart",
|
|
70
70
|
label: "Add to cart",
|
|
71
|
+
ariaLabel: "Add to cart",
|
|
71
72
|
description: "Add a standard listing to the buyer's cart.",
|
|
72
73
|
kind: "primary",
|
|
73
74
|
listingTypeScope: ["standard", "pre-order", "prize-draw", "digital-code", "live"],
|
|
@@ -79,6 +80,41 @@ export const ACTIONS = {
|
|
|
79
80
|
kind: "primary",
|
|
80
81
|
listingTypeScope: ["standard", "pre-order"],
|
|
81
82
|
},
|
|
83
|
+
"add-to-wishlist": {
|
|
84
|
+
id: "product.add-to-wishlist",
|
|
85
|
+
label: "Save",
|
|
86
|
+
ariaLabel: "Add to wishlist",
|
|
87
|
+
description: "Bookmark this listing into the buyer's wishlist.",
|
|
88
|
+
kind: "ghost",
|
|
89
|
+
},
|
|
90
|
+
"remove-from-wishlist": {
|
|
91
|
+
id: "product.remove-from-wishlist",
|
|
92
|
+
label: "Saved",
|
|
93
|
+
ariaLabel: "Remove from wishlist",
|
|
94
|
+
description: "Remove this listing from the buyer's wishlist.",
|
|
95
|
+
kind: "ghost",
|
|
96
|
+
},
|
|
97
|
+
"share": {
|
|
98
|
+
id: "product.share",
|
|
99
|
+
label: "Share",
|
|
100
|
+
ariaLabel: "Share this listing",
|
|
101
|
+
description: "Open the native share sheet or copy the listing URL.",
|
|
102
|
+
kind: "ghost",
|
|
103
|
+
},
|
|
104
|
+
"compare": {
|
|
105
|
+
id: "product.compare",
|
|
106
|
+
label: "Compare",
|
|
107
|
+
ariaLabel: "Add to comparison",
|
|
108
|
+
description: "Add this listing to the side-by-side comparison panel.",
|
|
109
|
+
kind: "ghost",
|
|
110
|
+
},
|
|
111
|
+
"make-offer": {
|
|
112
|
+
id: "product.make-offer",
|
|
113
|
+
label: "Make an offer",
|
|
114
|
+
description: "Propose a price to the seller for a classified listing.",
|
|
115
|
+
kind: "secondary",
|
|
116
|
+
listingTypeScope: ["classified"],
|
|
117
|
+
},
|
|
82
118
|
},
|
|
83
119
|
AUCTION: {
|
|
84
120
|
"place-bid": {
|
|
@@ -95,9 +131,61 @@ export const ACTIONS = {
|
|
|
95
131
|
kind: "secondary",
|
|
96
132
|
listingTypeScope: ["auction"],
|
|
97
133
|
},
|
|
134
|
+
"watch": {
|
|
135
|
+
id: "auction.watch",
|
|
136
|
+
label: "Watch auction",
|
|
137
|
+
ariaLabel: "Watch this auction",
|
|
138
|
+
description: "Subscribe to bid activity and ending-soon alerts for this auction.",
|
|
139
|
+
kind: "ghost",
|
|
140
|
+
listingTypeScope: ["auction"],
|
|
141
|
+
},
|
|
142
|
+
"unwatch": {
|
|
143
|
+
id: "auction.unwatch",
|
|
144
|
+
label: "Watching",
|
|
145
|
+
ariaLabel: "Stop watching this auction",
|
|
146
|
+
description: "Unsubscribe from bid activity alerts for this auction.",
|
|
147
|
+
kind: "ghost",
|
|
148
|
+
listingTypeScope: ["auction"],
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
PRE_ORDER: {
|
|
152
|
+
"reserve-now": {
|
|
153
|
+
id: "pre-order.reserve-now",
|
|
154
|
+
label: "Reserve now",
|
|
155
|
+
description: "Lock in a pre-order reservation for this listing.",
|
|
156
|
+
kind: "primary",
|
|
157
|
+
listingTypeScope: ["pre-order"],
|
|
158
|
+
},
|
|
159
|
+
"cancel-reservation": {
|
|
160
|
+
id: "pre-order.cancel-reservation",
|
|
161
|
+
label: "Cancel reservation",
|
|
162
|
+
description: "Cancel the buyer's pre-order reservation.",
|
|
163
|
+
kind: "danger",
|
|
164
|
+
listingTypeScope: ["pre-order"],
|
|
165
|
+
confirmation: {
|
|
166
|
+
title: "Cancel reservation?",
|
|
167
|
+
body: "Your reservation will be released and the spot may be taken by another buyer.",
|
|
168
|
+
confirmLabel: "Cancel reservation",
|
|
169
|
+
confirmKind: "danger",
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
PRIZE_DRAW: {
|
|
174
|
+
"enter-draw": {
|
|
175
|
+
id: "prize-draw.enter-draw",
|
|
176
|
+
label: "Enter draw",
|
|
177
|
+
description: "Purchase an entry into the prize draw.",
|
|
178
|
+
kind: "primary",
|
|
179
|
+
listingTypeScope: ["prize-draw"],
|
|
180
|
+
},
|
|
181
|
+
"reveal-code": {
|
|
182
|
+
id: "prize-draw.reveal-code",
|
|
183
|
+
label: "Reveal code",
|
|
184
|
+
description: "Reveal the buyer's prize-draw redemption code.",
|
|
185
|
+
kind: "primary",
|
|
186
|
+
listingTypeScope: ["prize-draw"],
|
|
187
|
+
},
|
|
98
188
|
},
|
|
99
|
-
PRE_ORDER: {},
|
|
100
|
-
PRIZE_DRAW: {},
|
|
101
189
|
CLASSIFIED: {
|
|
102
190
|
"contact-seller": {
|
|
103
191
|
id: "classified.contact-seller",
|
|
@@ -107,8 +195,24 @@ export const ACTIONS = {
|
|
|
107
195
|
listingTypeScope: ["classified"],
|
|
108
196
|
},
|
|
109
197
|
},
|
|
110
|
-
DIGITAL_CODE: {
|
|
111
|
-
|
|
198
|
+
DIGITAL_CODE: {
|
|
199
|
+
"claim-code": {
|
|
200
|
+
id: "digital-code.claim-code",
|
|
201
|
+
label: "Claim code",
|
|
202
|
+
description: "Purchase and immediately reveal a digital code.",
|
|
203
|
+
kind: "primary",
|
|
204
|
+
listingTypeScope: ["digital-code"],
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
LIVE: {
|
|
208
|
+
"inquire": {
|
|
209
|
+
id: "live.inquire",
|
|
210
|
+
label: "Inquire",
|
|
211
|
+
description: "Open a conversation with the seller about a live-item listing.",
|
|
212
|
+
kind: "primary",
|
|
213
|
+
listingTypeScope: ["live"],
|
|
214
|
+
},
|
|
215
|
+
},
|
|
112
216
|
BUNDLE: {
|
|
113
217
|
"add-bundle-to-cart": {
|
|
114
218
|
id: "bundle.add-to-cart",
|
|
@@ -122,12 +226,360 @@ export const ACTIONS = {
|
|
|
122
226
|
CATEGORY: {},
|
|
123
227
|
BRAND: {},
|
|
124
228
|
SUBLISTING: {},
|
|
125
|
-
STORE: {
|
|
229
|
+
STORE: {
|
|
230
|
+
"follow": {
|
|
231
|
+
id: "store.follow",
|
|
232
|
+
label: "Follow",
|
|
233
|
+
ariaLabel: "Follow this store",
|
|
234
|
+
description: "Subscribe to new listing and sale notifications from this store.",
|
|
235
|
+
kind: "secondary",
|
|
236
|
+
},
|
|
237
|
+
"unfollow": {
|
|
238
|
+
id: "store.unfollow",
|
|
239
|
+
label: "Following",
|
|
240
|
+
ariaLabel: "Unfollow this store",
|
|
241
|
+
description: "Unsubscribe from this store's notifications.",
|
|
242
|
+
kind: "ghost",
|
|
243
|
+
},
|
|
244
|
+
"view-all": {
|
|
245
|
+
id: "store.view-all",
|
|
246
|
+
label: "View all",
|
|
247
|
+
ariaLabel: "View all listings from this store",
|
|
248
|
+
description: "Navigate to the full product listing for this store.",
|
|
249
|
+
kind: "link",
|
|
250
|
+
},
|
|
251
|
+
"edit-listing": {
|
|
252
|
+
id: "store.edit-listing",
|
|
253
|
+
label: "Edit",
|
|
254
|
+
ariaLabel: "Edit listing",
|
|
255
|
+
description: "Navigate to the edit form for this store listing.",
|
|
256
|
+
kind: "ghost",
|
|
257
|
+
permissions: ["seller", "admin"],
|
|
258
|
+
},
|
|
259
|
+
"delete-listing": {
|
|
260
|
+
id: "store.delete-listing",
|
|
261
|
+
label: "Delete",
|
|
262
|
+
ariaLabel: "Delete listing",
|
|
263
|
+
description: "Permanently delete this store listing.",
|
|
264
|
+
kind: "danger",
|
|
265
|
+
permissions: ["seller", "admin"],
|
|
266
|
+
confirmation: {
|
|
267
|
+
title: "Delete listing?",
|
|
268
|
+
body: "This listing will be permanently removed. This action cannot be undone.",
|
|
269
|
+
confirmLabel: "Delete listing",
|
|
270
|
+
confirmKind: "danger",
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
"publish-listing": {
|
|
274
|
+
id: "store.publish-listing",
|
|
275
|
+
label: "Publish",
|
|
276
|
+
description: "Make this listing visible to buyers.",
|
|
277
|
+
kind: "primary",
|
|
278
|
+
permissions: ["seller", "admin"],
|
|
279
|
+
},
|
|
280
|
+
"unpublish-listing": {
|
|
281
|
+
id: "store.unpublish-listing",
|
|
282
|
+
label: "Unpublish",
|
|
283
|
+
description: "Hide this listing from buyers.",
|
|
284
|
+
kind: "secondary",
|
|
285
|
+
permissions: ["seller", "admin"],
|
|
286
|
+
},
|
|
287
|
+
"mark-shipped": {
|
|
288
|
+
id: "store.mark-shipped",
|
|
289
|
+
label: "Mark as shipped",
|
|
290
|
+
description: "Update an order status to shipped and enter tracking info.",
|
|
291
|
+
kind: "primary",
|
|
292
|
+
permissions: ["seller", "admin"],
|
|
293
|
+
},
|
|
294
|
+
"request-payout": {
|
|
295
|
+
id: "store.request-payout",
|
|
296
|
+
label: "Request payout",
|
|
297
|
+
description: "Submit a payout request for available store earnings.",
|
|
298
|
+
kind: "primary",
|
|
299
|
+
permissions: ["seller"],
|
|
300
|
+
},
|
|
301
|
+
"save-changes": {
|
|
302
|
+
id: "store.save-changes",
|
|
303
|
+
label: "Save changes",
|
|
304
|
+
description: "Submit the store listing or settings form.",
|
|
305
|
+
kind: "primary",
|
|
306
|
+
permissions: ["seller", "admin"],
|
|
307
|
+
},
|
|
308
|
+
},
|
|
126
309
|
BLOG: {},
|
|
127
|
-
EVENT: {
|
|
128
|
-
|
|
310
|
+
EVENT: {
|
|
311
|
+
"register": {
|
|
312
|
+
id: "event.register",
|
|
313
|
+
label: "Register",
|
|
314
|
+
description: "Register to participate in this event.",
|
|
315
|
+
kind: "primary",
|
|
316
|
+
},
|
|
317
|
+
"cancel-registration": {
|
|
318
|
+
id: "event.cancel-registration",
|
|
319
|
+
label: "Cancel registration",
|
|
320
|
+
description: "Cancel participation in this event.",
|
|
321
|
+
kind: "danger",
|
|
322
|
+
confirmation: {
|
|
323
|
+
title: "Cancel registration?",
|
|
324
|
+
body: "Your spot will be released and you may not be able to re-register if it fills up.",
|
|
325
|
+
confirmLabel: "Yes, cancel",
|
|
326
|
+
confirmKind: "danger",
|
|
327
|
+
},
|
|
328
|
+
},
|
|
329
|
+
},
|
|
330
|
+
USER: {
|
|
331
|
+
"cancel-order": {
|
|
332
|
+
id: "user.cancel-order",
|
|
333
|
+
label: "Cancel Order",
|
|
334
|
+
description: "Cancel a pending or confirmed order.",
|
|
335
|
+
kind: "danger",
|
|
336
|
+
confirmation: {
|
|
337
|
+
title: "Cancel this order?",
|
|
338
|
+
body: "Your order will be cancelled. Refunds are processed within 5–7 business days.",
|
|
339
|
+
confirmLabel: "Cancel order",
|
|
340
|
+
confirmKind: "danger",
|
|
341
|
+
},
|
|
342
|
+
},
|
|
343
|
+
"request-return": {
|
|
344
|
+
id: "user.request-return",
|
|
345
|
+
label: "Request return",
|
|
346
|
+
description: "Raise a return request for a delivered order.",
|
|
347
|
+
kind: "secondary",
|
|
348
|
+
},
|
|
349
|
+
"save-settings": {
|
|
350
|
+
id: "user.save-settings",
|
|
351
|
+
label: "Save changes",
|
|
352
|
+
description: "Submit the user settings form.",
|
|
353
|
+
kind: "primary",
|
|
354
|
+
},
|
|
355
|
+
"send-verification-email": {
|
|
356
|
+
id: "user.send-verification-email",
|
|
357
|
+
label: "Send Verification Email",
|
|
358
|
+
description: "Send a verification link to the new email address.",
|
|
359
|
+
kind: "secondary",
|
|
360
|
+
},
|
|
361
|
+
"update-password": {
|
|
362
|
+
id: "user.update-password",
|
|
363
|
+
label: "Update Password",
|
|
364
|
+
description: "Submit the change-password form.",
|
|
365
|
+
kind: "secondary",
|
|
366
|
+
},
|
|
367
|
+
"delete-address": {
|
|
368
|
+
id: "user.delete-address",
|
|
369
|
+
label: "Delete address",
|
|
370
|
+
ariaLabel: "Delete address",
|
|
371
|
+
description: "Permanently remove a saved delivery address.",
|
|
372
|
+
kind: "danger",
|
|
373
|
+
confirmation: {
|
|
374
|
+
title: "Delete address?",
|
|
375
|
+
body: "This address will be removed and cannot be recovered.",
|
|
376
|
+
confirmLabel: "Delete",
|
|
377
|
+
confirmKind: "danger",
|
|
378
|
+
},
|
|
379
|
+
},
|
|
380
|
+
"set-default-address": {
|
|
381
|
+
id: "user.set-default-address",
|
|
382
|
+
label: "Set as default",
|
|
383
|
+
ariaLabel: "Set as default address",
|
|
384
|
+
description: "Mark this address as the default delivery address.",
|
|
385
|
+
kind: "ghost",
|
|
386
|
+
},
|
|
387
|
+
},
|
|
129
388
|
SELLER: {},
|
|
130
|
-
ADMIN: {
|
|
389
|
+
ADMIN: {
|
|
390
|
+
// ── Product moderation ─────────────────────────────────────────────────
|
|
391
|
+
"approve-product": {
|
|
392
|
+
id: "admin.approve-product",
|
|
393
|
+
label: "Approve",
|
|
394
|
+
ariaLabel: "Approve listing",
|
|
395
|
+
description: "Mark a pending product listing as approved and visible to buyers.",
|
|
396
|
+
kind: "primary",
|
|
397
|
+
permissions: ["admin", "moderator"],
|
|
398
|
+
},
|
|
399
|
+
"reject-product": {
|
|
400
|
+
id: "admin.reject-product",
|
|
401
|
+
label: "Reject",
|
|
402
|
+
ariaLabel: "Reject listing",
|
|
403
|
+
description: "Reject a product listing and notify the seller with a reason.",
|
|
404
|
+
kind: "danger",
|
|
405
|
+
permissions: ["admin", "moderator"],
|
|
406
|
+
confirmation: {
|
|
407
|
+
title: "Reject this listing?",
|
|
408
|
+
body: "The listing will be rejected and the seller will be notified. You can restore it later.",
|
|
409
|
+
confirmLabel: "Reject listing",
|
|
410
|
+
confirmKind: "danger",
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
// ── User moderation ────────────────────────────────────────────────────
|
|
414
|
+
"ban-user": {
|
|
415
|
+
id: "admin.ban-user",
|
|
416
|
+
label: "Ban user",
|
|
417
|
+
ariaLabel: "Ban this user",
|
|
418
|
+
description: "Soft-ban a user account — blocks login and all marketplace activity.",
|
|
419
|
+
kind: "danger",
|
|
420
|
+
permissions: ["admin", "moderator"],
|
|
421
|
+
confirmation: {
|
|
422
|
+
title: "Ban this user?",
|
|
423
|
+
body: "The user will be blocked from logging in and all marketplace activity. You can lift the ban later.",
|
|
424
|
+
confirmLabel: "Ban user",
|
|
425
|
+
confirmKind: "danger",
|
|
426
|
+
},
|
|
427
|
+
},
|
|
428
|
+
"unban-user": {
|
|
429
|
+
id: "admin.unban-user",
|
|
430
|
+
label: "Lift ban",
|
|
431
|
+
ariaLabel: "Lift ban on this user",
|
|
432
|
+
description: "Remove a soft-ban and restore normal account access.",
|
|
433
|
+
kind: "secondary",
|
|
434
|
+
permissions: ["admin"],
|
|
435
|
+
},
|
|
436
|
+
"verify-vendor": {
|
|
437
|
+
id: "admin.verify-vendor",
|
|
438
|
+
label: "Verify vendor",
|
|
439
|
+
ariaLabel: "Grant verified-vendor status",
|
|
440
|
+
description: "Grant verified-vendor badge to a seller account.",
|
|
441
|
+
kind: "primary",
|
|
442
|
+
permissions: ["admin"],
|
|
443
|
+
},
|
|
444
|
+
"unverify-vendor": {
|
|
445
|
+
id: "admin.unverify-vendor",
|
|
446
|
+
label: "Remove verification",
|
|
447
|
+
ariaLabel: "Revoke verified-vendor status",
|
|
448
|
+
description: "Revoke the verified-vendor badge from a seller account.",
|
|
449
|
+
kind: "secondary",
|
|
450
|
+
permissions: ["admin"],
|
|
451
|
+
confirmation: {
|
|
452
|
+
title: "Remove vendor verification?",
|
|
453
|
+
body: "The verified badge will be removed from this seller's store.",
|
|
454
|
+
confirmLabel: "Remove verification",
|
|
455
|
+
confirmKind: "danger",
|
|
456
|
+
},
|
|
457
|
+
},
|
|
458
|
+
// ── Store moderation ───────────────────────────────────────────────────
|
|
459
|
+
"verify-store": {
|
|
460
|
+
id: "admin.verify-store",
|
|
461
|
+
label: "Verify store",
|
|
462
|
+
ariaLabel: "Verify this store",
|
|
463
|
+
description: "Grant verified status to a store.",
|
|
464
|
+
kind: "primary",
|
|
465
|
+
permissions: ["admin"],
|
|
466
|
+
},
|
|
467
|
+
"suspend-store": {
|
|
468
|
+
id: "admin.suspend-store",
|
|
469
|
+
label: "Suspend store",
|
|
470
|
+
ariaLabel: "Suspend this store",
|
|
471
|
+
description: "Suspend a store — hides all its listings from buyers.",
|
|
472
|
+
kind: "danger",
|
|
473
|
+
permissions: ["admin"],
|
|
474
|
+
confirmation: {
|
|
475
|
+
title: "Suspend this store?",
|
|
476
|
+
body: "All listings from this store will be hidden. The seller will be notified.",
|
|
477
|
+
confirmLabel: "Suspend store",
|
|
478
|
+
confirmKind: "danger",
|
|
479
|
+
},
|
|
480
|
+
},
|
|
481
|
+
// ── Review moderation ──────────────────────────────────────────────────
|
|
482
|
+
"approve-review": {
|
|
483
|
+
id: "admin.approve-review",
|
|
484
|
+
label: "Approve",
|
|
485
|
+
ariaLabel: "Approve review",
|
|
486
|
+
description: "Publish a pending product review.",
|
|
487
|
+
kind: "primary",
|
|
488
|
+
permissions: ["admin", "moderator"],
|
|
489
|
+
},
|
|
490
|
+
"reject-review": {
|
|
491
|
+
id: "admin.reject-review",
|
|
492
|
+
label: "Reject",
|
|
493
|
+
ariaLabel: "Reject review",
|
|
494
|
+
description: "Reject a product review and prevent it from being shown.",
|
|
495
|
+
kind: "danger",
|
|
496
|
+
permissions: ["admin", "moderator"],
|
|
497
|
+
confirmation: {
|
|
498
|
+
title: "Reject this review?",
|
|
499
|
+
body: "The review will be hidden from the product page.",
|
|
500
|
+
confirmLabel: "Reject review",
|
|
501
|
+
confirmKind: "danger",
|
|
502
|
+
},
|
|
503
|
+
},
|
|
504
|
+
// ── Return request moderation ──────────────────────────────────────────
|
|
505
|
+
"approve-return": {
|
|
506
|
+
id: "admin.approve-return",
|
|
507
|
+
label: "Approve return",
|
|
508
|
+
ariaLabel: "Approve return request",
|
|
509
|
+
description: "Approve a return request and initiate the refund flow.",
|
|
510
|
+
kind: "primary",
|
|
511
|
+
permissions: ["admin", "moderator"],
|
|
512
|
+
},
|
|
513
|
+
"reject-return": {
|
|
514
|
+
id: "admin.reject-return",
|
|
515
|
+
label: "Reject return",
|
|
516
|
+
ariaLabel: "Reject return request",
|
|
517
|
+
description: "Reject a return request with a reason.",
|
|
518
|
+
kind: "danger",
|
|
519
|
+
permissions: ["admin", "moderator"],
|
|
520
|
+
confirmation: {
|
|
521
|
+
title: "Reject return request?",
|
|
522
|
+
body: "The return request will be declined and the buyer will be notified.",
|
|
523
|
+
confirmLabel: "Reject return",
|
|
524
|
+
confirmKind: "danger",
|
|
525
|
+
},
|
|
526
|
+
},
|
|
527
|
+
// ── Payout management ──────────────────────────────────────────────────
|
|
528
|
+
"grant-payout": {
|
|
529
|
+
id: "admin.grant-payout",
|
|
530
|
+
label: "Approve payout",
|
|
531
|
+
ariaLabel: "Approve payout request",
|
|
532
|
+
description: "Approve a seller payout request and trigger the transfer.",
|
|
533
|
+
kind: "primary",
|
|
534
|
+
permissions: ["admin"],
|
|
535
|
+
},
|
|
536
|
+
"hold-payout": {
|
|
537
|
+
id: "admin.hold-payout",
|
|
538
|
+
label: "Hold payout",
|
|
539
|
+
ariaLabel: "Put payout on hold",
|
|
540
|
+
description: "Put a payout request on hold pending investigation.",
|
|
541
|
+
kind: "secondary",
|
|
542
|
+
permissions: ["admin"],
|
|
543
|
+
confirmation: {
|
|
544
|
+
title: "Hold this payout?",
|
|
545
|
+
body: "The payout will be paused. The seller will be notified.",
|
|
546
|
+
confirmLabel: "Hold payout",
|
|
547
|
+
confirmKind: "danger",
|
|
548
|
+
},
|
|
549
|
+
},
|
|
550
|
+
// ── Bundle management ──────────────────────────────────────────────────
|
|
551
|
+
"rebuild-bundle": {
|
|
552
|
+
id: "admin.rebuild-bundle",
|
|
553
|
+
label: "Rebuild bundle",
|
|
554
|
+
ariaLabel: "Trigger bundle stock rebuild",
|
|
555
|
+
description: "Recalculate bundle availability from its constituent product stock.",
|
|
556
|
+
kind: "secondary",
|
|
557
|
+
permissions: ["admin"],
|
|
558
|
+
},
|
|
559
|
+
// ── Dev / system ───────────────────────────────────────────────────────
|
|
560
|
+
"reset-seed-data": {
|
|
561
|
+
id: "admin.reset-seed-data",
|
|
562
|
+
label: "Reset seed data",
|
|
563
|
+
ariaLabel: "Clear and re-seed Firestore",
|
|
564
|
+
description: "Delete all seeded documents and reload from seed fixtures. Dev environments only.",
|
|
565
|
+
kind: "danger",
|
|
566
|
+
permissions: ["admin"],
|
|
567
|
+
confirmation: {
|
|
568
|
+
title: "Reset all seed data?",
|
|
569
|
+
body: "Every seeded document will be deleted and reloaded from fixtures. This cannot be undone. Only use this in a development environment.",
|
|
570
|
+
confirmLabel: "Reset seed data",
|
|
571
|
+
confirmKind: "danger",
|
|
572
|
+
},
|
|
573
|
+
},
|
|
574
|
+
// ── Generic admin forms ────────────────────────────────────────────────
|
|
575
|
+
"save-changes": {
|
|
576
|
+
id: "admin.save-changes",
|
|
577
|
+
label: "Save changes",
|
|
578
|
+
description: "Submit any admin editor form.",
|
|
579
|
+
kind: "primary",
|
|
580
|
+
permissions: ["admin", "moderator"],
|
|
581
|
+
},
|
|
582
|
+
},
|
|
131
583
|
CART: {
|
|
132
584
|
"clear-cart": {
|
|
133
585
|
id: "cart.clear",
|
|
@@ -141,6 +593,25 @@ export const ACTIONS = {
|
|
|
141
593
|
confirmKind: "danger",
|
|
142
594
|
},
|
|
143
595
|
},
|
|
596
|
+
"remove-item": {
|
|
597
|
+
id: "cart.remove-item",
|
|
598
|
+
label: "Remove",
|
|
599
|
+
ariaLabel: "Remove item from cart",
|
|
600
|
+
description: "Remove a single line item from the cart.",
|
|
601
|
+
kind: "ghost",
|
|
602
|
+
},
|
|
603
|
+
"checkout": {
|
|
604
|
+
id: "cart.checkout",
|
|
605
|
+
label: "Proceed to checkout",
|
|
606
|
+
description: "Navigate from the cart page to the checkout flow.",
|
|
607
|
+
kind: "primary",
|
|
608
|
+
},
|
|
609
|
+
"continue-shopping": {
|
|
610
|
+
id: "cart.continue-shopping",
|
|
611
|
+
label: "Continue shopping",
|
|
612
|
+
description: "Navigate back from the cart to the product catalogue.",
|
|
613
|
+
kind: "ghost",
|
|
614
|
+
},
|
|
144
615
|
},
|
|
145
616
|
CHECKOUT: {
|
|
146
617
|
"place-order": {
|
|
@@ -150,7 +621,31 @@ export const ACTIONS = {
|
|
|
150
621
|
kind: "primary",
|
|
151
622
|
},
|
|
152
623
|
},
|
|
153
|
-
NAV: {
|
|
624
|
+
NAV: {
|
|
625
|
+
"sign-in": {
|
|
626
|
+
id: "nav.sign-in",
|
|
627
|
+
label: "Sign in",
|
|
628
|
+
description: "Navigate to the sign-in page.",
|
|
629
|
+
kind: "primary",
|
|
630
|
+
},
|
|
631
|
+
"sign-up": {
|
|
632
|
+
id: "nav.sign-up",
|
|
633
|
+
label: "Sign up",
|
|
634
|
+
description: "Navigate to the registration page.",
|
|
635
|
+
kind: "secondary",
|
|
636
|
+
},
|
|
637
|
+
"sign-out": {
|
|
638
|
+
id: "nav.sign-out",
|
|
639
|
+
label: "Sign out",
|
|
640
|
+
description: "End the current session.",
|
|
641
|
+
kind: "ghost",
|
|
642
|
+
confirmation: {
|
|
643
|
+
title: "Sign out?",
|
|
644
|
+
body: "You'll need to sign back in to access your account.",
|
|
645
|
+
confirmLabel: "Sign out",
|
|
646
|
+
},
|
|
647
|
+
},
|
|
648
|
+
},
|
|
154
649
|
MEDIA: {},
|
|
155
650
|
SUPPORT: {},
|
|
156
651
|
};
|
|
@@ -17,9 +17,9 @@ export declare const blogPostInputSchema: z.ZodObject<{
|
|
|
17
17
|
title: string;
|
|
18
18
|
content: string;
|
|
19
19
|
category: string;
|
|
20
|
+
slug: string;
|
|
20
21
|
tags: string[];
|
|
21
22
|
isFeatured: boolean;
|
|
22
|
-
slug: string;
|
|
23
23
|
youtubeId?: string | undefined;
|
|
24
24
|
coverImage?: string | undefined;
|
|
25
25
|
excerpt?: string | undefined;
|
|
@@ -31,9 +31,9 @@ export declare const blogPostInputSchema: z.ZodObject<{
|
|
|
31
31
|
category: string;
|
|
32
32
|
slug: string;
|
|
33
33
|
status?: "draft" | "published" | undefined;
|
|
34
|
+
youtubeId?: string | undefined;
|
|
34
35
|
tags?: string[] | undefined;
|
|
35
36
|
isFeatured?: boolean | undefined;
|
|
36
|
-
youtubeId?: string | undefined;
|
|
37
37
|
coverImage?: string | undefined;
|
|
38
38
|
excerpt?: string | undefined;
|
|
39
39
|
metaTitle?: string | undefined;
|
|
@@ -56,10 +56,10 @@ export declare const blogPostUpdateSchema: z.ZodObject<Omit<{
|
|
|
56
56
|
status?: "draft" | "published" | undefined;
|
|
57
57
|
title?: string | undefined;
|
|
58
58
|
content?: string | undefined;
|
|
59
|
+
youtubeId?: string | undefined;
|
|
59
60
|
category?: string | undefined;
|
|
60
61
|
tags?: string[] | undefined;
|
|
61
62
|
isFeatured?: boolean | undefined;
|
|
62
|
-
youtubeId?: string | undefined;
|
|
63
63
|
coverImage?: string | undefined;
|
|
64
64
|
excerpt?: string | undefined;
|
|
65
65
|
metaTitle?: string | undefined;
|
|
@@ -68,10 +68,10 @@ export declare const blogPostUpdateSchema: z.ZodObject<Omit<{
|
|
|
68
68
|
status?: "draft" | "published" | undefined;
|
|
69
69
|
title?: string | undefined;
|
|
70
70
|
content?: string | undefined;
|
|
71
|
+
youtubeId?: string | undefined;
|
|
71
72
|
category?: string | undefined;
|
|
72
73
|
tags?: string[] | undefined;
|
|
73
74
|
isFeatured?: boolean | undefined;
|
|
74
|
-
youtubeId?: string | undefined;
|
|
75
75
|
coverImage?: string | undefined;
|
|
76
76
|
excerpt?: string | undefined;
|
|
77
77
|
metaTitle?: string | undefined;
|
|
@@ -11,9 +11,9 @@ export declare const brandInputSchema: z.ZodObject<{
|
|
|
11
11
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
12
12
|
displayOrder: z.ZodDefault<z.ZodNumber>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
slug: string;
|
|
14
15
|
name: string;
|
|
15
16
|
isActive: boolean;
|
|
16
|
-
slug: string;
|
|
17
17
|
displayOrder: number;
|
|
18
18
|
country?: string | undefined;
|
|
19
19
|
description?: string | undefined;
|
|
@@ -22,11 +22,11 @@ export declare const brandInputSchema: z.ZodObject<{
|
|
|
22
22
|
bannerURL?: string | undefined;
|
|
23
23
|
founded?: number | undefined;
|
|
24
24
|
}, {
|
|
25
|
-
name: string;
|
|
26
25
|
slug: string;
|
|
26
|
+
name: string;
|
|
27
27
|
country?: string | undefined;
|
|
28
|
-
isActive?: boolean | undefined;
|
|
29
28
|
description?: string | undefined;
|
|
29
|
+
isActive?: boolean | undefined;
|
|
30
30
|
website?: string | undefined;
|
|
31
31
|
displayOrder?: number | undefined;
|
|
32
32
|
logoURL?: string | undefined;
|
|
@@ -46,9 +46,9 @@ export declare const brandUpdateSchema: z.ZodObject<Omit<{
|
|
|
46
46
|
displayOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
47
47
|
}, "slug">, "strip", z.ZodTypeAny, {
|
|
48
48
|
country?: string | undefined;
|
|
49
|
+
description?: string | undefined;
|
|
49
50
|
name?: string | undefined;
|
|
50
51
|
isActive?: boolean | undefined;
|
|
51
|
-
description?: string | undefined;
|
|
52
52
|
website?: string | undefined;
|
|
53
53
|
displayOrder?: number | undefined;
|
|
54
54
|
logoURL?: string | undefined;
|
|
@@ -56,9 +56,9 @@ export declare const brandUpdateSchema: z.ZodObject<Omit<{
|
|
|
56
56
|
founded?: number | undefined;
|
|
57
57
|
}, {
|
|
58
58
|
country?: string | undefined;
|
|
59
|
+
description?: string | undefined;
|
|
59
60
|
name?: string | undefined;
|
|
60
61
|
isActive?: boolean | undefined;
|
|
61
|
-
description?: string | undefined;
|
|
62
62
|
website?: string | undefined;
|
|
63
63
|
displayOrder?: number | undefined;
|
|
64
64
|
logoURL?: string | undefined;
|