@mohasinac/appkit 4.64.1 → 4.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.build-stamp.json +3 -3
- package/dist/_internal/client/features/digital-code/CodeRevealPanel.js +4 -1
- package/dist/_internal/client/features/digital-code/DigitalContentPoolManager.js +5 -1
- package/dist/_internal/client/features/layout/DashboardLayoutClient.d.ts +1 -1
- package/dist/_internal/client/features/layout/DashboardLayoutClient.js +3 -1
- package/dist/_internal/client/features/lottery/LotteryAdminEditView.js +6 -2
- package/dist/_internal/client/features/lottery/LotteryAdminSlotView.js +5 -1
- package/dist/_internal/client/features/lottery/LotteryDetailView.js +6 -1
- package/dist/_internal/client/features/lottery/LotteryEntriesView.js +6 -1
- package/dist/_internal/client/features/lottery/LotteryListView.js +7 -1
- package/dist/_internal/client/features/lottery/LotteryPullForm.js +3 -1
- package/dist/_internal/client/features/lottery/LotterySlotGrid.js +3 -1
- package/dist/_internal/client/features/lottery/PrizeDrawLotteryDetailView.js +6 -1
- package/dist/_internal/client/scaffolds/AppShell.js +3 -1
- package/dist/_internal/server/features/account/data.js +2 -1
- package/dist/_internal/server/features/auctions/service.js +1 -1
- package/dist/_internal/server/features/auth/capabilities.js +1 -1
- package/dist/_internal/server/features/auth/permissions.js +1 -1
- package/dist/_internal/server/features/brands/actions.js +1 -1
- package/dist/_internal/server/features/brands/data.js +1 -1
- package/dist/_internal/server/features/brands/service.js +1 -1
- package/dist/_internal/server/features/bundles/actions.js +1 -1
- package/dist/_internal/server/features/bundles/data.js +2 -2
- package/dist/_internal/server/features/cart/actions.js +1 -1
- package/dist/_internal/server/features/cart/data.js +1 -1
- package/dist/_internal/server/features/cart/service.js +1 -1
- package/dist/_internal/server/features/categories/data.js +1 -1
- package/dist/_internal/server/features/checkout/actions.js +20 -3
- package/dist/_internal/server/features/checkout/group-rule-revalidation.js +1 -1
- package/dist/_internal/server/features/checkout/locked-lines.js +1 -1
- package/dist/_internal/server/features/checkout/upi-resolution.js +2 -1
- package/dist/_internal/server/features/grouped/data.js +2 -1
- package/dist/_internal/server/features/history/actions.d.ts +1 -1
- package/dist/_internal/server/features/history/actions.js +1 -1
- package/dist/_internal/server/features/history/data.d.ts +1 -1
- package/dist/_internal/server/features/history/data.js +1 -1
- package/dist/_internal/server/features/item-requests/data.js +1 -1
- package/dist/_internal/server/features/messages/actions.js +1 -1
- package/dist/_internal/server/features/payouts/actions.js +1 -1
- package/dist/_internal/server/features/pre-orders/actions.js +1 -1
- package/dist/_internal/server/features/pre-orders/service.js +1 -1
- package/dist/_internal/server/features/prize-draws/actions.js +1 -1
- package/dist/_internal/server/features/products/actions.js +1 -1
- package/dist/_internal/server/features/products/data.js +1 -1
- package/dist/_internal/server/features/products/list-public.js +1 -1
- package/dist/_internal/server/features/products/service.js +1 -1
- package/dist/_internal/server/features/promotions/actions.js +1 -1
- package/dist/_internal/server/features/promotions/adapters.js +9 -0
- package/dist/_internal/server/features/promotions/data.d.ts +24 -3
- package/dist/_internal/server/features/promotions/data.js +41 -6
- package/dist/_internal/server/features/promotions/index.d.ts +1 -1
- package/dist/_internal/server/features/promotions/index.js +1 -1
- package/dist/_internal/server/features/promotions/service.js +1 -1
- package/dist/_internal/server/features/search/index-build/sources.js +27 -12
- package/dist/_internal/server/features/seo/sitemap.js +79 -13
- package/dist/_internal/server/features/shared/listing-data-factory.js +1 -1
- package/dist/_internal/server/features/shipping/courier-block.js +1 -1
- package/dist/_internal/server/features/site-settings/adapters.d.ts +1 -1
- package/dist/_internal/server/features/site-settings/adapters.js +16 -1
- package/dist/_internal/server/features/sticker-trace/promote-to-listings.js +1 -1
- package/dist/_internal/server/features/stores/adapters.d.ts +1 -1
- package/dist/_internal/server/features/stores/adapters.js +14 -0
- package/dist/_internal/server/features/stores/data.js +1 -1
- package/dist/_internal/server/features/stores/tabs.d.ts +19 -15
- package/dist/_internal/server/features/stores/tabs.js +20 -21
- package/dist/_internal/server/features/sublisting-categories/data.js +1 -1
- package/dist/_internal/server/features/wishlist/actions.d.ts +1 -1
- package/dist/_internal/server/features/wishlist/actions.js +1 -1
- package/dist/_internal/server/features/wishlist/data.d.ts +1 -1
- package/dist/_internal/server/features/wishlist/data.js +1 -1
- package/dist/_internal/server/jobs/core/analyticsAlertEvaluate.js +9 -4
- package/dist/_internal/server/jobs/core/autoPayoutEligibility.js +1 -1
- package/dist/_internal/server/jobs/core/cartPrune.js +1 -1
- package/dist/_internal/server/jobs/core/catalogueImageStalenessReminder.js +1 -1
- package/dist/_internal/server/jobs/core/categoryTaxonomyBackfill.js +22 -0
- package/dist/_internal/server/jobs/core/cleanupRtdbEvents.js +1 -1
- package/dist/_internal/server/jobs/core/countersReconcile.js +0 -1
- package/dist/_internal/server/jobs/core/couponExpiry.js +1 -1
- package/dist/_internal/server/jobs/core/dailyDataCleanup.js +2 -1
- package/dist/_internal/server/jobs/core/draftPrune.js +1 -1
- package/dist/_internal/server/jobs/core/hardBanReinstatement.js +1 -1
- package/dist/_internal/server/jobs/core/newsletterExport.js +1 -1
- package/dist/_internal/server/jobs/core/notificationPrune.js +1 -1
- package/dist/_internal/server/jobs/core/onJobCreated.js +1 -1
- package/dist/_internal/server/jobs/core/onOrderCreate.js +3 -1
- package/dist/_internal/server/jobs/core/onProductWrite.js +2 -1
- package/dist/_internal/server/jobs/core/onScamReportCreate.js +2 -1
- package/dist/_internal/server/jobs/core/onScamReportRejected.js +1 -1
- package/dist/_internal/server/jobs/core/onScamReportVerified.js +1 -1
- package/dist/_internal/server/jobs/core/revenueRollup.js +1 -1
- package/dist/_internal/server/jobs/core/runJobOnce.js +1 -1
- package/dist/_internal/server/jobs/core/sellerStandingRollup.js +1 -1
- package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.js +1 -1
- package/dist/_internal/server/jobs/handlers/onCatalogueSubmittedForApproval.js +2 -2
- package/dist/_internal/shared/features/blog/schema.d.ts +12 -12
- package/dist/_internal/shared/features/brands/schema.d.ts +19 -19
- package/dist/_internal/shared/features/cart/schema.d.ts +17 -17
- package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +60 -60
- package/dist/_internal/shared/features/events/schema.d.ts +4 -4
- package/dist/_internal/shared/features/orders/schema.d.ts +8 -8
- package/dist/_internal/shared/features/products/schema.d.ts +2 -2
- package/dist/_internal/shared/features/promotions/schema.d.ts +12 -12
- package/dist/_internal/shared/features/reviews/schema.d.ts +3 -3
- package/dist/_internal/shared/features/site-settings/types.d.ts +10 -2
- package/dist/_internal/shared/features/sticker-trace/trace/segment.js +13 -2
- package/dist/_internal/shared/listing-types/feature-flags.d.ts +54 -0
- package/dist/_internal/shared/listing-types/feature-flags.js +72 -0
- package/dist/client.d.ts +225 -117
- package/dist/client.js +148 -74
- package/dist/constants/field-names.d.ts +1 -0
- package/dist/constants/field-names.js +14 -0
- package/dist/errors/error-handler.d.ts +1 -1
- package/dist/features/about/components/AboutView.js +9 -1
- package/dist/features/about/components/DeveloperView.js +8 -2
- package/dist/features/about/components/FAQPageView.js +5 -2
- package/dist/features/about/components/FeesView.js +4 -1
- package/dist/features/about/components/GstExplainerView.js +6 -1
- package/dist/features/about/components/GuidesHubView.js +5 -1
- package/dist/features/about/components/HelpPageView.js +6 -2
- package/dist/features/about/components/HowAuctionsWorkView.js +6 -2
- package/dist/features/about/components/HowCheckoutWorksView.js +6 -2
- package/dist/features/about/components/HowEmiWorksView.js +7 -2
- package/dist/features/about/components/HowOffersWorkView.js +6 -2
- package/dist/features/about/components/HowOrdersWorkView.js +6 -2
- package/dist/features/about/components/HowPayoutsWorkView.js +6 -2
- package/dist/features/about/components/HowPreOrdersWorkView.js +6 -2
- package/dist/features/about/components/HowReviewsWorkView.js +6 -2
- package/dist/features/about/components/PolicyPageView.js +6 -3
- package/dist/features/about/components/ProseHero.js +3 -1
- package/dist/features/about/components/PublicProfileView.js +6 -1
- package/dist/features/about/components/SecurityPrivacyView.js +6 -2
- package/dist/features/about/components/ShippingPolicyView.js +7 -3
- package/dist/features/about/components/SpotAFakeView.js +6 -1
- package/dist/features/about/components/TrackOrderView.js +5 -2
- package/dist/features/about/components/UnauthorizedView.js +5 -2
- package/dist/features/about/schemas/index.d.ts +18 -18
- package/dist/features/account/api/[userId]/addresses/route.js +1 -5
- package/dist/features/account/components/AddressBook.js +4 -1
- package/dist/features/account/components/AddressFilters.js +1 -1
- package/dist/features/account/components/AddressForm.js +1 -1
- package/dist/features/account/components/AddressSelectorCreate.js +2 -1
- package/dist/features/account/components/AddressesIndexListing.js +5 -1
- package/dist/features/account/components/BecomeSellerView.js +2 -1
- package/dist/features/account/components/BuyerAccountGuideView.js +6 -1
- package/dist/features/account/components/BuyerAuctionsGuideView.js +5 -1
- package/dist/features/account/components/BuyerOrdersGuideView.js +5 -1
- package/dist/features/account/components/BuyerShoppingGuideView.js +5 -1
- package/dist/features/account/components/LinkedAccountsSection.js +5 -1
- package/dist/features/account/components/NotificationBell.js +8 -1
- package/dist/features/account/components/NotificationPreferencesPanel.js +6 -1
- package/dist/features/account/components/OrderDetailView.d.ts +1 -1
- package/dist/features/account/components/OrderDetailView.js +1 -1
- package/dist/features/account/components/ProfileView.d.ts +1 -1
- package/dist/features/account/components/ProfileView.js +1 -1
- package/dist/features/account/components/UserAccountHubView.d.ts +1 -1
- package/dist/features/account/components/UserAccountHubView.js +1 -1
- package/dist/features/account/components/UserBidsView.js +5 -1
- package/dist/features/account/components/UserOffersPanel.js +9 -1
- package/dist/features/account/components/UserOrderTrackView.d.ts +1 -1
- package/dist/features/account/components/UserOrderTrackView.js +1 -1
- package/dist/features/account/components/UserOrdersView.js +6 -1
- package/dist/features/account/components/UserReturnsView.js +3 -1
- package/dist/features/account/components/UserSidebar.js +8 -1
- package/dist/features/account/schemas/index.d.ts +10 -10
- package/dist/features/addresses/repository/addresses.repository.js +1 -1
- package/dist/features/addresses/schemas/address-form.d.ts +16 -16
- package/dist/features/addresses/schemas/index.d.ts +2 -2
- package/dist/features/admin/actions/admin-actions.d.ts +3 -3
- package/dist/features/admin/actions/admin-coupon-actions.d.ts +1 -1
- package/dist/features/admin/actions/admin-read-actions.d.ts +3 -3
- package/dist/features/admin/api/bids/route.js +1 -5
- package/dist/features/admin/api/coupons/route.js +1 -5
- package/dist/features/admin/api/products/route.js +1 -5
- package/dist/features/admin/api/reviews/route.js +1 -5
- package/dist/features/admin/components/AdminActionIndexView.d.ts +1 -1
- package/dist/features/admin/components/AdminActionIndexView.js +7 -1
- package/dist/features/admin/components/AdminAdEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminAdEditorView.js +8 -1
- package/dist/features/admin/components/AdminAddressBookView.js +8 -1
- package/dist/features/admin/components/AdminAddressClustersView.js +7 -1
- package/dist/features/admin/components/AdminAddressEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminAddressEditorView.js +4 -1
- package/dist/features/admin/components/AdminAddressesView.js +6 -1
- package/dist/features/admin/components/AdminAllEventEntriesView.d.ts +1 -1
- package/dist/features/admin/components/AdminAllEventEntriesView.js +5 -1
- package/dist/features/admin/components/AdminAnalyticsGuideView.js +5 -1
- package/dist/features/admin/components/AdminAnalyticsView.js +4 -2
- package/dist/features/admin/components/AdminArtView.d.ts +1 -1
- package/dist/features/admin/components/AdminArtView.js +1 -1
- package/dist/features/admin/components/AdminAuditLogView.d.ts +1 -1
- package/dist/features/admin/components/AdminAuditLogView.js +5 -1
- package/dist/features/admin/components/AdminBeysView.d.ts +1 -1
- package/dist/features/admin/components/AdminBeysView.js +3 -1
- package/dist/features/admin/components/AdminBidsView.d.ts +1 -1
- package/dist/features/admin/components/AdminBidsView.js +7 -2
- package/dist/features/admin/components/AdminBlogEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminBlogEditorView.js +14 -2
- package/dist/features/admin/components/AdminBlogView.d.ts +1 -1
- package/dist/features/admin/components/AdminBlogView.js +2 -1
- package/dist/features/admin/components/AdminBrandEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminBrandEditorView.js +7 -2
- package/dist/features/admin/components/AdminBrandsView.d.ts +1 -1
- package/dist/features/admin/components/AdminBrandsView.js +4 -2
- package/dist/features/admin/components/AdminBundleEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminBundleEditorView.js +3 -1
- package/dist/features/admin/components/AdminBundlesView.js +7 -1
- package/dist/features/admin/components/AdminCarouselEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminCarouselEditorView.js +12 -3
- package/dist/features/admin/components/AdminCarouselGroupEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminCarouselView.d.ts +1 -1
- package/dist/features/admin/components/AdminCarouselView.js +16 -2
- package/dist/features/admin/components/AdminCartsView.d.ts +1 -1
- package/dist/features/admin/components/AdminCartsView.js +3 -1
- package/dist/features/admin/components/AdminCatalogGuideView.js +5 -1
- package/dist/features/admin/components/AdminCategoriesView.d.ts +1 -1
- package/dist/features/admin/components/AdminCategoriesView.js +3 -1
- package/dist/features/admin/components/AdminCategoryEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminCategoryEditorView.js +2 -2
- package/dist/features/admin/components/AdminClassifiedView.d.ts +1 -1
- package/dist/features/admin/components/AdminClassifiedView.js +1 -1
- package/dist/features/admin/components/AdminContactView.d.ts +1 -1
- package/dist/features/admin/components/AdminContactView.js +5 -1
- package/dist/features/admin/components/AdminContentGuideView.js +5 -1
- package/dist/features/admin/components/AdminCouponEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminCouponEditorView.js +5 -1
- package/dist/features/admin/components/AdminCouponsView.d.ts +1 -1
- package/dist/features/admin/components/AdminCouponsView.js +6 -1
- package/dist/features/admin/components/AdminDashboardView.d.ts +1 -1
- package/dist/features/admin/components/AdminDashboardView.js +2 -2
- package/dist/features/admin/components/AdminDigitalCodesView.d.ts +1 -1
- package/dist/features/admin/components/AdminDigitalCodesView.js +1 -1
- package/dist/features/admin/components/AdminFaqEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminFaqEditorView.js +12 -2
- package/dist/features/admin/components/AdminFaqsView.d.ts +1 -1
- package/dist/features/admin/components/AdminFaqsView.js +3 -1
- package/dist/features/admin/components/AdminFeatureEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminFeatureEditorView.js +6 -2
- package/dist/features/admin/components/AdminFeaturesView.d.ts +1 -1
- package/dist/features/admin/components/AdminFeaturesView.js +2 -1
- package/dist/features/admin/components/AdminFulfillmentView.js +2 -1
- package/dist/features/admin/components/AdminGatewayEventsView.d.ts +1 -1
- package/dist/features/admin/components/AdminGatewayEventsView.js +8 -1
- package/dist/features/admin/components/AdminGroupedListingsView.d.ts +1 -1
- package/dist/features/admin/components/AdminGroupedListingsView.js +7 -2
- package/dist/features/admin/components/AdminGuideHubView.js +7 -2
- package/dist/features/admin/components/AdminHistoryView.d.ts +1 -1
- package/dist/features/admin/components/AdminHistoryView.js +1 -1
- package/dist/features/admin/components/AdminIntegrationsView.js +6 -1
- package/dist/features/admin/components/AdminInvoicingView.js +6 -1
- package/dist/features/admin/components/AdminLiveView.d.ts +1 -1
- package/dist/features/admin/components/AdminLiveView.js +1 -1
- package/dist/features/admin/components/AdminMediaView.d.ts +1 -1
- package/dist/features/admin/components/AdminMediaView.js +11 -1
- package/dist/features/admin/components/AdminMoneyCasesView.d.ts +1 -1
- package/dist/features/admin/components/AdminMoneyCasesView.js +7 -1
- package/dist/features/admin/components/AdminNavEditorView.js +3 -1
- package/dist/features/admin/components/AdminNavigationView.d.ts +1 -1
- package/dist/features/admin/components/AdminNavigationView.js +10 -1
- package/dist/features/admin/components/AdminNewsletterView.d.ts +1 -1
- package/dist/features/admin/components/AdminNewsletterView.js +7 -1
- package/dist/features/admin/components/AdminNotificationsView.d.ts +1 -1
- package/dist/features/admin/components/AdminNotificationsView.js +5 -1
- package/dist/features/admin/components/AdminOffersView.d.ts +1 -1
- package/dist/features/admin/components/AdminOffersView.js +5 -1
- package/dist/features/admin/components/AdminOrderEditorView.js +8 -2
- package/dist/features/admin/components/AdminOrdersGuideView.js +4 -1
- package/dist/features/admin/components/AdminOrdersView.d.ts +1 -1
- package/dist/features/admin/components/AdminOrdersView.js +3 -1
- package/dist/features/admin/components/AdminPartsView.d.ts +1 -1
- package/dist/features/admin/components/AdminPartsView.js +3 -1
- package/dist/features/admin/components/AdminPaymentClustersView.js +7 -1
- package/dist/features/admin/components/AdminPaymentMethodsView.js +7 -1
- package/dist/features/admin/components/AdminPaymentsGuideView.js +4 -1
- package/dist/features/admin/components/AdminPayoutsView.d.ts +1 -1
- package/dist/features/admin/components/AdminPayoutsView.js +5 -1
- package/dist/features/admin/components/AdminPrizeDrawsView.d.ts +1 -1
- package/dist/features/admin/components/AdminPrizeDrawsView.js +7 -1
- package/dist/features/admin/components/AdminProductEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminProductEditorView.js +5 -2
- package/dist/features/admin/components/AdminProductsView.d.ts +1 -1
- package/dist/features/admin/components/AdminProductsView.js +5 -2
- package/dist/features/admin/components/AdminReturnRequestsView.js +3 -1
- package/dist/features/admin/components/AdminReviewsView.d.ts +1 -1
- package/dist/features/admin/components/AdminReviewsView.js +8 -1
- package/dist/features/admin/components/AdminScammersView.d.ts +1 -1
- package/dist/features/admin/components/AdminScammersView.js +5 -1
- package/dist/features/admin/components/AdminSectionsView.js +1 -1
- package/dist/features/admin/components/AdminSessionsManager.js +1 -1
- package/dist/features/admin/components/AdminSessionsView.d.ts +1 -1
- package/dist/features/admin/components/AdminSessionsView.js +6 -1
- package/dist/features/admin/components/AdminSidebar.js +7 -1
- package/dist/features/admin/components/AdminSiteConfigGuideView.js +5 -1
- package/dist/features/admin/components/AdminSiteSettingsView.d.ts +1 -1
- package/dist/features/admin/components/AdminSiteSettingsView.js +21 -5
- package/dist/features/admin/components/AdminSparesView.d.ts +1 -1
- package/dist/features/admin/components/AdminSparesView.js +1 -1
- package/dist/features/admin/components/AdminStickersView.d.ts +1 -1
- package/dist/features/admin/components/AdminStickersView.js +1 -1
- package/dist/features/admin/components/AdminStoreAddressesView.js +1 -1
- package/dist/features/admin/components/AdminStoreEditorView.js +7 -1
- package/dist/features/admin/components/AdminStoresGuideView.js +5 -1
- package/dist/features/admin/components/AdminStoresView.d.ts +1 -1
- package/dist/features/admin/components/AdminStoresView.js +4 -1
- package/dist/features/admin/components/AdminSublistingCategoryEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminSublistingCategoryEditorView.js +8 -3
- package/dist/features/admin/components/AdminSupportTicketDetailView.js +12 -1
- package/dist/features/admin/components/AdminSupportTicketsView.d.ts +1 -1
- package/dist/features/admin/components/AdminSupportTicketsView.js +4 -1
- package/dist/features/admin/components/AdminTaxCodeEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminTaxCodeEditorView.js +4 -1
- package/dist/features/admin/components/AdminTaxCodesView.d.ts +1 -1
- package/dist/features/admin/components/AdminTaxCodesView.js +1 -1
- package/dist/features/admin/components/AdminTeamGuideView.js +5 -1
- package/dist/features/admin/components/AdminTeamView.d.ts +1 -1
- package/dist/features/admin/components/AdminTeamView.js +4 -1
- package/dist/features/admin/components/AdminTesterChecklistItemEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminTesterChecklistItemEditorView.js +4 -1
- package/dist/features/admin/components/AdminTesterChecklistView.d.ts +1 -1
- package/dist/features/admin/components/AdminTesterChecklistView.js +4 -1
- package/dist/features/admin/components/AdminTopBar.js +1 -1
- package/dist/features/admin/components/AdminTrustGuideView.js +5 -1
- package/dist/features/admin/components/AdminUserEditorView.js +12 -1
- package/dist/features/admin/components/AdminUsersGuideView.js +5 -1
- package/dist/features/admin/components/AdminUsersView.d.ts +1 -1
- package/dist/features/admin/components/AdminViewCards.js +4 -1
- package/dist/features/admin/components/AdminWishlistsView.d.ts +1 -1
- package/dist/features/admin/components/AdminWishlistsView.js +1 -1
- package/dist/features/admin/components/DashboardStats.js +3 -1
- package/dist/features/admin/components/DataListingView.d.ts +1 -1
- package/dist/features/admin/components/DataListingView.js +14 -2
- package/dist/features/admin/components/DataTable.js +7 -1
- package/dist/features/admin/components/OwnerQuickActions.d.ts +7 -1
- package/dist/features/admin/components/OwnerQuickActions.js +3 -2
- package/dist/features/admin/components/QuickEditMenu.js +2 -1
- package/dist/features/admin/components/ViewAuditLogEntryModal.js +6 -1
- package/dist/features/admin/components/ViewNotificationModal.js +6 -1
- package/dist/features/admin/components/analytics/AdminAnalyticsCharts.js +2 -1
- package/dist/features/admin/components/analytics/AdminStatCard.js +3 -1
- package/dist/features/admin/components/analytics/AdminTopProductsTable.js +3 -1
- package/dist/features/admin/components/sections/adminSectionsTypes.js +1 -0
- package/dist/features/admin/constants/site-settings-tabs.d.ts +1 -1
- package/dist/features/admin/hooks/useAdminListing.d.ts +1 -1
- package/dist/features/admin/hooks/useOptimisticRowFlag.js +1 -1
- package/dist/features/admin/schemas/action-index-form.d.ts +2 -2
- package/dist/features/admin/schemas/admin-editor-forms.d.ts +12 -12
- package/dist/features/admin/schemas/admin-editor-forms.js +0 -1
- package/dist/features/admin/schemas/admin-ops-forms.d.ts +8 -8
- package/dist/features/admin/schemas/admin-user-form.d.ts +8 -8
- package/dist/features/admin/schemas/firestore.d.ts +52 -0
- package/dist/features/admin/schemas/firestore.js +20 -0
- package/dist/features/admin/schemas/nav-item-form.d.ts +8 -8
- package/dist/features/auctions/actions/bid-actions.js +1 -1
- package/dist/features/auctions/api/route.js +1 -8
- package/dist/features/auctions/components/AuctionBidsTable.js +6 -1
- package/dist/features/auctions/components/AuctionBottomActions.js +1 -1
- package/dist/features/auctions/components/AuctionDetailPageView.js +12 -9
- package/dist/features/auctions/components/AuctionFilters.js +1 -1
- package/dist/features/auctions/components/AuctionLiveStatusBadge.js +1 -1
- package/dist/features/auctions/components/AuctionsListView.js +3 -1
- package/dist/features/auctions/components/CollapsibleBidHistory.js +4 -1
- package/dist/features/auctions/components/LiveBidPrice.js +3 -1
- package/dist/features/auctions/components/LiveMinIncrement.js +1 -1
- package/dist/features/auctions/components/MarketplaceAuctionCard.d.ts +1 -1
- package/dist/features/auctions/components/MarketplaceAuctionCard.js +9 -3
- package/dist/features/auctions/components/MarketplaceAuctionGrid.d.ts +1 -1
- package/dist/features/auctions/components/MarketplaceAuctionGrid.js +3 -1
- package/dist/features/auctions/components/PlaceBidFormClient.js +8 -1
- package/dist/features/auctions/schemas/index.d.ts +34 -34
- package/dist/features/auth/components/ForgotPasswordView.js +6 -1
- package/dist/features/auth/components/Guards.js +4 -1
- package/dist/features/auth/components/LoginForm.js +7 -1
- package/dist/features/auth/components/OAuthLoadingView.js +3 -1
- package/dist/features/auth/components/RegisterForm.js +5 -1
- package/dist/features/auth/components/ResetPasswordView.js +6 -1
- package/dist/features/auth/components/SocialAuthButtons.js +4 -1
- package/dist/features/auth/components/VerifyEmailView.js +4 -1
- package/dist/features/auth/hooks/useAuth.js +1 -1
- package/dist/features/auth/schemas/index.d.ts +2 -2
- package/dist/features/before-after/api/route.js +1 -5
- package/dist/features/before-after/components/BeforeAfterGallery.js +3 -1
- package/dist/features/before-after/components/BeforeAfterSlider.js +3 -1
- package/dist/features/before-after/schemas/index.d.ts +4 -4
- package/dist/features/beys/components/BeyDetailPageView.js +7 -1
- package/dist/features/blog/actions/blog-actions.d.ts +39 -39
- package/dist/features/blog/api/route.js +1 -8
- package/dist/features/blog/components/BlogFeaturedCard.js +6 -1
- package/dist/features/blog/components/BlogFilters.js +1 -1
- package/dist/features/blog/components/BlogIndexListing.js +7 -1
- package/dist/features/blog/components/BlogIndexPageView.d.ts +2 -3
- package/dist/features/blog/components/BlogIndexPageView.js +9 -10
- package/dist/features/blog/components/BlogListView.js +6 -1
- package/dist/features/blog/components/BlogPostForm.js +9 -2
- package/dist/features/blog/components/BlogPostView.js +5 -1
- package/dist/features/blog/schemas/blog-form.d.ts +10 -10
- package/dist/features/blog/schemas/index.d.ts +80 -80
- package/dist/features/cart/actions/cart-actions.js +1 -1
- package/dist/features/cart/api/route.js +1 -5
- package/dist/features/cart/components/CartDrawer.js +6 -1
- package/dist/features/cart/components/CartGroupLineRow.js +5 -1
- package/dist/features/cart/components/CartPriceBreakdown.js +4 -1
- package/dist/features/cart/components/CartSummary.js +2 -1
- package/dist/features/cart/components/CartView.js +3 -1
- package/dist/features/cart/components/CheckoutAddressStep.js +3 -1
- package/dist/features/cart/components/CheckoutSuccessView.d.ts +1 -1
- package/dist/features/cart/components/CheckoutSuccessView.js +1 -1
- package/dist/features/cart/components/CheckoutView.js +3 -1
- package/dist/features/cart/components/PointsTenderPicker.js +3 -1
- package/dist/features/cart/components/ShippingPicker.js +4 -1
- package/dist/features/cart/components/StoreAddonsPicker.js +3 -1
- package/dist/features/cart/schemas/index.d.ts +30 -30
- package/dist/features/cart/utils/guest-cart.js +1 -5
- package/dist/features/catalogue/actions/approve-catalogue-listing.js +1 -1
- package/dist/features/catalogue/actions/list-from-catalogue.js +2 -1
- package/dist/features/catalogue/actions/submit-for-approval.js +1 -1
- package/dist/features/catalogue/components/AdminCatalogueApprovalsView.js +6 -1
- package/dist/features/catalogue/components/CatalogueItemEditorView.js +1 -1
- package/dist/features/catalogue/components/PublicCatalogueItemDetailView.js +6 -1
- package/dist/features/catalogue/components/PublicCatalogueView.js +5 -1
- package/dist/features/catalogue/components/UserCatalogueView.js +7 -1
- package/dist/features/catalogue/repository/catalogue.repository.js +1 -1
- package/dist/features/catalogue/schemas/validation.d.ts +12 -12
- package/dist/features/catalogue/utils/product-from-item.js +1 -1
- package/dist/features/categories/api/route.js +5 -23
- package/dist/features/categories/components/BrandDetailPageView.js +6 -2
- package/dist/features/categories/components/BrandDetailTabs.js +2 -1
- package/dist/features/categories/components/BreadcrumbTrail.js +4 -2
- package/dist/features/categories/components/BundleBuyNowCta.js +5 -2
- package/dist/features/categories/components/BundleCollage.js +5 -1
- package/dist/features/categories/components/BundleDetailView.js +6 -1
- package/dist/features/categories/components/BundleDynamicRuleEditor.js +6 -1
- package/dist/features/categories/components/BundleItemsPicker.js +7 -1
- package/dist/features/categories/components/BundlesListView.d.ts +2 -3
- package/dist/features/categories/components/BundlesListView.js +6 -7
- package/dist/features/categories/components/CategoriesIndexListing.js +55 -6
- package/dist/features/categories/components/CategoriesIndexPageView.d.ts +2 -3
- package/dist/features/categories/components/CategoriesIndexPageView.js +3 -33
- package/dist/features/categories/components/CategoryBundlesListing.js +8 -2
- package/dist/features/categories/components/CategoryDetailPageView.js +7 -2
- package/dist/features/categories/components/CategoryDetailTabs.js +2 -1
- package/dist/features/categories/components/CategoryFilters.js +1 -1
- package/dist/features/categories/components/CategoryForm.js +3 -1
- package/dist/features/categories/components/CategoryGrid.js +3 -1
- package/dist/features/categories/components/CategoryHighlightsAndFaqSection.js +3 -1
- package/dist/features/categories/components/CategoryProductsListing.js +8 -1
- package/dist/features/categories/components/CategorySelectorCreate.js +6 -1
- package/dist/features/categories/components/CategorySortSelect.js +4 -1
- package/dist/features/categories/components/CategoryStoresListing.js +2 -1
- package/dist/features/categories/components/CategoryTableColumns.js +6 -2
- package/dist/features/categories/components/CategoryTemplatePicker.js +4 -1
- package/dist/features/categories/components/CategoryTree.js +2 -1
- package/dist/features/categories/components/ConcernCard.js +3 -1
- package/dist/features/categories/components/ConcernGrid.js +1 -1
- package/dist/features/categories/components/PriceGuidanceHint.js +3 -1
- package/dist/features/categories/components/SubcategoryCardRow.js +4 -1
- package/dist/features/categories/constants/category-tabs.d.ts +1 -1
- package/dist/features/categories/constants/category-tabs.js +7 -0
- package/dist/features/categories/hooks/useCategories.d.ts +6 -0
- package/dist/features/categories/hooks/useCategories.js +73 -2
- package/dist/features/categories/schemas/bundle-form.d.ts +22 -22
- package/dist/features/categories/schemas/index.d.ts +100 -100
- package/dist/features/categories/types/index.d.ts +1 -1
- package/dist/features/checkout/components/CheckoutStepper.js +3 -1
- package/dist/features/classified/components/ClassifiedDetailPageView.js +9 -9
- package/dist/features/classified/components/ClassifiedFilters.js +3 -1
- package/dist/features/collections/api/route.js +1 -5
- package/dist/features/collections/components/CollectionCard.js +4 -1
- package/dist/features/collections/schemas/index.d.ts +9 -9
- package/dist/features/consultation/api/route.js +1 -5
- package/dist/features/consultation/components/ConsultationForm.js +3 -1
- package/dist/features/consultation/schemas/index.d.ts +8 -8
- package/dist/features/contact/components/ContactForm.js +5 -2
- package/dist/features/contact/components/ContactInfoSidebar.js +4 -1
- package/dist/features/contact/components/ContactPageView.js +6 -1
- package/dist/features/contact/email.js +2 -5
- package/dist/features/corporate/api/route.js +1 -5
- package/dist/features/corporate/components/CorporateInquiryForm.js +3 -1
- package/dist/features/dashboard/components/DashboardHubView.js +7 -1
- package/dist/features/digital-codes/components/DigitalCodeDetailPageView.js +8 -8
- package/dist/features/digital-codes/components/DigitalCodeFilters.js +1 -1
- package/dist/features/dispute-reasons/components/AdminDisputeReasonsView.js +4 -1
- package/dist/features/events/components/AdminEventEditorView.d.ts +1 -1
- package/dist/features/events/components/AdminEventEditorView.js +14 -3
- package/dist/features/events/components/AdminEventEntriesView.js +10 -2
- package/dist/features/events/components/AdminEventsView.d.ts +1 -1
- package/dist/features/events/components/AdminEventsView.js +2 -1
- package/dist/features/events/components/EventBanner.js +3 -1
- package/dist/features/events/components/EventCard.js +7 -1
- package/dist/features/events/components/EventDetailView.d.ts +1 -1
- package/dist/features/events/components/EventDetailView.js +1 -1
- package/dist/features/events/components/EventFilters.js +1 -1
- package/dist/features/events/components/EventFormDrawer.js +1 -1
- package/dist/features/events/components/EventInsights.js +3 -1
- package/dist/features/events/components/EventLeaderboard.js +3 -1
- package/dist/features/events/components/EventLikeButton.js +4 -1
- package/dist/features/events/components/EventLikersRail.js +5 -1
- package/dist/features/events/components/EventOfferCard.js +3 -1
- package/dist/features/events/components/EventParticipateView.js +1 -1
- package/dist/features/events/components/EventPollWidget.js +8 -1
- package/dist/features/events/components/EventRaffleEntryForm.js +3 -1
- package/dist/features/events/components/EventRaffleWinnerView.js +6 -1
- package/dist/features/events/components/EventRafflesSection.js +3 -1
- package/dist/features/events/components/EventSaleBanner.js +4 -1
- package/dist/features/events/components/EventStatusBadge.js +1 -1
- package/dist/features/events/components/EventTypeBadge.js +1 -1
- package/dist/features/events/components/EventsIndexListing.js +7 -1
- package/dist/features/events/components/EventsListPageView.d.ts +2 -3
- package/dist/features/events/components/EventsListPageView.js +11 -12
- package/dist/features/events/components/EventsListView.js +4 -1
- package/dist/features/events/components/RelatedEventsCarousel.js +3 -1
- package/dist/features/events/components/SpinWheel.js +1 -1
- package/dist/features/events/components/SpinWheelView.js +7 -1
- package/dist/features/events/schemas/event-form.d.ts +5 -0
- package/dist/features/events/schemas/event-form.js +17 -0
- package/dist/features/events/schemas/firestore.d.ts +49 -1
- package/dist/features/events/schemas/index.d.ts +184 -184
- package/dist/features/events/utils/carousel-slide.d.ts +0 -9
- package/dist/features/events/utils/carousel-slide.js +38 -1
- package/dist/features/faq/actions/faq-actions.d.ts +12 -12
- package/dist/features/faq/components/ContactCTA.js +5 -1
- package/dist/features/faq/components/FAQAccordion.js +6 -1
- package/dist/features/faq/components/FAQCategorySidebar.js +5 -1
- package/dist/features/faq/components/FAQHelpfulButtons.js +3 -1
- package/dist/features/faq/components/FAQPageContent.js +8 -1
- package/dist/features/faq/components/FAQSearchableList.js +2 -1
- package/dist/features/faq/components/FAQSortDropdown.js +4 -1
- package/dist/features/faq/components/RelatedFAQs.js +4 -1
- package/dist/features/faq/constants/help-guides.d.ts +8 -5
- package/dist/features/faq/constants/help-guides.js +9 -5
- package/dist/features/faq/schemas/index.d.ts +14 -14
- package/dist/features/filters/AsyncFacetSection.js +8 -3
- package/dist/features/filters/FilterFacetSection.js +11 -6
- package/dist/features/filters/FilterPanel.js +1 -1
- package/dist/features/filters/RangeFilter.js +8 -3
- package/dist/features/filters/SwitchFilter.js +7 -3
- package/dist/features/filters/filterUtils.d.ts +0 -2
- package/dist/features/filters/filterUtils.js +0 -4
- package/dist/features/filters/index.d.ts +1 -1
- package/dist/features/filters/index.js +1 -1
- package/dist/features/forms/Checkbox.js +7 -4
- package/dist/features/forms/Input.js +7 -5
- package/dist/features/forms/Radio.js +9 -6
- package/dist/features/forms/Select.js +5 -3
- package/dist/features/forms/Slider.js +6 -3
- package/dist/features/forms/Textarea.js +6 -3
- package/dist/features/forms/Toggle.js +6 -4
- package/dist/features/forms/index.d.ts +1 -1
- package/dist/features/forms/index.js +1 -1
- package/dist/features/forms/utils.d.ts +0 -2
- package/dist/features/forms/utils.js +0 -4
- package/dist/features/gateway-events/schemas/index.d.ts +10 -10
- package/dist/features/grouped/components/GroupedListingDetailView.js +4 -1
- package/dist/features/grouped/components/GroupedListingEditorView.js +5 -2
- package/dist/features/grouped/components/GroupedListingsCarousel.js +1 -1
- package/dist/features/grouped/schemas/grouped-listing-form.d.ts +8 -8
- package/dist/features/grouped/schemas/index.d.ts +8 -8
- package/dist/features/history/hooks/useHistory.js +1 -1
- package/dist/features/history/utils/guest-history.js +1 -5
- package/dist/features/homepage/actions/homepage-section-actions.d.ts +4 -4
- package/dist/features/homepage/components/AdSlot.js +3 -1
- package/dist/features/homepage/components/BrandsSection.js +6 -1
- package/dist/features/homepage/components/CTABannerSection.js +6 -1
- package/dist/features/homepage/components/CharacterHotspot.js +5 -1
- package/dist/features/homepage/components/CharacterHotspotForm.js +8 -1
- package/dist/features/homepage/components/CollectionCardsSection.js +4 -1
- package/dist/features/homepage/components/CustomCardsSection.js +13 -2
- package/dist/features/homepage/components/CustomerReviewsSection.js +5 -1
- package/dist/features/homepage/components/FAQSection.js +8 -1
- package/dist/features/homepage/components/FeaturedBundlesSection.d.ts +6 -1
- package/dist/features/homepage/components/FeaturedBundlesSection.js +4 -2
- package/dist/features/homepage/components/GoogleReviewsSection.js +6 -1
- package/dist/features/homepage/components/HeroCarousel.js +6 -1
- package/dist/features/homepage/components/HomepageCouponsSection.d.ts +25 -0
- package/dist/features/homepage/components/HomepageCouponsSection.js +42 -0
- package/dist/features/homepage/components/HowItWorksSection.d.ts +1 -1
- package/dist/features/homepage/components/HowItWorksSection.js +7 -1
- package/dist/features/homepage/components/MarketplaceHomepageView.js +52 -4
- package/dist/features/homepage/components/NewsletterSection.js +4 -1
- package/dist/features/homepage/components/PromoGrid.js +4 -1
- package/dist/features/homepage/components/SectionCarousel.d.ts +1 -1
- package/dist/features/homepage/components/SectionCarousel.js +6 -1
- package/dist/features/homepage/components/SecurityHighlightsSection.js +6 -1
- package/dist/features/homepage/components/ShopByCategorySection.js +7 -1
- package/dist/features/homepage/components/SocialFeedSection.js +6 -1
- package/dist/features/homepage/components/SocialPostCard.js +4 -1
- package/dist/features/homepage/components/StatsCounterSection.js +5 -1
- package/dist/features/homepage/components/TestimonialsCarousel.js +4 -1
- package/dist/features/homepage/components/TrustFeaturesSection.js +5 -1
- package/dist/features/homepage/components/WelcomeSection.js +10 -1
- package/dist/features/homepage/components/WhatsAppCommunitySection.js +8 -1
- package/dist/features/homepage/lib/section-renderer.d.ts +2 -0
- package/dist/features/homepage/lib/section-renderer.js +8 -0
- package/dist/features/homepage/schemas/firestore.d.ts +23 -2
- package/dist/features/homepage/schemas/firestore.js +2 -0
- package/dist/features/homepage/schemas/index.d.ts +133 -133
- package/dist/features/inventory/components/ReceiveStationView.js +9 -1
- package/dist/features/jobs/actions/enqueue-job.js +1 -1
- package/dist/features/layout/AppLayoutShell.d.ts +23 -1
- package/dist/features/layout/AppLayoutShell.js +13 -12
- package/dist/features/layout/AutoBreadcrumbs.js +3 -1
- package/dist/features/layout/BackToTop.js +2 -1
- package/dist/features/layout/BottomActions.js +5 -1
- package/dist/features/layout/BottomActionsContext.d.ts +1 -1
- package/dist/features/layout/BottomChrome.js +1 -1
- package/dist/features/layout/BottomNavItem.d.ts +9 -1
- package/dist/features/layout/BottomNavItem.js +20 -5
- package/dist/features/layout/BottomNavLayout.js +1 -1
- package/dist/features/layout/BottomSheet.js +4 -1
- package/dist/features/layout/Breadcrumbs.js +2 -1
- package/dist/features/layout/FooterLayout.js +5 -1
- package/dist/features/layout/LocaleSwitcher.js +1 -1
- package/dist/features/layout/NavItem.js +2 -1
- package/dist/features/layout/NavbarLayout.js +5 -1
- package/dist/features/layout/PageTabs.js +1 -1
- package/dist/features/layout/SideActionDock.js +7 -1
- package/dist/features/layout/SidebarLayout.d.ts +1 -1
- package/dist/features/layout/SidebarLayout.js +2 -1
- package/dist/features/layout/TitleBarLayout.js +9 -1
- package/dist/features/layout/index.d.ts +1 -1
- package/dist/features/live/components/LiveItemDetailPageView.js +8 -8
- package/dist/features/live/components/LiveItemFilters.js +3 -1
- package/dist/features/lottery/schemas/config-write.d.ts +10 -10
- package/dist/features/lottery/schemas/zod.d.ts +6 -6
- package/dist/features/media/MediaLightbox.js +3 -5
- package/dist/features/media/modals/ImageCropModal.js +6 -1
- package/dist/features/media/modals/ImageEditor.js +6 -1
- package/dist/features/media/modals/VideoTrimModal.js +6 -1
- package/dist/features/media/types/index.d.ts +4 -4
- package/dist/features/media/upload/MediaUploadList.js +7 -1
- package/dist/features/orders/components/OrderAddonBadges.js +2 -1
- package/dist/features/orders/components/OrderCompletionPanel.d.ts +1 -1
- package/dist/features/orders/components/OrderCompletionPanel.js +1 -1
- package/dist/features/orders/components/OrderFilters.js +1 -1
- package/dist/features/orders/components/OrderPaymentSummary.js +4 -1
- package/dist/features/orders/components/OrderProvenanceCard.js +5 -1
- package/dist/features/orders/components/OrderScopeTabs.js +1 -1
- package/dist/features/orders/components/OrderSiblingPayments.js +3 -1
- package/dist/features/orders/components/OrderStatusTimeline.js +4 -1
- package/dist/features/orders/components/OrdersList.js +4 -1
- package/dist/features/orders/components/RaiseDisputeForm.js +1 -1
- package/dist/features/orders/components/RefundHistoryTable.js +4 -1
- package/dist/features/orders/components/RefundRequestView.js +2 -2
- package/dist/features/orders/components/YourPurchaseStrip.js +5 -1
- package/dist/features/orders/schemas/index.d.ts +86 -86
- package/dist/features/parts/components/AssemblyDrawer.js +8 -1
- package/dist/features/parts/components/ModelCompositionPanel.js +5 -1
- package/dist/features/parts/components/PartDetailPageView.js +7 -1
- package/dist/features/parts/components/PartsIndexPageView.js +6 -1
- package/dist/features/parts/components/PartsSearchBox.js +5 -1
- package/dist/features/parts/schemas/firestore.d.ts +274 -0
- package/dist/features/parts/schemas/firestore.js +19 -0
- package/dist/features/payments/repository/saved-payment-methods.repository.js +1 -1
- package/dist/features/payments/schemas/index.d.ts +10 -10
- package/dist/features/points/schemas/adjust-form.d.ts +2 -2
- package/dist/features/pre-orders/api/admin/route.js +1 -5
- package/dist/features/pre-orders/components/MarketplacePreorderCard.d.ts +1 -1
- package/dist/features/pre-orders/components/MarketplacePreorderCard.js +10 -3
- package/dist/features/pre-orders/components/PreOrderActionsClient.js +6 -1
- package/dist/features/pre-orders/components/PreOrderBadge.js +2 -1
- package/dist/features/pre-orders/components/PreOrderDetailPageView.js +10 -9
- package/dist/features/pre-orders/components/PreOrderFilters.js +1 -1
- package/dist/features/pre-orders/components/PreOrdersIndexListing.js +11 -2
- package/dist/features/pre-orders/components/PreOrdersListView.js +3 -1
- package/dist/features/pre-orders/components/PreorderCard.js +1 -1
- package/dist/features/pre-orders/schemas/index.d.ts +15 -15
- package/dist/features/price-index/components/PriceIndexToolView.js +4 -1
- package/dist/features/pricing/components/AdminPricingView.js +4 -1
- package/dist/features/print/components/BoxLabelPrintView.js +5 -1
- package/dist/features/print/components/LabelProfilePicker.js +3 -1
- package/dist/features/print/components/labels.js +3 -1
- package/dist/features/products/api/route.js +1 -3
- package/dist/features/products/columns/productTableColumns.js +5 -1
- package/dist/features/products/components/ArtStickersListView.js +3 -1
- package/dist/features/products/components/AuctionDetailView.d.ts +1 -1
- package/dist/features/products/components/AuctionDetailView.js +2 -1
- package/dist/features/products/components/AuctionsIndexListing.js +10 -2
- package/dist/features/products/components/AvailabilityScopeHint.js +3 -1
- package/dist/features/products/components/AvailabilityTabs.js +1 -1
- package/dist/features/products/components/BidHistory.js +4 -1
- package/dist/features/products/components/CityCollectiblesView.js +6 -1
- package/dist/features/products/components/CompareOverlay.js +6 -1
- package/dist/features/products/components/CustomFieldsEditor.js +6 -1
- package/dist/features/products/components/CustomSectionTabContent.js +4 -6
- package/dist/features/products/components/CustomSectionsEditor.js +6 -1
- package/dist/features/products/components/FeatureBadge.js +2 -1
- package/dist/features/products/components/GroupMemberPicker.js +9 -2
- package/dist/features/products/components/GroupSettingsPanel.js +13 -2
- package/dist/features/products/components/MakeOfferButton.js +6 -1
- package/dist/features/products/components/MarketplaceBundleCard.js +6 -1
- package/dist/features/products/components/MarketplacePrizeDrawCard.js +7 -1
- package/dist/features/products/components/NonRefundableConsentModal.js +6 -1
- package/dist/features/products/components/PreOrderDetailView.d.ts +1 -1
- package/dist/features/products/components/PreOrderDetailView.js +1 -1
- package/dist/features/products/components/PrizeDrawCollage.js +6 -1
- package/dist/features/products/components/PrizeDrawDetailPageView.js +7 -8
- package/dist/features/products/components/PrizeDrawEntryActions.d.ts +1 -1
- package/dist/features/products/components/PrizeDrawEntryActions.js +8 -2
- package/dist/features/products/components/PrizeDrawWinnerMappingView.js +7 -1
- package/dist/features/products/components/PrizeDrawsIndexListing.js +8 -1
- package/dist/features/products/components/PrizeDrawsListingView.js +3 -1
- package/dist/features/products/components/PrizeDrawsSection.js +3 -1
- package/dist/features/products/components/PrizeRevealModal.js +6 -1
- package/dist/features/products/components/ProductCardMetadataSection.js +3 -1
- package/dist/features/products/components/ProductDetailActions.js +4 -1
- package/dist/features/products/components/ProductDetailPageView.js +11 -9
- package/dist/features/products/components/ProductDetailView.d.ts +1 -1
- package/dist/features/products/components/ProductDetailView.js +1 -1
- package/dist/features/products/components/ProductFeatureBadges.js +4 -1
- package/dist/features/products/components/ProductFeaturesSelector.js +3 -1
- package/dist/features/products/components/ProductFilters.js +2 -1
- package/dist/features/products/components/ProductForm.js +1 -1
- package/dist/features/products/components/ProductGalleryClient.js +4 -1
- package/dist/features/products/components/ProductGradingTab.js +4 -1
- package/dist/features/products/components/ProductGrid.d.ts +1 -1
- package/dist/features/products/components/ProductGrid.js +7 -1
- package/dist/features/products/components/ProductsIndexListing.js +11 -3
- package/dist/features/products/components/ProductsIndexPageView.js +6 -2
- package/dist/features/products/components/RelatedItemsSection.js +1 -1
- package/dist/features/products/components/RelatedProducts.js +3 -1
- package/dist/features/products/components/ShowGroupSection.js +7 -1
- package/dist/features/products/components/SparesListView.js +4 -1
- package/dist/features/products/components/SublistingCarouselSection.js +4 -1
- package/dist/features/products/components/SublistingCategorySelect.js +2 -1
- package/dist/features/products/hooks/useProducts.js +1 -1
- package/dist/features/products/repository/products.repository.js +0 -1
- package/dist/features/products/schemas/index.d.ts +70 -70
- package/dist/features/products/schemas/product-features.validators.d.ts +52 -52
- package/dist/features/promotions/actions/promotions-actions.js +22 -6
- package/dist/features/promotions/api/route.js +1 -8
- package/dist/features/promotions/components/AttachedCouponsSection.js +5 -2
- package/dist/features/promotions/components/CouponCard.js +8 -1
- package/dist/features/promotions/components/CouponCodeCopyRow.js +2 -1
- package/dist/features/promotions/components/CouponHelpDetails.js +4 -1
- package/dist/features/promotions/components/CouponsIndexListing.js +12 -1
- package/dist/features/promotions/components/PromotionsView.js +4 -1
- package/dist/features/promotions/constants/attached-coupons.d.ts +14 -0
- package/dist/features/promotions/repository/coupons.repository.js +32 -2
- package/dist/features/promotions/schemas/firestore.d.ts +33 -0
- package/dist/features/promotions/schemas/firestore.js +44 -0
- package/dist/features/promotions/schemas/index.d.ts +108 -108
- package/dist/features/reviews/components/ReviewDetailPageView.js +4 -1
- package/dist/features/reviews/components/ReviewDetailShell.js +8 -1
- package/dist/features/reviews/components/ReviewFilters.js +1 -1
- package/dist/features/reviews/components/ReviewModal.js +7 -2
- package/dist/features/reviews/components/ReviewSummary.js +4 -2
- package/dist/features/reviews/components/ReviewsIndexPageView.d.ts +2 -3
- package/dist/features/reviews/components/ReviewsIndexPageView.js +12 -13
- package/dist/features/reviews/components/ReviewsList.js +7 -2
- package/dist/features/reviews/components/ReviewsListingPanel.js +7 -1
- package/dist/features/reviews/schemas/index.d.ts +40 -40
- package/dist/features/scams/components/ScamAwarenessModal.js +7 -1
- package/dist/features/scams/components/ScamProfileView.js +11 -1
- package/dist/features/scams/constants/scammer-status-display.d.ts +1 -1
- package/dist/features/scams/schemas/index.d.ts +22 -22
- package/dist/features/scams/schemas/report-form.d.ts +4 -4
- package/dist/features/search/components/EntityTypeahead.js +5 -1
- package/dist/features/search/components/Search.js +7 -1
- package/dist/features/search/components/SearchFacetRail.js +4 -1
- package/dist/features/search/components/SearchResultsClient.js +1 -1
- package/dist/features/search/components/SearchResultsPageView.js +5 -1
- package/dist/features/seller/api/coupons/route.js +1 -5
- package/dist/features/seller/api/products/route.js +1 -5
- package/dist/features/seller/components/BulkStockModal.js +2 -1
- package/dist/features/seller/components/CategoryChipPicker.js +3 -1
- package/dist/features/seller/components/FulfillmentView.js +2 -1
- package/dist/features/seller/components/GroupInlineSelect.js +1 -1
- package/dist/features/seller/components/SellerAddressesView.js +11 -2
- package/dist/features/seller/components/SellerAnalyticsAlertsView.js +9 -1
- package/dist/features/seller/components/SellerAnalyticsView.d.ts +1 -1
- package/dist/features/seller/components/SellerAnalyticsView.js +4 -1
- package/dist/features/seller/components/SellerBidsView.js +8 -2
- package/dist/features/seller/components/SellerBundlesView.js +7 -1
- package/dist/features/seller/components/SellerCouponEditorView.js +5 -1
- package/dist/features/seller/components/SellerCouponsView.d.ts +1 -1
- package/dist/features/seller/components/SellerCouponsView.js +5 -1
- package/dist/features/seller/components/SellerDashboardView.d.ts +1 -1
- package/dist/features/seller/components/SellerDashboardView.js +4 -1
- package/dist/features/seller/components/SellerFeaturesView.js +8 -1
- package/dist/features/seller/components/SellerGoogleReviewsView.js +7 -1
- package/dist/features/seller/components/SellerGroupedListingsView.js +4 -1
- package/dist/features/seller/components/SellerGuideView.d.ts +1 -1
- package/dist/features/seller/components/SellerGuideView.js +1 -1
- package/dist/features/seller/components/SellerListingTypeView.js +4 -1
- package/dist/features/seller/components/SellerOffersView.d.ts +1 -1
- package/dist/features/seller/components/SellerOffersView.js +4 -1
- package/dist/features/seller/components/SellerOrdersView.js +8 -1
- package/dist/features/seller/components/SellerPayoutHistoryTable.js +2 -1
- package/dist/features/seller/components/SellerPayoutMethodsView.js +7 -1
- package/dist/features/seller/components/SellerPayoutRequestView.js +8 -1
- package/dist/features/seller/components/SellerPayoutSettingsView.js +3 -2
- package/dist/features/seller/components/SellerPayoutStats.js +1 -1
- package/dist/features/seller/components/SellerPayoutsView.d.ts +1 -1
- package/dist/features/seller/components/SellerPayoutsView.js +10 -1
- package/dist/features/seller/components/SellerProductShell.js +1 -2
- package/dist/features/seller/components/SellerProductsCards.js +7 -1
- package/dist/features/seller/components/SellerProductsFilterDrawer.js +4 -1
- package/dist/features/seller/components/SellerProductsView.js +7 -1
- package/dist/features/seller/components/SellerReviewsView.js +11 -1
- package/dist/features/seller/components/SellerShippingConfigsView.js +6 -1
- package/dist/features/seller/components/SellerShippingView.js +2 -2
- package/dist/features/seller/components/SellerSidebar.js +7 -1
- package/dist/features/seller/components/SellerStoreCategoriesView.js +5 -1
- package/dist/features/seller/components/SellerStoreSetupView.js +2 -1
- package/dist/features/seller/components/SellerStorefrontView.js +1 -1
- package/dist/features/seller/components/SellerSupportView.d.ts +1 -1
- package/dist/features/seller/components/SellerSupportView.js +4 -1
- package/dist/features/seller/components/SellersListView.d.ts +1 -1
- package/dist/features/seller/components/SellersListView.js +1 -1
- package/dist/features/seller/components/analytics/SellerAnalyticsStats.js +1 -1
- package/dist/features/seller/components/analytics/SellerRevenueChart.js +2 -1
- package/dist/features/seller/components/analytics/SellerTopProducts.js +3 -1
- package/dist/features/seller/hooks/useSellerListingData.js +0 -30
- package/dist/features/seller/schemas/coupon-form.d.ts +50 -50
- package/dist/features/seller/schemas/index.d.ts +22 -22
- package/dist/features/seller/schemas/order-forms.d.ts +12 -12
- package/dist/features/server-errors/schemas/index.d.ts +4 -4
- package/dist/features/shell/CommandPalette.js +7 -1
- package/dist/features/shell/FormShell.js +5 -1
- package/dist/features/shell/SectionForm.js +4 -1
- package/dist/features/shipments/components/AdminShipmentEditorView.js +9 -1
- package/dist/features/shipments/components/AdminShipmentLotItemsView.js +11 -1
- package/dist/features/shipments/components/AdminShipmentProjectionsView.js +10 -1
- package/dist/features/shipments/components/AdminShipmentsView.d.ts +1 -1
- package/dist/features/shipments/components/AdminShipmentsView.js +3 -1
- package/dist/features/shipments/components/ShipmentItemLinkModal.js +7 -1
- package/dist/features/shipments/schemas/validation.d.ts +44 -44
- package/dist/features/site-settings/components/ActionPermissionsManager.js +7 -2
- package/dist/features/site-settings/components/NavPermissionsManager.js +6 -2
- package/dist/features/site-settings/components/ThemeManagerView.js +9 -1
- package/dist/features/status-history/components/StatusTimeline.js +4 -1
- package/dist/features/sticker-trace/components/StickerPrintPanel.js +6 -1
- package/dist/features/sticker-trace/components/StickerRetryPanel.js +4 -1
- package/dist/features/sticker-trace/components/StickerRunHistoryPanel.js +5 -1
- package/dist/features/sticker-trace/components/StickerTraceStudio.js +5 -1
- package/dist/features/store-extensions/schemas/admin-notification-form.d.ts +5 -5
- package/dist/features/store-extensions/schemas/custom-role-form.d.ts +12 -12
- package/dist/features/store-extensions/schemas/item-request-create-form.d.ts +2 -2
- package/dist/features/store-extensions/schemas/listing-template-form.d.ts +13 -13
- package/dist/features/store-extensions/schemas/payout-method-form.d.ts +10 -10
- package/dist/features/store-extensions/schemas/shipping-config-form.d.ts +12 -12
- package/dist/features/store-extensions/schemas/store-category-form.d.ts +10 -10
- package/dist/features/stores/api/[storeSlug]/auctions/route.js +1 -10
- package/dist/features/stores/api/[storeSlug]/products/route.js +1 -10
- package/dist/features/stores/components/InteractiveStoreCard.js +15 -2
- package/dist/features/stores/components/SellerStandingPanel.js +3 -1
- package/dist/features/stores/components/SellerTierBadge.js +2 -1
- package/dist/features/stores/components/StoreAboutView.js +5 -1
- package/dist/features/stores/components/StoreAddressSelectorCreate.js +2 -1
- package/dist/features/stores/components/StoreAuctionsListing.js +8 -1
- package/dist/features/stores/components/StoreAuctionsView.d.ts +1 -1
- package/dist/features/stores/components/StoreAuctionsView.js +1 -1
- package/dist/features/stores/components/StoreBundlesPageView.js +1 -1
- package/dist/features/stores/components/StoreCapabilitiesGuideView.js +6 -1
- package/dist/features/stores/components/StoreClassifiedsListing.js +7 -1
- package/dist/features/stores/components/StoreCreateForm.js +3 -1
- package/dist/features/stores/components/StoreDetailLayoutView.js +5 -2
- package/dist/features/stores/components/StoreDigitalCodesListing.js +7 -1
- package/dist/features/stores/components/StoreFilters.js +1 -1
- package/dist/features/stores/components/StoreFinanceGuideView.js +6 -1
- package/dist/features/stores/components/StoreGuideHubView.js +7 -2
- package/dist/features/stores/components/StoreHeader.js +6 -1
- package/dist/features/stores/components/StoreListingsGuideView.js +6 -1
- package/dist/features/stores/components/StoreLiveItemsListing.js +7 -1
- package/dist/features/stores/components/StoreNavTabs.js +3 -1
- package/dist/features/stores/components/StoreOrdersGuideView.js +7 -1
- package/dist/features/stores/components/StorePreOrdersListing.js +7 -1
- package/dist/features/stores/components/StoreProductsListing.js +8 -1
- package/dist/features/stores/components/StoreProductsView.js +5 -1
- package/dist/features/stores/components/StoreReviewsView.d.ts +1 -1
- package/dist/features/stores/components/StoreReviewsView.js +1 -1
- package/dist/features/stores/components/StoreSettingsGuideView.js +6 -1
- package/dist/features/stores/components/StoresIndexListing.js +9 -2
- package/dist/features/stores/components/StoresIndexPageView.d.ts +2 -3
- package/dist/features/stores/components/StoresIndexPageView.js +10 -11
- package/dist/features/stores/hooks/useStoreAddressSelector.d.ts +1 -1
- package/dist/features/stores/schemas/firestore.d.ts +27 -0
- package/dist/features/stores/schemas/firestore.js +2 -0
- package/dist/features/stores/schemas/index.d.ts +28 -28
- package/dist/features/support/schemas/index.d.ts +14 -14
- package/dist/features/support/schemas/ticket-create-form.d.ts +4 -4
- package/dist/features/tax-codes/schemas/tax-code-form.d.ts +4 -4
- package/dist/features/tax-codes/schemas/tax-codes.validators.d.ts +10 -10
- package/dist/features/tester/actions/checklist-item-actions.d.ts +3 -3
- package/dist/features/tester/components/AdminTesterFeedbackIssuesView.js +7 -1
- package/dist/features/tester/components/AdminTesterFeedbackListView.js +5 -1
- package/dist/features/tester/components/AdminTesterFeedbackReportView.js +2 -1
- package/dist/features/tester/components/AdminTesterFeedbackView.js +5 -1
- package/dist/features/tester/components/TesterChecklistStepRow.js +8 -1
- package/dist/features/tester/components/TesterFeedbackChart.js +3 -1
- package/dist/features/tester/schemas/checklist-item-form.d.ts +2 -2
- package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +8 -1
- package/dist/features/wishlist/components/WishlistCapWatcher.js +1 -1
- package/dist/features/wishlist/components/WishlistHeartButton.js +2 -1
- package/dist/features/wishlist/components/WishlistPage.js +5 -1
- package/dist/features/wishlist/components/WishlistView.js +3 -1
- package/dist/features/wishlist/hooks/useWishlistToggle.js +1 -1
- package/dist/features/wishlist/hooks/useWishlistWithGuest.d.ts +1 -1
- package/dist/features/wishlist/schemas/index.d.ts +2 -2
- package/dist/features/wishlist/utils/guest-wishlist.js +1 -5
- package/dist/index.d.ts +2496 -2452
- package/dist/index.js +1549 -1500
- package/dist/next/api/routeHandler.js +1 -1
- package/dist/providers/db-firebase/admin-app-lite.js +14 -2
- package/dist/providers/db-firebase/admin.js +8 -2
- package/dist/react/hooks/use-action-dispatch.d.ts +1 -1
- package/dist/react/hooks/use-action-dispatch.js +1 -1
- package/dist/react/hooks/useBrowsePageFlags.d.ts +26 -0
- package/dist/react/hooks/useBrowsePageFlags.js +18 -0
- package/dist/schemas/registry.d.ts +492 -487
- package/dist/schemas/sieve.d.ts +5 -5
- package/dist/schemas/webhooks/google-oauth.d.ts +4 -4
- package/dist/security/csp.d.ts +32 -2
- package/dist/security/csp.js +32 -2
- package/dist/server.d.ts +369 -362
- package/dist/server.js +355 -351
- package/dist/styles.css +1 -1
- package/dist/tailwind-utilities.css +1 -1
- package/dist/ui/components/Button.js +1 -1
- package/dist/ui/components/Chart.js +0 -1
- package/dist/ui/components/HorizontalScroller.js +27 -2
- package/dist/ui/components/Repeater.js +4 -1
- package/dist/ui/rich-text/RichText.js +1 -3
- package/dist/ui/rich-text/RichTextRenderer.js +1 -3
- package/dist/utils/browser-storage.d.ts +14 -0
- package/dist/utils/browser-storage.js +18 -0
- package/dist/utils/classnames.d.ts +19 -0
- package/dist/utils/classnames.js +21 -0
- package/dist/utils/search-params.d.ts +44 -0
- package/dist/utils/search-params.js +46 -0
- package/dist/utils/sieve-builder.d.ts +13 -0
- package/dist/utils/sieve-builder.js +22 -0
- package/dist/utils/string.formatter.d.ts +12 -0
- package/dist/utils/string.formatter.js +17 -0
- package/dist/validation/schemas.d.ts +26 -26
- package/package.json +90 -2
|
@@ -14,18 +14,18 @@ export declare const customRoleFormSchema: z.ZodObject<{
|
|
|
14
14
|
inheritsFrom: z.ZodOptional<z.ZodString>;
|
|
15
15
|
isActive: z.ZodBoolean;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
scope: "store" | "global";
|
|
18
|
-
name: string;
|
|
19
17
|
slug: string;
|
|
20
18
|
isActive: boolean;
|
|
19
|
+
name: string;
|
|
20
|
+
scope: "store" | "global";
|
|
21
21
|
permissions: string[];
|
|
22
22
|
description?: string | undefined;
|
|
23
23
|
inheritsFrom?: string | undefined;
|
|
24
24
|
}, {
|
|
25
|
-
scope: "store" | "global";
|
|
26
|
-
name: string;
|
|
27
25
|
slug: string;
|
|
28
26
|
isActive: boolean;
|
|
27
|
+
name: string;
|
|
28
|
+
scope: "store" | "global";
|
|
29
29
|
permissions: string[];
|
|
30
30
|
description?: string | undefined;
|
|
31
31
|
inheritsFrom?: string | undefined;
|
|
@@ -41,18 +41,18 @@ export declare const customRoleCreateSchema: z.ZodObject<{
|
|
|
41
41
|
inheritsFrom: z.ZodOptional<z.ZodString>;
|
|
42
42
|
isActive: z.ZodBoolean;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
scope: "store" | "global";
|
|
45
|
-
name: string;
|
|
46
44
|
slug: string;
|
|
47
45
|
isActive: boolean;
|
|
46
|
+
name: string;
|
|
47
|
+
scope: "store" | "global";
|
|
48
48
|
permissions: string[];
|
|
49
49
|
description?: string | undefined;
|
|
50
50
|
inheritsFrom?: string | undefined;
|
|
51
51
|
}, {
|
|
52
|
-
scope: "store" | "global";
|
|
53
|
-
name: string;
|
|
54
52
|
slug: string;
|
|
55
53
|
isActive: boolean;
|
|
54
|
+
name: string;
|
|
55
|
+
scope: "store" | "global";
|
|
56
56
|
permissions: string[];
|
|
57
57
|
description?: string | undefined;
|
|
58
58
|
inheritsFrom?: string | undefined;
|
|
@@ -69,17 +69,17 @@ export declare const customRoleUpdateSchema: z.ZodObject<{
|
|
|
69
69
|
inheritsFrom: z.ZodOptional<z.ZodString>;
|
|
70
70
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
71
71
|
}, "strict", z.ZodTypeAny, {
|
|
72
|
-
scope?: "store" | "global" | undefined;
|
|
73
|
-
name?: string | undefined;
|
|
74
72
|
description?: string | undefined;
|
|
75
73
|
isActive?: boolean | undefined;
|
|
74
|
+
name?: string | undefined;
|
|
75
|
+
scope?: "store" | "global" | undefined;
|
|
76
76
|
permissions?: string[] | undefined;
|
|
77
77
|
inheritsFrom?: string | undefined;
|
|
78
78
|
}, {
|
|
79
|
-
scope?: "store" | "global" | undefined;
|
|
80
|
-
name?: string | undefined;
|
|
81
79
|
description?: string | undefined;
|
|
82
80
|
isActive?: boolean | undefined;
|
|
81
|
+
name?: string | undefined;
|
|
82
|
+
scope?: "store" | "global" | undefined;
|
|
83
83
|
permissions?: string[] | undefined;
|
|
84
84
|
inheritsFrom?: string | undefined;
|
|
85
85
|
}>;
|
|
@@ -13,15 +13,15 @@ export declare const itemRequestCreateSchema: z.ZodObject<{
|
|
|
13
13
|
}, "strict", z.ZodTypeAny, {
|
|
14
14
|
title: string;
|
|
15
15
|
description: string;
|
|
16
|
-
brand?: string | undefined;
|
|
17
16
|
category?: string | undefined;
|
|
17
|
+
brand?: string | undefined;
|
|
18
18
|
imageUrls?: string[] | undefined;
|
|
19
19
|
maxBudget?: number | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
title: string;
|
|
22
22
|
description: string;
|
|
23
|
-
brand?: string | undefined;
|
|
24
23
|
category?: string | undefined;
|
|
24
|
+
brand?: string | undefined;
|
|
25
25
|
imageUrls?: string[] | undefined;
|
|
26
26
|
maxBudget?: number | undefined;
|
|
27
27
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const LISTING_TEMPLATE_TYPE_OPTIONS: {
|
|
3
|
-
value: "
|
|
3
|
+
value: "standard" | "auction" | "pre-order" | "prize-draw" | "classified" | "digital-code" | "live" | "art" | "stickers" | "bundle";
|
|
4
4
|
label: string;
|
|
5
5
|
}[];
|
|
6
6
|
/**
|
|
@@ -15,16 +15,16 @@ export declare const listingTemplateFormSchema: z.ZodObject<{
|
|
|
15
15
|
isShared: z.ZodBoolean;
|
|
16
16
|
isActive: z.ZodBoolean;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
|
|
19
|
-
listingType: "art" | "stickers" | "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | "bundle";
|
|
18
|
+
listingType: "standard" | "auction" | "pre-order" | "prize-draw" | "classified" | "digital-code" | "live" | "art" | "stickers" | "bundle";
|
|
20
19
|
isActive: boolean;
|
|
20
|
+
name: string;
|
|
21
21
|
defaults: Record<string, import("../../..").FirestoreValue>;
|
|
22
22
|
isShared: boolean;
|
|
23
23
|
description?: string | undefined;
|
|
24
24
|
}, {
|
|
25
|
-
|
|
26
|
-
listingType: "art" | "stickers" | "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | "bundle";
|
|
25
|
+
listingType: "standard" | "auction" | "pre-order" | "prize-draw" | "classified" | "digital-code" | "live" | "art" | "stickers" | "bundle";
|
|
27
26
|
isActive: boolean;
|
|
27
|
+
name: string;
|
|
28
28
|
defaults: Record<string, import("../../..").FirestoreValue>;
|
|
29
29
|
isShared: boolean;
|
|
30
30
|
description?: string | undefined;
|
|
@@ -36,22 +36,22 @@ export type ListingTemplateFormValues = z.infer<typeof listingTemplateFormSchema
|
|
|
36
36
|
* else's store by adding a field to the body.
|
|
37
37
|
*/
|
|
38
38
|
export declare const listingTemplateCreateSchema: z.ZodObject<{
|
|
39
|
-
name: z.ZodString;
|
|
40
|
-
listingType: z.ZodEnum<["standard", "auction", "pre-order", "prize-draw", "bundle", "classified", "digital-code", "live", "art", "stickers"]>;
|
|
41
39
|
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
40
|
+
listingType: z.ZodEnum<["standard", "auction", "pre-order", "prize-draw", "bundle", "classified", "digital-code", "live", "art", "stickers"]>;
|
|
42
41
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
name: z.ZodString;
|
|
43
43
|
defaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../..").FirestoreValue, z.ZodTypeDef, import("../../..").FirestoreValue>>>;
|
|
44
44
|
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
listingType: "standard" | "auction" | "pre-order" | "prize-draw" | "classified" | "digital-code" | "live" | "art" | "stickers" | "bundle";
|
|
46
47
|
name: string;
|
|
47
|
-
listingType: "art" | "stickers" | "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | "bundle";
|
|
48
48
|
description?: string | undefined;
|
|
49
49
|
isActive?: boolean | undefined;
|
|
50
50
|
defaults?: Record<string, import("../../..").FirestoreValue> | undefined;
|
|
51
51
|
isShared?: boolean | undefined;
|
|
52
52
|
}, {
|
|
53
|
+
listingType: "standard" | "auction" | "pre-order" | "prize-draw" | "classified" | "digital-code" | "live" | "art" | "stickers" | "bundle";
|
|
53
54
|
name: string;
|
|
54
|
-
listingType: "art" | "stickers" | "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | "bundle";
|
|
55
55
|
description?: string | undefined;
|
|
56
56
|
isActive?: boolean | undefined;
|
|
57
57
|
defaults?: Record<string, import("../../..").FirestoreValue> | undefined;
|
|
@@ -80,17 +80,17 @@ export declare const listingTemplateUpdateSchema: z.ZodObject<{
|
|
|
80
80
|
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
81
81
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
82
82
|
}, "strict", z.ZodTypeAny, {
|
|
83
|
-
name?: string | undefined;
|
|
84
|
-
listingType?: "art" | "stickers" | "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | "bundle" | undefined;
|
|
85
83
|
description?: string | undefined;
|
|
84
|
+
listingType?: "standard" | "auction" | "pre-order" | "prize-draw" | "classified" | "digital-code" | "live" | "art" | "stickers" | "bundle" | undefined;
|
|
86
85
|
isActive?: boolean | undefined;
|
|
86
|
+
name?: string | undefined;
|
|
87
87
|
defaults?: Record<string, import("../../..").FirestoreValue> | undefined;
|
|
88
88
|
isShared?: boolean | undefined;
|
|
89
89
|
}, {
|
|
90
|
-
name?: string | undefined;
|
|
91
|
-
listingType?: "art" | "stickers" | "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | "bundle" | undefined;
|
|
92
90
|
description?: string | undefined;
|
|
91
|
+
listingType?: "standard" | "auction" | "pre-order" | "prize-draw" | "classified" | "digital-code" | "live" | "art" | "stickers" | "bundle" | undefined;
|
|
93
92
|
isActive?: boolean | undefined;
|
|
93
|
+
name?: string | undefined;
|
|
94
94
|
defaults?: Record<string, import("../../..").FirestoreValue> | undefined;
|
|
95
95
|
isShared?: boolean | undefined;
|
|
96
96
|
}>;
|
|
@@ -15,8 +15,8 @@ export declare const payoutMethodFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
15
15
|
isActive: z.ZodBoolean;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
17
|
type: "card" | "other" | "bank" | "upi";
|
|
18
|
-
label: string;
|
|
19
18
|
isActive: boolean;
|
|
19
|
+
label: string;
|
|
20
20
|
isDefault: boolean;
|
|
21
21
|
accountNumber?: string | undefined;
|
|
22
22
|
ifscCode?: string | undefined;
|
|
@@ -25,8 +25,8 @@ export declare const payoutMethodFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
25
25
|
bankName?: string | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
type: "card" | "other" | "bank" | "upi";
|
|
28
|
-
label: string;
|
|
29
28
|
isActive: boolean;
|
|
29
|
+
label: string;
|
|
30
30
|
isDefault: boolean;
|
|
31
31
|
accountNumber?: string | undefined;
|
|
32
32
|
ifscCode?: string | undefined;
|
|
@@ -35,8 +35,8 @@ export declare const payoutMethodFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
35
35
|
bankName?: string | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
type: "card" | "other" | "bank" | "upi";
|
|
38
|
-
label: string;
|
|
39
38
|
isActive: boolean;
|
|
39
|
+
label: string;
|
|
40
40
|
isDefault: boolean;
|
|
41
41
|
accountNumber?: string | undefined;
|
|
42
42
|
ifscCode?: string | undefined;
|
|
@@ -45,8 +45,8 @@ export declare const payoutMethodFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
45
45
|
bankName?: string | undefined;
|
|
46
46
|
}, {
|
|
47
47
|
type: "card" | "other" | "bank" | "upi";
|
|
48
|
-
label: string;
|
|
49
48
|
isActive: boolean;
|
|
49
|
+
label: string;
|
|
50
50
|
isDefault: boolean;
|
|
51
51
|
accountNumber?: string | undefined;
|
|
52
52
|
ifscCode?: string | undefined;
|
|
@@ -72,8 +72,8 @@ export declare const payoutMethodCreateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
72
72
|
isActive: z.ZodBoolean;
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
74
|
type: "card" | "other" | "bank" | "upi";
|
|
75
|
-
label: string;
|
|
76
75
|
isActive: boolean;
|
|
76
|
+
label: string;
|
|
77
77
|
isDefault: boolean;
|
|
78
78
|
accountNumber?: string | undefined;
|
|
79
79
|
ifscCode?: string | undefined;
|
|
@@ -82,8 +82,8 @@ export declare const payoutMethodCreateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
82
82
|
bankName?: string | undefined;
|
|
83
83
|
}, {
|
|
84
84
|
type: "card" | "other" | "bank" | "upi";
|
|
85
|
-
label: string;
|
|
86
85
|
isActive: boolean;
|
|
86
|
+
label: string;
|
|
87
87
|
isDefault: boolean;
|
|
88
88
|
accountNumber?: string | undefined;
|
|
89
89
|
ifscCode?: string | undefined;
|
|
@@ -92,8 +92,8 @@ export declare const payoutMethodCreateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
92
92
|
bankName?: string | undefined;
|
|
93
93
|
}>, {
|
|
94
94
|
type: "card" | "other" | "bank" | "upi";
|
|
95
|
-
label: string;
|
|
96
95
|
isActive: boolean;
|
|
96
|
+
label: string;
|
|
97
97
|
isDefault: boolean;
|
|
98
98
|
accountNumber?: string | undefined;
|
|
99
99
|
ifscCode?: string | undefined;
|
|
@@ -102,8 +102,8 @@ export declare const payoutMethodCreateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
102
102
|
bankName?: string | undefined;
|
|
103
103
|
}, {
|
|
104
104
|
type: "card" | "other" | "bank" | "upi";
|
|
105
|
-
label: string;
|
|
106
105
|
isActive: boolean;
|
|
106
|
+
label: string;
|
|
107
107
|
isDefault: boolean;
|
|
108
108
|
accountNumber?: string | undefined;
|
|
109
109
|
ifscCode?: string | undefined;
|
|
@@ -132,8 +132,8 @@ export declare const payoutMethodUpdateSchema: z.ZodObject<{
|
|
|
132
132
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
133
133
|
}, "strict", z.ZodTypeAny, {
|
|
134
134
|
type?: "card" | "other" | "bank" | "upi" | undefined;
|
|
135
|
-
label?: string | undefined;
|
|
136
135
|
isActive?: boolean | undefined;
|
|
136
|
+
label?: string | undefined;
|
|
137
137
|
isDefault?: boolean | undefined;
|
|
138
138
|
accountNumber?: string | undefined;
|
|
139
139
|
ifscCode?: string | undefined;
|
|
@@ -142,8 +142,8 @@ export declare const payoutMethodUpdateSchema: z.ZodObject<{
|
|
|
142
142
|
bankName?: string | undefined;
|
|
143
143
|
}, {
|
|
144
144
|
type?: "card" | "other" | "bank" | "upi" | undefined;
|
|
145
|
-
label?: string | undefined;
|
|
146
145
|
isActive?: boolean | undefined;
|
|
146
|
+
label?: string | undefined;
|
|
147
147
|
isDefault?: boolean | undefined;
|
|
148
148
|
accountNumber?: string | undefined;
|
|
149
149
|
ifscCode?: string | undefined;
|
|
@@ -20,8 +20,8 @@ export declare const shippingConfigFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
20
20
|
isDefault: z.ZodBoolean;
|
|
21
21
|
isActive: z.ZodBoolean;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
label: string;
|
|
24
23
|
isActive: boolean;
|
|
24
|
+
label: string;
|
|
25
25
|
isDefault: boolean;
|
|
26
26
|
method: ShippingMethod;
|
|
27
27
|
estimatedDays?: number | undefined;
|
|
@@ -30,8 +30,8 @@ export declare const shippingConfigFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
30
30
|
freeAbove?: number | undefined;
|
|
31
31
|
expressSurcharge?: number | undefined;
|
|
32
32
|
}, {
|
|
33
|
-
label: string;
|
|
34
33
|
isActive: boolean;
|
|
34
|
+
label: string;
|
|
35
35
|
isDefault: boolean;
|
|
36
36
|
method: ShippingMethod;
|
|
37
37
|
estimatedDays?: number | undefined;
|
|
@@ -40,8 +40,8 @@ export declare const shippingConfigFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
40
40
|
freeAbove?: number | undefined;
|
|
41
41
|
expressSurcharge?: number | undefined;
|
|
42
42
|
}>, {
|
|
43
|
-
label: string;
|
|
44
43
|
isActive: boolean;
|
|
44
|
+
label: string;
|
|
45
45
|
isDefault: boolean;
|
|
46
46
|
method: ShippingMethod;
|
|
47
47
|
estimatedDays?: number | undefined;
|
|
@@ -50,8 +50,8 @@ export declare const shippingConfigFormSchema: z.ZodEffects<z.ZodObject<{
|
|
|
50
50
|
freeAbove?: number | undefined;
|
|
51
51
|
expressSurcharge?: number | undefined;
|
|
52
52
|
}, {
|
|
53
|
-
label: string;
|
|
54
53
|
isActive: boolean;
|
|
54
|
+
label: string;
|
|
55
55
|
isDefault: boolean;
|
|
56
56
|
method: ShippingMethod;
|
|
57
57
|
estimatedDays?: number | undefined;
|
|
@@ -73,8 +73,8 @@ export declare const shippingConfigCreateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
73
73
|
isDefault: z.ZodBoolean;
|
|
74
74
|
isActive: z.ZodBoolean;
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
|
-
label: string;
|
|
77
76
|
isActive: boolean;
|
|
77
|
+
label: string;
|
|
78
78
|
isDefault: boolean;
|
|
79
79
|
method: ShippingMethod;
|
|
80
80
|
estimatedDays?: number | undefined;
|
|
@@ -83,8 +83,8 @@ export declare const shippingConfigCreateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
83
83
|
freeAbove?: number | undefined;
|
|
84
84
|
expressSurcharge?: number | undefined;
|
|
85
85
|
}, {
|
|
86
|
-
label: string;
|
|
87
86
|
isActive: boolean;
|
|
87
|
+
label: string;
|
|
88
88
|
isDefault: boolean;
|
|
89
89
|
method: ShippingMethod;
|
|
90
90
|
estimatedDays?: number | undefined;
|
|
@@ -93,8 +93,8 @@ export declare const shippingConfigCreateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
93
93
|
freeAbove?: number | undefined;
|
|
94
94
|
expressSurcharge?: number | undefined;
|
|
95
95
|
}>, {
|
|
96
|
-
label: string;
|
|
97
96
|
isActive: boolean;
|
|
97
|
+
label: string;
|
|
98
98
|
isDefault: boolean;
|
|
99
99
|
method: ShippingMethod;
|
|
100
100
|
estimatedDays?: number | undefined;
|
|
@@ -103,8 +103,8 @@ export declare const shippingConfigCreateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
103
103
|
freeAbove?: number | undefined;
|
|
104
104
|
expressSurcharge?: number | undefined;
|
|
105
105
|
}, {
|
|
106
|
-
label: string;
|
|
107
106
|
isActive: boolean;
|
|
107
|
+
label: string;
|
|
108
108
|
isDefault: boolean;
|
|
109
109
|
method: ShippingMethod;
|
|
110
110
|
estimatedDays?: number | undefined;
|
|
@@ -130,22 +130,22 @@ export declare const shippingConfigUpdateSchema: z.ZodObject<{
|
|
|
130
130
|
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
131
131
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
132
132
|
}, "strict", z.ZodTypeAny, {
|
|
133
|
-
label?: string | undefined;
|
|
134
133
|
isActive?: boolean | undefined;
|
|
134
|
+
label?: string | undefined;
|
|
135
135
|
isDefault?: boolean | undefined;
|
|
136
|
-
estimatedDays?: number | undefined;
|
|
137
136
|
method?: ShippingMethod | undefined;
|
|
137
|
+
estimatedDays?: number | undefined;
|
|
138
138
|
flatRate?: number | undefined;
|
|
139
139
|
pricePerKg?: number | undefined;
|
|
140
140
|
freeAbove?: number | undefined;
|
|
141
141
|
expressSurcharge?: number | undefined;
|
|
142
142
|
zones?: string[] | undefined;
|
|
143
143
|
}, {
|
|
144
|
-
label?: string | undefined;
|
|
145
144
|
isActive?: boolean | undefined;
|
|
145
|
+
label?: string | undefined;
|
|
146
146
|
isDefault?: boolean | undefined;
|
|
147
|
-
estimatedDays?: number | undefined;
|
|
148
147
|
method?: ShippingMethod | undefined;
|
|
148
|
+
estimatedDays?: number | undefined;
|
|
149
149
|
flatRate?: number | undefined;
|
|
150
150
|
pricePerKg?: number | undefined;
|
|
151
151
|
freeAbove?: number | undefined;
|
|
@@ -12,17 +12,17 @@ export declare const storeCategoryFormSchema: z.ZodObject<{
|
|
|
12
12
|
displayOrder: z.ZodNumber;
|
|
13
13
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
label: string;
|
|
16
15
|
displayOrder: number;
|
|
17
|
-
|
|
16
|
+
label: string;
|
|
18
17
|
description?: string | undefined;
|
|
18
|
+
slug?: string | undefined;
|
|
19
19
|
isActive?: boolean | undefined;
|
|
20
20
|
coverImageUrl?: string | undefined;
|
|
21
21
|
}, {
|
|
22
|
-
label: string;
|
|
23
22
|
displayOrder: number;
|
|
24
|
-
|
|
23
|
+
label: string;
|
|
25
24
|
description?: string | undefined;
|
|
25
|
+
slug?: string | undefined;
|
|
26
26
|
isActive?: boolean | undefined;
|
|
27
27
|
coverImageUrl?: string | undefined;
|
|
28
28
|
}>;
|
|
@@ -44,16 +44,16 @@ export declare const storeCategoryCreateSchema: z.ZodObject<{
|
|
|
44
44
|
} & {
|
|
45
45
|
slug: z.ZodString;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
label: string;
|
|
48
47
|
slug: string;
|
|
49
48
|
displayOrder: number;
|
|
49
|
+
label: string;
|
|
50
50
|
description?: string | undefined;
|
|
51
51
|
isActive?: boolean | undefined;
|
|
52
52
|
coverImageUrl?: string | undefined;
|
|
53
53
|
}, {
|
|
54
|
-
label: string;
|
|
55
54
|
slug: string;
|
|
56
55
|
displayOrder: number;
|
|
56
|
+
label: string;
|
|
57
57
|
description?: string | undefined;
|
|
58
58
|
isActive?: boolean | undefined;
|
|
59
59
|
coverImageUrl?: string | undefined;
|
|
@@ -78,17 +78,17 @@ export declare const storeCategoryUpdateSchema: z.ZodObject<{
|
|
|
78
78
|
displayOrder: z.ZodOptional<z.ZodNumber>;
|
|
79
79
|
isActive: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
80
80
|
}, "strict", z.ZodTypeAny, {
|
|
81
|
-
label?: string | undefined;
|
|
82
|
-
slug?: string | undefined;
|
|
83
81
|
description?: string | undefined;
|
|
82
|
+
slug?: string | undefined;
|
|
84
83
|
isActive?: boolean | undefined;
|
|
85
84
|
displayOrder?: number | undefined;
|
|
85
|
+
label?: string | undefined;
|
|
86
86
|
coverImageUrl?: string | undefined;
|
|
87
87
|
}, {
|
|
88
|
-
label?: string | undefined;
|
|
89
|
-
slug?: string | undefined;
|
|
90
88
|
description?: string | undefined;
|
|
89
|
+
slug?: string | undefined;
|
|
91
90
|
isActive?: boolean | undefined;
|
|
92
91
|
displayOrder?: number | undefined;
|
|
92
|
+
label?: string | undefined;
|
|
93
93
|
coverImageUrl?: string | undefined;
|
|
94
94
|
}>;
|
|
@@ -17,19 +17,10 @@ import { normalizeError } from "../../../../../errors/normalize.js";
|
|
|
17
17
|
import { NextResponse } from "next/server.js";
|
|
18
18
|
import { getProviders } from "../../../../../contracts/index.js";
|
|
19
19
|
const SAFE_STORE_AUCTION_FILTER_FIELDS = new Set(["price", "category"]);
|
|
20
|
-
function validateSieveFilters(raw, allowedFields) {
|
|
21
|
-
return raw
|
|
22
|
-
.split(",")
|
|
23
|
-
.map((c) => c.trim())
|
|
24
|
-
.filter((c) => {
|
|
25
|
-
const m = c.match(/^([^<>=!@]+)\s*(?:==|!=|<=|>=|<|>|@=\*?)/);
|
|
26
|
-
return m ? allowedFields.has(m[1].trim()) : false;
|
|
27
|
-
})
|
|
28
|
-
.join(",");
|
|
29
|
-
}
|
|
30
20
|
import { parseListingParams } from "../../../../../utils/listing-params.js";
|
|
31
21
|
import { SIEVE_OP, sieveFilter } from "../../../../../utils/sieve-builder.js";
|
|
32
22
|
import { PRODUCT_FIELDS } from "../../../../../constants/field-names.js";
|
|
23
|
+
import { validateSieveFilters } from "../../../../../utils/sieve-builder.js";
|
|
33
24
|
const DEFAULT_PAGE = 1;
|
|
34
25
|
const DEFAULT_PAGE_SIZE = 24;
|
|
35
26
|
const DEFAULT_SORT = "-createdAt";
|
|
@@ -19,6 +19,7 @@ import { getProviders } from "../../../../../contracts/index.js";
|
|
|
19
19
|
import { parseListingParams } from "../../../../../utils/listing-params.js";
|
|
20
20
|
import { SIEVE_OP, sieveFilter } from "../../../../../utils/sieve-builder.js";
|
|
21
21
|
import { PRODUCT_FIELDS } from "../../../../../constants/field-names.js";
|
|
22
|
+
import { validateSieveFilters } from "../../../../../utils/sieve-builder.js";
|
|
22
23
|
const DEFAULT_PAGE = 1;
|
|
23
24
|
const DEFAULT_PAGE_SIZE = 24;
|
|
24
25
|
const DEFAULT_SORT = "-createdAt";
|
|
@@ -28,16 +29,6 @@ const SAFE_STORE_PRODUCT_FILTER_FIELDS = new Set([
|
|
|
28
29
|
"brand",
|
|
29
30
|
"condition",
|
|
30
31
|
]);
|
|
31
|
-
function validateSieveFilters(raw, allowedFields) {
|
|
32
|
-
return raw
|
|
33
|
-
.split(",")
|
|
34
|
-
.map((c) => c.trim())
|
|
35
|
-
.filter((c) => {
|
|
36
|
-
const m = c.match(/^([^<>=!@]+)\s*(?:==|!=|<=|>=|<|>|@=\*?)/);
|
|
37
|
-
return m ? allowedFields.has(m[1].trim()) : false;
|
|
38
|
-
})
|
|
39
|
-
.join(",");
|
|
40
|
-
}
|
|
41
32
|
// --- GET /api/stores/[storeSlug]/products -------------------------------------
|
|
42
33
|
export async function GET(request, context) {
|
|
43
34
|
try {
|
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import Link from "next/link.js";
|
|
5
|
-
import { BaseListingCard
|
|
5
|
+
import { BaseListingCard } from "../../../ui/components/BaseListingCard.js";
|
|
6
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
7
|
+
import { Heading, Span } from "../../../ui/components/Typography.js";
|
|
8
|
+
import { RichText } from "../../../ui/rich-text/RichText.js";
|
|
9
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
10
|
+
import { Scrim } from "../../../ui/components/Scrim.js";
|
|
6
11
|
import { MediaImage } from "../../media/MediaImage.js";
|
|
7
12
|
import { normalizeRichTextHtml } from "../../../utils/index.js";
|
|
8
13
|
import { useLongPress } from "../../../react/hooks/useLongPress.js";
|
|
@@ -16,6 +21,14 @@ export function InteractiveStoreCard({ store, href, selectable, isSelected = fal
|
|
|
16
21
|
const [logoBroken, setLogoBroken] = useState(false);
|
|
17
22
|
const hasLogo = Boolean(store.storeLogoURL) && !logoBroken;
|
|
18
23
|
const hasBanner = Boolean(store.storeBannerURL);
|
|
24
|
+
/*
|
|
25
|
+
* The rating badge used to live ONLY as an overlay on the banner, so making
|
|
26
|
+
* the banner conditional would have silently dropped the rating from every
|
|
27
|
+
* bannerless store — a hidden second effect of a layout change (Root Cause
|
|
28
|
+
* #57's family). It renders in the stats row instead when there is no banner
|
|
29
|
+
* to sit on, so the card never loses the number.
|
|
30
|
+
*/
|
|
31
|
+
const hasRating = store.averageRating != null && store.averageRating > 0;
|
|
19
32
|
const longPress = useLongPress(() => onSelect?.(store.id, !isSelected));
|
|
20
33
|
const card = (_jsxs(Div, { className: [
|
|
21
34
|
"group relative flex flex-col h-full overflow-hidden rounded-xl border bg-[var(--appkit-color-surface)] shadow-sm transition-shadow hover:shadow-lg",
|
|
@@ -26,7 +39,7 @@ export function InteractiveStoreCard({ store, href, selectable, isSelected = fal
|
|
|
26
39
|
].join(" "), onMouseDown: !isSelected ? longPress.onMouseDown : undefined, onMouseUp: !isSelected ? longPress.onMouseUp : undefined, onMouseLeave: !isSelected ? longPress.onMouseLeave : undefined, onTouchStart: !isSelected ? longPress.onTouchStart : undefined, onTouchEnd: !isSelected ? longPress.onTouchEnd : undefined, onTouchCancel: !isSelected ? longPress.onTouchCancel : undefined, children: [onSelect && (_jsx(BaseListingCard.Checkbox, { selected: isSelected, onSelect: (e) => {
|
|
27
40
|
e.preventDefault();
|
|
28
41
|
onSelect(store.id, !isSelected);
|
|
29
|
-
}, label: isSelected ? "Deselect store" : "Select store", position: "top-2 left-2", className: selectable || isSelected ? "opacity-100" : "opacity-0 pointer-events-none group-hover:opacity-100 group-hover:pointer-events-auto transition-opacity" })), _jsxs(Link, { href: href, className: "flex flex-col flex-1 min-h-0", children: [_jsxs(Div, { surface: "muted", className: `relative aspect-video w-full ${__O.hidden} flex-shrink-0`, children: [
|
|
42
|
+
}, label: isSelected ? "Deselect store" : "Select store", position: "top-2 left-2", className: selectable || isSelected ? "opacity-100" : "opacity-0 pointer-events-none group-hover:opacity-100 group-hover:pointer-events-auto transition-opacity" })), _jsxs(Link, { href: href, className: "flex flex-col flex-1 min-h-0", children: [hasBanner && (_jsxs(Div, { surface: "muted", className: `relative aspect-video w-full ${__O.hidden} flex-shrink-0`, children: [_jsx(MediaImage, { src: store.storeBannerURL, alt: `${store.storeName} banner`, size: "banner", className: "h-full w-full object-cover transition-transform duration-500 group-hover:scale-105" }), _jsx(Scrim, { direction: "bottom-up", intensity: "subtle", className: "absolute inset-x-0 bottom-0 h-12" }), hasRating && (_jsxs(Div, { className: CLS_RATING_BADGE, children: ["\u2605 ", store.averageRating.toFixed(1)] }))] })), _jsxs(Stack, { paddingY: "b-md", className: "flex-1", padding: "x-md", children: [_jsx(Row, { className: hasBanner ? "-mt-5 mb-2" : "mt-3 mb-2", align: "end", justify: "between", children: _jsx(Div, { className: "flex-shrink-0", children: hasLogo ? (_jsx(Div, { className: "relative h-10 w-10 border-2 border-[var(--appkit-color-border-subtle)] bg-[var(--appkit-color-surface)]", rounded: "lg", shadow: "md", overflow: "hidden", children: _jsx(MediaImage, { src: store.storeLogoURL, alt: store.storeName, size: "thumbnail", onError: () => setLogoBroken(true) }) })) : (_jsx(Row, { textWeight: "bold", textSize: "base", className: "h-10 w-10 border-2 border-white bg-primary/10 dark:bg-primary/20 text-primary", align: "center", justify: "center", rounded: "lg", shadow: "md", children: initial })) }) }), _jsx(Heading, { level: 3, className: `group-hover:text-primary transition-colors`, truncate: true, size: "sm", weight: "bold", color: "primary", children: store.storeName }), _jsx(SellerTierBadge, { isVerified: store.isVerified, sellerTier: store.sellerTier, size: "xs" }), store.storeDescription ? (_jsx(RichText, { html: normalizeRichTextHtml(store.storeDescription), proseClass: "prose prose-sm max-w-none dark:prose-invert prose-p:my-0", className: "mt-1 line-clamp-2 text-[length:var(--appkit-text-xs)] text-[var(--appkit-color-text-muted)] flex-1" })) : (_jsx(Div, { className: "flex-1" })), _jsxs(Row, { color: "muted", textSize: "xs", gap: "sm", className: "mt-2.5", wrap: true, children: [!hasBanner && hasRating && (_jsxs(Span, { layout: "flex", gap: "2xs", className: "text-warning", children: [_jsx(Span, { "aria-hidden": "true", children: "\u2605" }), " ", store.averageRating.toFixed(1)] })), store.totalProducts != null && store.totalProducts > 0 && (_jsxs(Span, { layout: "flex", gap: "2xs", children: [_jsx(Span, { "aria-hidden": "true", children: "\uD83D\uDCE6" }), " ", store.totalProducts, " ", labels.products ?? "products"] })), store.itemsSold != null && store.itemsSold > 0 && (_jsxs(Span, { layout: "flex", gap: "2xs", children: [_jsx(Span, { "aria-hidden": "true", children: "\uD83D\uDECD\uFE0F" }), " ", store.itemsSold, " ", labels.sold ?? "sold"] }))] }), _jsxs(Row, { border: "top-subtle", paddingY: "y-xs-tall", className: "mt-3", align: "center", justify: "between", children: [_jsxs(Span, { size: "xs", weight: "semibold", className: "text-primary group-hover:underline transition-colors", children: [labels.visitStore ?? "Visit store", " \u2192"] }), store.totalReviews != null && store.totalReviews > 0 && (_jsxs(Span, { size: "xs", color: "muted", children: [store.totalReviews, " ", labels.reviews ?? "reviews"] }))] })] })] })] }));
|
|
30
43
|
if (!renderOwnerActions)
|
|
31
44
|
return card;
|
|
32
45
|
/*
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Div
|
|
2
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
3
|
+
import { Heading, Text } from "../../../ui/components/Typography.js";
|
|
4
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
3
5
|
import { Icon } from "../../../ui/components/Icon.js";
|
|
4
6
|
import { Progress } from "../../../ui/components/Progress.js";
|
|
5
7
|
import { SELLER_TIER, formatSellerStandingValue, sellerStandingRows, } from "../../../_internal/shared/features/seller-standing/config.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Badge
|
|
2
|
+
import { Badge } from "../../../ui/components/Badge.js";
|
|
3
|
+
import { Row } from "../../../ui/components/Layout.js";
|
|
3
4
|
import { Icon } from "../../../ui/components/Icon.js";
|
|
4
5
|
import { SELLER_TIER } from "../../../_internal/shared/features/seller-standing/config.js";
|
|
5
6
|
/**
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Row } from "@mohasinac/appkit/ui";
|
|
3
|
-
import { Anchor
|
|
3
|
+
import { Anchor } from "../../../ui/components/Anchor.js";
|
|
4
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
5
|
+
import { Heading, Text } from "../../../ui/components/Typography.js";
|
|
6
|
+
import { RichText } from "../../../ui/rich-text/RichText.js";
|
|
7
|
+
import { Stack } from "../../../ui/components/Layout.js";
|
|
4
8
|
const CLS_LABEL = "font-medium text-neutral-700 min-w-[120px]";
|
|
5
9
|
const CLS_WARN_BOX = "bg-warning-surface border border-warning rounded-lg p-[var(--appkit-space-4)]";
|
|
6
10
|
const CLS_WARN_TITLE = "text-warning font-medium";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Div
|
|
3
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
4
|
+
import { Label } from "../../../ui/components/Typography.js";
|
|
4
5
|
import { AddressInlineSelect } from "../../account/components/AddressInlineSelect.js";
|
|
5
6
|
const DEFAULT_LABELS = {
|
|
6
7
|
addAddress: "Add Address",
|
|
@@ -4,7 +4,14 @@ import { useState, useCallback } from "react";
|
|
|
4
4
|
import { useUrlTable } from "../../../react/hooks/useUrlTable.js";
|
|
5
5
|
import { usePendingTable } from "../../../react/hooks/usePendingTable.js";
|
|
6
6
|
import { useProducts } from "../../products/hooks/useProducts.js";
|
|
7
|
-
import { Div
|
|
7
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
8
|
+
import { FilterDrawer } from "../../../ui/components/FilterDrawer.js";
|
|
9
|
+
import { Grid, Row, Stack } from "../../../ui/components/Layout.js";
|
|
10
|
+
import { ListingToolbar } from "../../../ui/components/ListingToolbar.js";
|
|
11
|
+
import { LoginRequiredModal } from "../../../ui/components/LoginRequiredModal.js";
|
|
12
|
+
import { Pagination } from "../../../ui/components/Pagination.js";
|
|
13
|
+
import { useToast } from "../../../ui/components/toast-context.js";
|
|
14
|
+
import { StickyToolbar } from "../../../ui/components/StickyToolbar.js";
|
|
8
15
|
import { useAuthGate } from "../../../react/hooks/useAuthGate.js";
|
|
9
16
|
import { ACTION_ID } from "../../products/constants/action-defs.js";
|
|
10
17
|
import { MarketplaceAuctionGrid } from "../../auctions/components/MarketplaceAuctionGrid.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { SlottedListingViewProps } from "../../../ui";
|
|
2
|
+
import type { SlottedListingViewProps } from "../../../ui/components/SlottedListingView";
|
|
3
3
|
import type { StoreAuctionItem } from "../types";
|
|
4
4
|
export interface StoreAuctionsViewProps extends Omit<SlottedListingViewProps, "renderTable"> {
|
|
5
5
|
storeSlug: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { SlottedListingView } from "../../../ui/
|
|
2
|
+
import { SlottedListingView } from "../../../ui/components/SlottedListingView.js";
|
|
3
3
|
export function StoreAuctionsView({ labels = {}, renderAuctions, renderPagination, items = [], total = 0, isLoading = false, ...rest }) {
|
|
4
4
|
return (_jsx(SlottedListingView, { portal: "public", ...rest, title: labels.title, className: `py-[var(--appkit-space-4)] ${rest.className ?? ""}`, renderTable: () => renderAuctions(items, isLoading), renderPagination: () => renderPagination?.(total) ?? null, total: total, isLoading: isLoading }));
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { categoriesRepository } from "
|
|
2
|
+
import { categoriesRepository } from "../../categories/repository/categories.repository.js";
|
|
3
3
|
import { getStoreBySlug } from "./StoreDetailLayoutView.js";
|
|
4
4
|
import { CategoryBundlesListing } from "../../categories/components/CategoryBundlesListing.js";
|
|
5
5
|
import { safeRead } from "../../../errors/safe-read.js";
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ArrowLeft } from "lucide-react";
|
|
3
|
-
import { Alert
|
|
3
|
+
import { Alert } from "../../../ui/components/Alert.js";
|
|
4
|
+
import { Code, Li, Section, Table, Tbody, Td, Th, Thead, Tr, Ul } from "../../../ui/components/Semantic.js";
|
|
5
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
6
|
+
import { Heading, Span, Text } from "../../../ui/components/Typography.js";
|
|
7
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
8
|
+
import { TextLink } from "../../../ui/components/TextLink.js";
|
|
4
9
|
import { ROUTES } from "../../../next/routing/route-map.js";
|
|
5
10
|
import { SellerStandingPanel } from "./SellerStandingPanel.js";
|
|
6
11
|
const SUBHEADING = "mb-1 font-semibold text-[var(--appkit-color-text)]";
|
|
@@ -4,7 +4,13 @@ import { useState, useCallback } from "react";
|
|
|
4
4
|
import { useUrlTable } from "../../../react/hooks/useUrlTable.js";
|
|
5
5
|
import { usePendingTable } from "../../../react/hooks/usePendingTable.js";
|
|
6
6
|
import { useProducts } from "../../products/hooks/useProducts.js";
|
|
7
|
-
import { Div
|
|
7
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
8
|
+
import { FilterDrawer } from "../../../ui/components/FilterDrawer.js";
|
|
9
|
+
import { Grid, Row } from "../../../ui/components/Layout.js";
|
|
10
|
+
import { ListingToolbar } from "../../../ui/components/ListingToolbar.js";
|
|
11
|
+
import { Pagination } from "../../../ui/components/Pagination.js";
|
|
12
|
+
import { Text } from "../../../ui/components/Typography.js";
|
|
13
|
+
import { StickyToolbar } from "../../../ui/components/StickyToolbar.js";
|
|
8
14
|
import { ClassifiedFilters } from "../../classified/components/ClassifiedFilters.js";
|
|
9
15
|
import { InteractiveProductCard } from "../../products/components/InteractiveProductCard.js";
|
|
10
16
|
import { PRODUCT_FIELDS } from "../../../constants/field-names.js";
|