@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
|
@@ -3,7 +3,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
3
3
|
import React, { useCallback, useState } from "react";
|
|
4
4
|
import { useQuery } from "@tanstack/react-query";
|
|
5
5
|
import { Search, TrendingUp } from "lucide-react";
|
|
6
|
-
import { Container,
|
|
6
|
+
import { Container, Row, Stack } from "../../../ui/components/Layout.js";
|
|
7
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
8
|
+
import { Heading, Span, Text } from "../../../ui/components/Typography.js";
|
|
9
|
+
import { Section } from "../../../ui/components/Semantic.js";
|
|
7
10
|
import { Badge } from "../../../ui/components/Badge.js";
|
|
8
11
|
import { Button } from "../../../ui/components/Button.js";
|
|
9
12
|
import { Form } from "../../../ui/components/Form.js";
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
4
|
-
import { Badge
|
|
4
|
+
import { Badge } from "../../../ui/components/Badge.js";
|
|
5
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
6
|
+
import { Heading, Text } from "../../../ui/components/Typography.js";
|
|
7
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
5
8
|
import { Modal } from "../../../ui/components/Modal.js";
|
|
6
9
|
import { useToast } from "../../../ui/components/Toast.js";
|
|
7
10
|
import { Form } from "../../../ui/components/Form.js";
|
|
@@ -17,7 +17,11 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
17
17
|
* trust it over the screen; printing "8 items as of 21 Oct" says what it is.
|
|
18
18
|
*/
|
|
19
19
|
import { useMemo, useState } from "react";
|
|
20
|
-
import { Alert
|
|
20
|
+
import { Alert } from "../../../ui/components/Alert.js";
|
|
21
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
22
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
23
|
+
import { Heading, Text } from "../../../ui/components/Typography.js";
|
|
24
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
21
25
|
import { FieldCheckbox } from "../../../ui/forms/FieldCheckbox.js";
|
|
22
26
|
import { BoxContentsSheet, BoxLabel, LabelPageStyle, LabelSheet, PrintScaleWarning, } from "./labels.js";
|
|
23
27
|
import { LabelProfilePicker } from "./LabelProfilePicker.js";
|
|
@@ -21,7 +21,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
21
21
|
* choice. No audit enforces the threshold, so this is a judgement call and not
|
|
22
22
|
* a build failure — one line to reverse if the call is wrong.
|
|
23
23
|
*/
|
|
24
|
-
import { Alert
|
|
24
|
+
import { Alert } from "../../../ui/components/Alert.js";
|
|
25
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
26
|
+
import { Text } from "../../../ui/components/Typography.js";
|
|
25
27
|
import { FieldSelect } from "../../../ui/forms/index.js";
|
|
26
28
|
import { LABEL_PROFILES, LABEL_PROFILE_IDS, MIN_SCANNABLE_MODULE_MM, labelFitsProfile, } from "../../../_internal/shared/features/print/label-profiles.js";
|
|
27
29
|
export function LabelProfilePicker({ value, onChange, longestCodeLength, label = "Label stock", }) {
|
|
@@ -37,7 +37,9 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
37
37
|
*/
|
|
38
38
|
import { useEffect, useMemo, useRef } from "react";
|
|
39
39
|
import JsBarcode from "jsbarcode";
|
|
40
|
-
import { Div
|
|
40
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
41
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
42
|
+
import { Text } from "../../../ui/components/Typography.js";
|
|
41
43
|
import { normalizeError } from "../../../errors/normalize.js";
|
|
42
44
|
import { MM_PER_INCH, SAFE_MODULE_MM, labelFitsProfile, sheetPositionMm, } from "../../../_internal/shared/features/print/label-profiles.js";
|
|
43
45
|
/** CSS px per inch is 96 by definition — not a screen measurement. */
|
|
@@ -22,6 +22,7 @@ import { printMetaSchema } from "../schemas/index.js";
|
|
|
22
22
|
import { sanitizeProductsForPublic } from "../utils/sanitize.js";
|
|
23
23
|
import { listPublicProducts, parsePublicProductParams, } from "../../../_internal/server/features/products/list-public.js";
|
|
24
24
|
import { normalizeError } from "../../../errors/normalize.js";
|
|
25
|
+
import { param } from "../../../utils/search-params.js";
|
|
25
26
|
// --- Mutation schemas ---------------------------------------------------------
|
|
26
27
|
// Minimal schemas for secured mutations — consumer apps can extend as needed.
|
|
27
28
|
const productMutateSchema = z
|
|
@@ -72,9 +73,6 @@ const productMutateSchema = z
|
|
|
72
73
|
})
|
|
73
74
|
.passthrough();
|
|
74
75
|
// --- Helpers ------------------------------------------------------------------
|
|
75
|
-
function param(url, key) {
|
|
76
|
-
return url.searchParams.get(key);
|
|
77
|
-
}
|
|
78
76
|
// --- GET /api/products --------------------------------------------------------
|
|
79
77
|
/**
|
|
80
78
|
* Delegates to `listPublicProducts` — the single implementation shared with
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button
|
|
2
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
3
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
4
|
+
import { GatedPrice } from "../../../ui/components/GatedPrice.js";
|
|
5
|
+
import { Row } from "../../../ui/components/Layout.js";
|
|
6
|
+
import { Span } from "../../../ui/components/Typography.js";
|
|
3
7
|
import { MediaImage } from "../../media/MediaImage.js";
|
|
4
8
|
import { statusLabel } from "../../../ui/columns/cell-renderers.js";
|
|
5
9
|
import { formatCurrency as defaultFormatCurrency } from "../../../utils/number.formatter.js";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Container
|
|
2
|
+
import { Container } from "../../../ui/components/Layout.js";
|
|
3
|
+
import { Heading, Text } from "../../../ui/components/Typography.js";
|
|
4
|
+
import { Main, Section } from "../../../ui/components/Semantic.js";
|
|
3
5
|
import { AdSlot } from "../../homepage/components/AdSlot.js";
|
|
4
6
|
import { ProductsIndexListing } from "./ProductsIndexListing.js";
|
|
5
7
|
import { PRODUCT_FIELDS } from "../../../constants/field-names.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { DetailViewShellProps } from "../../../ui";
|
|
2
|
+
import type { DetailViewShellProps } from "../../../ui/components/DetailViewShell";
|
|
3
3
|
export interface AuctionDetailViewProps extends Omit<DetailViewShellProps, "mainSlots" | "belowFold" | "layout" | "afterMain"> {
|
|
4
4
|
renderGallery?: (isLoading: boolean) => React.ReactNode;
|
|
5
5
|
renderInfo?: (isLoading: boolean) => React.ReactNode;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { DetailViewShell
|
|
2
|
+
import { DetailViewShell } from "../../../ui/components/DetailViewShell.js";
|
|
3
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
3
4
|
export function AuctionDetailView({ renderGallery, renderInfo, renderBidForm, renderMobileBidForm, renderSublistingSection, renderTabs, renderBidHistory, renderRelated, isLoading = false, ...rest }) {
|
|
4
5
|
const mobileBid = renderMobileBidForm?.();
|
|
5
6
|
const sublistingSection = renderSublistingSection?.();
|
|
@@ -5,7 +5,15 @@ import { useCanSeePrices } from "../../../react/hooks/useCanSeePrices.js";
|
|
|
5
5
|
import { useState, useCallback } from "react";
|
|
6
6
|
import { useUrlTable } from "../../../react/hooks/useUrlTable.js";
|
|
7
7
|
import { useProducts } from "../hooks/useProducts.js";
|
|
8
|
-
import { BulkActionBar
|
|
8
|
+
import { BulkActionBar } from "../../../ui/components/BulkActionBar.js";
|
|
9
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
10
|
+
import { FilterDrawer } from "../../../ui/components/FilterDrawer.js";
|
|
11
|
+
import { Grid, Row, Stack } from "../../../ui/components/Layout.js";
|
|
12
|
+
import { ListingToolbar } from "../../../ui/components/ListingToolbar.js";
|
|
13
|
+
import { LoginRequiredModal } from "../../../ui/components/LoginRequiredModal.js";
|
|
14
|
+
import { Pagination } from "../../../ui/components/Pagination.js";
|
|
15
|
+
import { useToast } from "../../../ui/components/toast-context.js";
|
|
16
|
+
import { StickyToolbar } from "../../../ui/components/StickyToolbar.js";
|
|
9
17
|
import { usePendingTable } from "../../../react/hooks/usePendingTable.js";
|
|
10
18
|
import { useBulkSelection } from "../../../react/hooks/useBulkSelection.js";
|
|
11
19
|
import { MarketplaceAuctionGrid } from "../../auctions/components/MarketplaceAuctionGrid.js";
|
|
@@ -18,7 +26,7 @@ import { TABLE_KEYS, VIEW_MODE } from "../../../constants/table-keys.js";
|
|
|
18
26
|
import { useAuthGate } from "../../../react/hooks/useAuthGate.js";
|
|
19
27
|
import { ACTION_ID } from "../constants/action-defs.js";
|
|
20
28
|
import { AUCTION_PUBLIC_SORT_OPTIONS } from "../constants/sieve.js";
|
|
21
|
-
import { useBottomActions } from "../../layout/
|
|
29
|
+
import { useBottomActions } from "../../layout/hooks/useBottomActions.js";
|
|
22
30
|
import { AVAILABILITY_VALUES } from "../../../constants/field-names.js";
|
|
23
31
|
import { AvailabilityTabs } from "./AvailabilityTabs.js";
|
|
24
32
|
const __P = {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Button
|
|
3
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
4
|
+
import { Row } from "../../../ui/components/Layout.js";
|
|
5
|
+
import { Text } from "../../../ui/components/Typography.js";
|
|
4
6
|
import { useUrlTable } from "../../../react/hooks/useUrlTable.js";
|
|
5
7
|
import { AVAILABILITY_VALUES } from "../../../constants/field-names.js";
|
|
6
8
|
import { TABLE_KEYS } from "../../../constants/table-keys.js";
|
|
@@ -25,7 +25,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
25
25
|
* @tag sideEffects:url-mutation
|
|
26
26
|
*/
|
|
27
27
|
import { useMemo } from "react";
|
|
28
|
-
import { Tabs, TabsList, TabsTrigger } from "../../../ui/
|
|
28
|
+
import { Tabs, TabsList, TabsTrigger } from "../../../ui/components/Tabs.js";
|
|
29
29
|
import { useUrlTable } from "../../../react/hooks/useUrlTable.js";
|
|
30
30
|
import { TABLE_KEYS } from "../../../constants/table-keys.js";
|
|
31
31
|
import { AVAILABILITY_VALUES } from "../../../constants/field-names.js";
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { normalizeError } from "../../../errors/normalize.js";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { Div
|
|
4
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
5
|
+
import { GatedPrice } from "../../../ui/components/GatedPrice.js";
|
|
6
|
+
import { Heading, Span, Text } from "../../../ui/components/Typography.js";
|
|
7
|
+
import { Stack } from "../../../ui/components/Layout.js";
|
|
5
8
|
import { formatCurrency } from "../../../utils/number.formatter.js";
|
|
6
9
|
function formatBidDate(raw) {
|
|
7
10
|
if (!raw)
|
|
@@ -4,7 +4,12 @@ import { PAGE_CONTAINER } from "../../../_internal/shared/styles/page.js";
|
|
|
4
4
|
import { THEMED_BG_PRIMARY } from "../../../_internal/shared/styles/themed.js";
|
|
5
5
|
import { TABLE_KEYS } from "../../../constants/table-keys.js";
|
|
6
6
|
import { safeRead } from "../../../errors/safe-read.js";
|
|
7
|
-
import { Alert
|
|
7
|
+
import { Alert } from "../../../ui/components/Alert.js";
|
|
8
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
9
|
+
import { Grid, Row, Stack } from "../../../ui/components/Layout.js";
|
|
10
|
+
import { Heading, Text } from "../../../ui/components/Typography.js";
|
|
11
|
+
import { Section } from "../../../ui/components/Semantic.js";
|
|
12
|
+
import { TextLink } from "../../../ui/components/TextLink.js";
|
|
8
13
|
import { listPublicProducts } from "../../../_internal/server/features/products/list-public.js";
|
|
9
14
|
import { hidePublicTestData } from "../../../_internal/server/features/tester/visibility.js";
|
|
10
15
|
import { MEETUP_CITIES } from "../constants/meetup-cities.js";
|
|
@@ -12,7 +12,12 @@ const REL_NOOPENER = "noopener noreferrer";
|
|
|
12
12
|
const CLS_REMOVE_BTN = "shrink-0 text-zinc-400 hover:text-error hover:bg-surface-hover";
|
|
13
13
|
import Link from "next/link.js";
|
|
14
14
|
import { X } from "lucide-react";
|
|
15
|
-
import { Button
|
|
15
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
16
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
17
|
+
import { GatedPrice } from "../../../ui/components/GatedPrice.js";
|
|
18
|
+
import { Heading, Span, Text } from "../../../ui/components/Typography.js";
|
|
19
|
+
import { IconButton } from "../../../ui/components/IconButton.js";
|
|
20
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
16
21
|
import { MediaImage } from "../../media/MediaImage.js";
|
|
17
22
|
import { useSwipe } from "../../../react/hooks/useSwipe.js";
|
|
18
23
|
import { formatCurrency } from "../../../utils/number.formatter.js";
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Button
|
|
3
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
4
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
5
|
+
import { Input } from "../../../ui/components/Input.js";
|
|
6
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
7
|
+
import { Select } from "../../../ui/components/Select.js";
|
|
8
|
+
import { Text } from "../../../ui/components/Typography.js";
|
|
4
9
|
import { MAX_CUSTOM_FIELDS } from "../schemas/firestore.js";
|
|
5
10
|
const CLS_REMOVE = "text-zinc-400 hover:text-error dark:hover:text-error px-[var(--appkit-space-2)]";
|
|
6
11
|
const TYPE_OPTIONS = [
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { RichText
|
|
2
|
+
import { RichText } from "../../../ui/rich-text/RichText.js";
|
|
3
|
+
import { SpecTable } from "../../../ui/components/SpecTable.js";
|
|
4
|
+
import { Stack } from "../../../ui/components/Layout.js";
|
|
5
|
+
import { Text } from "../../../ui/components/Typography.js";
|
|
3
6
|
import { normalizeRichTextHtml } from "../../../utils/string.formatter.js";
|
|
4
|
-
function renderFieldValue(f) {
|
|
5
|
-
if (f.type === "boolean")
|
|
6
|
-
return f.value === "true" ? "Yes" : "No";
|
|
7
|
-
return f.value + (f.unit ? ` ${f.unit}` : "");
|
|
8
|
-
}
|
|
9
7
|
/**
|
|
10
8
|
* `customSections` → `ProductTabsShell`'s `customTabs` prop, in one place.
|
|
11
9
|
*
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useId } from "react";
|
|
4
|
-
import { Button
|
|
4
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
5
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
6
|
+
import { Heading, Span, Text } from "../../../ui/components/Typography.js";
|
|
7
|
+
import { Input } from "../../../ui/components/Input.js";
|
|
8
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
9
|
+
import { Textarea } from "../../../ui/components/Textarea.js";
|
|
5
10
|
import { MAX_CUSTOM_SECTIONS } from "../schemas/firestore.js";
|
|
6
11
|
import { CustomFieldsEditor } from "./CustomFieldsEditor.js";
|
|
7
12
|
const CLS_REMOVE = "text-zinc-400 hover:text-error dark:hover:text-error text-[length:var(--appkit-text-xs)]";
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useRef } from "react";
|
|
4
4
|
import { BadgeCheck, CalendarCheck, Megaphone, Package, PackageCheck, RefreshCcw, Sparkles, Star, Tag, Trophy, Truck, } from "lucide-react";
|
|
5
|
-
import { Row
|
|
5
|
+
import { Row } from "../../../ui/components/Layout.js";
|
|
6
|
+
import { Span } from "../../../ui/components/Typography.js";
|
|
6
7
|
import { isFeatureIconPath, } from "../schemas/product-features.js";
|
|
7
8
|
/**
|
|
8
9
|
* Stable map of icon-set keys → React components.
|
|
@@ -18,7 +18,14 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
18
18
|
* consumer pages untouched.
|
|
19
19
|
*/
|
|
20
20
|
import { useMemo, useState } from "react";
|
|
21
|
-
import { Alert
|
|
21
|
+
import { Alert } from "../../../ui/components/Alert.js";
|
|
22
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
23
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
24
|
+
import { GatedPrice, PricesOnly } from "../../../ui/components/GatedPrice.js";
|
|
25
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
26
|
+
import { Span, Text } from "../../../ui/components/Typography.js";
|
|
27
|
+
import { Table, Tbody, Td, Th, Thead, Tr } from "../../../ui/components/Semantic.js";
|
|
28
|
+
import { TextLink } from "../../../ui/components/TextLink.js";
|
|
22
29
|
import { QuantityStepper } from "../../../ui/components/QuantityStepper.js";
|
|
23
30
|
import { MediaImage } from "../../media/MediaImage.js";
|
|
24
31
|
import { formatCurrency } from "../../../utils/number.formatter.js";
|
|
@@ -140,7 +147,7 @@ export function GroupMemberPicker({ groupId, groupSource, members, rules = EMPTY
|
|
|
140
147
|
* A made-to-order member has no ceiling; the line's
|
|
141
148
|
* own 99-per-line cap still applies at the cart.
|
|
142
149
|
*/
|
|
143
|
-
max: m.madeToOrder === true ? undefined : m.availableQuantity, ariaLabel: `Quantity for ${m.title}`, decrementLabel: ACTIONS.CART["decrease-quantity"].ariaLabel, incrementLabel: ACTIONS.CART["increase-quantity"].ariaLabel })) })), _jsx(Td, { padding: "xs-tall", children: _jsx(
|
|
150
|
+
max: m.madeToOrder === true ? undefined : m.availableQuantity, ariaLabel: `Quantity for ${m.title}`, decrementLabel: ACTIONS.CART["decrease-quantity"].ariaLabel, incrementLabel: ACTIONS.CART["increase-quantity"].ariaLabel })) })), _jsx(Td, { padding: "xs-tall", children: _jsx(TextLink, { href: memberHref(m), size: "xs", className: "text-[var(--appkit-color-primary)] hover:underline", children: "View \u2192" }) })] }, m.id));
|
|
144
151
|
}) })] }) }), !isCrossStore && (_jsxs(_Fragment, { children: [ruleNotes.length > 0 && (_jsx(Text, { size: "xs", color: "muted", children: ruleNotes.join(" · ") })), error && _jsx(Alert, { variant: "error", children: error }), selectedUnits > 0 && violations.length > 0 && (_jsx(Alert, { variant: "warning", children: _jsx(Stack, { gap: "dense", children: violations.map((v) => (_jsx(Text, { size: "sm", children: v.message }, v.code + v.message))) }) })), _jsxs(Row, { justify: "between", align: "center", gap: "sm", className: "min-w-0", children: [_jsxs(Text, { size: "sm", color: "muted", children: [selectedUnits > 0
|
|
145
152
|
? `${selectedUnits} item${selectedUnits === 1 ? "" : "s"}`
|
|
146
153
|
: "Nothing selected yet", selectedUnits > 0 && (_jsx(PricesOnly, { children: discountPercent > 0
|
|
@@ -3,7 +3,18 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { normalizeError } from "../../../errors/normalize.js";
|
|
4
4
|
import React, { useEffect, useState } from "react";
|
|
5
5
|
import { z } from "zod";
|
|
6
|
-
import { Button
|
|
6
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
7
|
+
import { Checkbox } from "../../../ui/components/Checkbox.js";
|
|
8
|
+
import { Code } from "../../../ui/components/Semantic.js";
|
|
9
|
+
import { ConfirmDeleteModal } from "../../../ui/components/ConfirmDeleteModal.js";
|
|
10
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
11
|
+
import { Grid, Row, Stack } from "../../../ui/components/Layout.js";
|
|
12
|
+
import { Heading, Span, Text } from "../../../ui/components/Typography.js";
|
|
13
|
+
import { Input } from "../../../ui/components/Input.js";
|
|
14
|
+
import { Modal } from "../../../ui/components/Modal.js";
|
|
15
|
+
import { SideDrawer } from "../../../ui/components/SideDrawer.js";
|
|
16
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "../../../ui/components/Tabs.js";
|
|
17
|
+
import { useToast } from "../../../ui/components/toast-context.js";
|
|
7
18
|
import { FormShellContext, useFormShellState, FormErrorSummary } from "../../../ui/forms/index.js";
|
|
8
19
|
import { FieldInput } from "../../../ui/forms/FieldInput.js";
|
|
9
20
|
import { MediaImage } from "../../media/MediaImage.js";
|
|
@@ -359,7 +370,7 @@ export function GroupSettingsPanel({ productId, productSlug, groupId, isGroupPar
|
|
|
359
370
|
return (groupChildSlugs?.length ?? 0) >= 4 ? (_jsx(SideDrawer, { isOpen: showAddModal, onClose: close, title: "Add child listing", children: content })) : (_jsx(Modal, { open: showAddModal, onClose: close, title: "Add child listing", size: "lg", children: content }));
|
|
360
371
|
})(), confirmAction && (_jsx(ConfirmDeleteModal, { isOpen: true, title: confirmAction.title, message: confirmAction.message, onConfirm: confirmAction.onConfirm, onClose: () => setConfirmAction(null), isDeleting: loading }))] }));
|
|
361
372
|
}
|
|
362
|
-
function AddChildContent({ addTab, setAddTab, createForm, setCreateForm,
|
|
373
|
+
function AddChildContent({ addTab, setAddTab, createForm, setCreateForm, storeProductsEndpoint, linkTargets, setLinkTargets, onAddCreate, onAddLink, loading, }) {
|
|
363
374
|
const sections = React.useMemo(() => buildSectionsFromSchema(createChildSchema, {
|
|
364
375
|
options: { condition: CONDITION_OPTIONS },
|
|
365
376
|
}), []);
|
|
@@ -3,7 +3,12 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
3
3
|
import { useState, useTransition } from "react";
|
|
4
4
|
import { useCanSeePrices } from "../../../react/hooks/useCanSeePrices.js";
|
|
5
5
|
import { useOptionalSession } from "../../../react/contexts/SessionContext.js";
|
|
6
|
-
import { Button
|
|
6
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
7
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
8
|
+
import { LoginRequiredModal } from "../../../ui/components/LoginRequiredModal.js";
|
|
9
|
+
import { Modal } from "../../../ui/components/Modal.js";
|
|
10
|
+
import { Span, Text } from "../../../ui/components/Typography.js";
|
|
11
|
+
import { Stack } from "../../../ui/components/Layout.js";
|
|
7
12
|
import { Form } from "../../../ui/components/Form.js";
|
|
8
13
|
import { FieldInput } from "../../../ui/forms/FieldInput.js";
|
|
9
14
|
import { FormErrorSummary } from "../../../ui/forms/FormErrorSummary.js";
|
|
@@ -10,7 +10,12 @@ const CLS_BUNDLE_PILL = "inline-flex items-center rounded-full bg-violet-600 px-
|
|
|
10
10
|
const CLS_STOCK_OK = "bg-success-solid text-success-on-solid";
|
|
11
11
|
// audit-content-alignment-ok: button label text, not page content — buttons are universally center-labeled
|
|
12
12
|
const CLS_VIEW_BTN = "mt-2 w-full cursor-pointer rounded-md bg-violet-600 py-[var(--appkit-space-1-5)] text-center text-[length:var(--appkit-text-xs)] font-semibold text-white transition-colors hover:bg-violet-700 active:scale-[0.98]";
|
|
13
|
-
import { BaseListingCard
|
|
13
|
+
import { BaseListingCard } from "../../../ui/components/BaseListingCard.js";
|
|
14
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
15
|
+
import { GatedPrice, PricesOnly } from "../../../ui/components/GatedPrice.js";
|
|
16
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
17
|
+
import { Span, Text } from "../../../ui/components/Typography.js";
|
|
18
|
+
import { TextLink } from "../../../ui/components/TextLink.js";
|
|
14
19
|
import { MediaImage } from "../../media/MediaImage.js";
|
|
15
20
|
import { computeBundleDiscount } from "../../../_internal/shared/features/categories/bundle-pricing.js";
|
|
16
21
|
import { BUNDLE_COPY } from "../../../_internal/shared/features/categories/bundle-copy.js";
|
|
@@ -8,7 +8,13 @@ import { ACTIONS } from "../../../_internal/shared/actions/action-registry.js";
|
|
|
8
8
|
import { formatCurrency } from "../../../utils/index.js";
|
|
9
9
|
import { getDefaultCurrency } from "../../../core/baseline-resolver.js";
|
|
10
10
|
const CLS_PRIZE_PILL = "inline-flex items-center rounded-full bg-fuchsia-600 px-[var(--appkit-space-2)] py-[var(--appkit-space-0-5)] text-white";
|
|
11
|
-
import { BaseListingCard
|
|
11
|
+
import { BaseListingCard } from "../../../ui/components/BaseListingCard.js";
|
|
12
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
13
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
14
|
+
import { GatedPrice } from "../../../ui/components/GatedPrice.js";
|
|
15
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
16
|
+
import { Span, Text } from "../../../ui/components/Typography.js";
|
|
17
|
+
import { TextLink } from "../../../ui/components/TextLink.js";
|
|
12
18
|
import { MediaImage } from "../../media/MediaImage.js";
|
|
13
19
|
import { CardStoreLine } from "./CardStoreLine.js";
|
|
14
20
|
import { RecordOwnerQuickActions } from "../../admin/components/RecordOwnerQuickActions.js";
|
|
@@ -13,7 +13,12 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
13
13
|
* agreed to in S5-doc.
|
|
14
14
|
*/
|
|
15
15
|
import { useEffect, useId, useState } from "react";
|
|
16
|
-
import { Button
|
|
16
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
17
|
+
import { Checkbox } from "../../../ui/components/Checkbox.js";
|
|
18
|
+
import { Li, Ul } from "../../../ui/components/Semantic.js";
|
|
19
|
+
import { Modal } from "../../../ui/components/Modal.js";
|
|
20
|
+
import { Stack } from "../../../ui/components/Layout.js";
|
|
21
|
+
import { Text } from "../../../ui/components/Typography.js";
|
|
17
22
|
const COPY = {
|
|
18
23
|
"prize-draw": {
|
|
19
24
|
heading: "Entry fee is non-refundable",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { DetailViewShellProps } from "../../../ui";
|
|
2
|
+
import type { DetailViewShellProps } from "../../../ui/components/DetailViewShell";
|
|
3
3
|
/**
|
|
4
4
|
* PreOrderDetailView — shell for pre-order product detail pages.
|
|
5
5
|
* Uses grid-2 layout (gallery | info+buyBar).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { DetailViewShell } from "../../../ui/
|
|
3
|
+
import { DetailViewShell } from "../../../ui/components/DetailViewShell.js";
|
|
4
4
|
export function PreOrderDetailView({ renderGallery, renderInfo, renderBuyBar, renderSublistingSection, renderGroupSection, renderTabs, renderRelated, isLoading = false, ...rest }) {
|
|
5
5
|
const sublistingNode = renderSublistingSection?.();
|
|
6
6
|
const groupNode = renderGroupSection?.();
|
|
@@ -16,7 +16,12 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
16
16
|
*/
|
|
17
17
|
import { Row } from "@mohasinac/appkit/client";
|
|
18
18
|
import { useState } from "react";
|
|
19
|
-
import { Button
|
|
19
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
20
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
21
|
+
import { Grid } from "../../../ui/components/Layout.js";
|
|
22
|
+
import { PricesOnly } from "../../../ui/components/GatedPrice.js";
|
|
23
|
+
import { Scrim } from "../../../ui/components/Scrim.js";
|
|
24
|
+
import { Text } from "../../../ui/components/Typography.js";
|
|
20
25
|
import { useCanSeePrices } from "../../../react/hooks/useCanSeePrices.js";
|
|
21
26
|
import { MediaImage } from "../../media/MediaImage.js";
|
|
22
27
|
import { ImageLightbox } from "../../../ui/components/ImageLightbox.js";
|
|
@@ -9,9 +9,14 @@ const __P = {
|
|
|
9
9
|
const CLS_PRIZE_BADGE = "inline-block rounded-full bg-fuchsia-100 dark:bg-fuchsia-900/30 px-[var(--appkit-space-2-5)] py-[var(--appkit-space-0-5)] text-fuchsia-700 dark:text-fuchsia-300";
|
|
10
10
|
import { ROUTES } from "../../../next/routing/route-map.js";
|
|
11
11
|
import { getDefaultCurrency } from "../../../core/baseline-resolver.js";
|
|
12
|
-
import {
|
|
12
|
+
import { toDescriptionHtml } from "../../../utils/string.formatter.js";
|
|
13
13
|
import { safeDisplayName } from "../../../security/index.js";
|
|
14
|
-
import { Container,
|
|
14
|
+
import { Container, Row, Stack } from "../../../ui/components/Layout.js";
|
|
15
|
+
import { Disclaimer } from "../../../ui/components/Disclaimer.js";
|
|
16
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
17
|
+
import { Heading, Span, Text } from "../../../ui/components/Typography.js";
|
|
18
|
+
import { Main, Section } from "../../../ui/components/Semantic.js";
|
|
19
|
+
import { RichText } from "../../../ui/rich-text/RichText.js";
|
|
15
20
|
import { PreOrderDetailView } from "./PreOrderDetailView.js";
|
|
16
21
|
import { PrizeDrawBottomActions } from "./PrizeDrawBottomActions.js";
|
|
17
22
|
import { ProductTabsShell } from "./ProductTabsShell.js";
|
|
@@ -24,12 +29,6 @@ import { computeRelatedItems } from "../../../_internal/server/features/products
|
|
|
24
29
|
import { GroupedListingsCarousel } from "../../grouped/components/GroupedListingsCarousel.js";
|
|
25
30
|
import { getGroupsWithItemsForProduct } from "../../../_internal/server/features/grouped/data.js";
|
|
26
31
|
import { PurchaseReviewAffordance } from "../../reviews/components/PurchaseReviewAffordance.js";
|
|
27
|
-
function toDescriptionHtml(raw) {
|
|
28
|
-
if (!raw)
|
|
29
|
-
return "";
|
|
30
|
-
const s = typeof raw === "string" ? raw : JSON.stringify(raw);
|
|
31
|
-
return normalizeRichTextHtml(s);
|
|
32
|
-
}
|
|
33
32
|
function statusLabel(s) {
|
|
34
33
|
switch (s) {
|
|
35
34
|
case "open":
|
|
@@ -29,4 +29,4 @@ export interface PrizeDrawEntryActionsProps {
|
|
|
29
29
|
* the rule's preflight already checks `prizeMaxEntries`. The whole server half
|
|
30
30
|
* was written and unreachable because the client never sent a quantity.
|
|
31
31
|
*/
|
|
32
|
-
export declare function PrizeDrawEntryActions({ productId,
|
|
32
|
+
export declare function PrizeDrawEntryActions({ productId, title, pricePerEntry, currency, remainingEntries, revealStatus, prizeGithubFileUrl, }: PrizeDrawEntryActionsProps): import("react").JSX.Element;
|
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useMemo, useState } from "react";
|
|
4
4
|
import { useRouter } from "next/navigation.js";
|
|
5
|
-
import { Anchor
|
|
5
|
+
import { Anchor } from "../../../ui/components/Anchor.js";
|
|
6
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
7
|
+
import { GatedPrice } from "../../../ui/components/GatedPrice.js";
|
|
8
|
+
import { QuantityStepper } from "../../../ui/components/QuantityStepper.js";
|
|
9
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
10
|
+
import { Text } from "../../../ui/components/Typography.js";
|
|
11
|
+
import { LoginRequiredModal } from "../../../ui/components/LoginRequiredModal.js";
|
|
6
12
|
import { useAddToCart } from "../../cart/hooks/useAddToCart.js";
|
|
7
13
|
import { useToast } from "../../../ui/components/Toast.js";
|
|
8
14
|
import { normalizeError } from "../../../errors/normalize.js";
|
|
@@ -34,7 +40,7 @@ import { toUserMessage } from "../../../errors/error-display-map.js";
|
|
|
34
40
|
* the rule's preflight already checks `prizeMaxEntries`. The whole server half
|
|
35
41
|
* was written and unreachable because the client never sent a quantity.
|
|
36
42
|
*/
|
|
37
|
-
export function PrizeDrawEntryActions({ productId,
|
|
43
|
+
export function PrizeDrawEntryActions({ productId, title, pricePerEntry, currency, remainingEntries, revealStatus, prizeGithubFileUrl, }) {
|
|
38
44
|
const router = useRouter();
|
|
39
45
|
const { requireAuth, isAuthResolving, modalOpen, modalMessage, closeModal } = useAuthGate();
|
|
40
46
|
const [consentOpen, setConsentOpen] = useState(false);
|
|
@@ -9,7 +9,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
* of a small bounded DataTable (≤16 rows per draw) rather than a paginated
|
|
10
10
|
* DataListingView.
|
|
11
11
|
*/
|
|
12
|
-
import { Badge
|
|
12
|
+
import { Badge } from "../../../ui/components/Badge.js";
|
|
13
|
+
import { Container, Row, Stack } from "../../../ui/components/Layout.js";
|
|
14
|
+
import { DataTable } from "../../../ui/DataTable.js";
|
|
15
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
16
|
+
import { Heading, Text } from "../../../ui/components/Typography.js";
|
|
17
|
+
import { Section } from "../../../ui/components/Semantic.js";
|
|
18
|
+
import { TextLink } from "../../../ui/components/TextLink.js";
|
|
13
19
|
import { MediaImage } from "../../media/MediaImage.js";
|
|
14
20
|
import { ROUTES } from "../../../next/routing/route-map.js";
|
|
15
21
|
export function PrizeDrawWinnerMappingView({ title = "Prize Draw — Winner Mapping", items, isAdmin, }) {
|
|
@@ -6,7 +6,14 @@ import { useState, useCallback } from "react";
|
|
|
6
6
|
import { useUrlTable } from "../../../react/hooks/useUrlTable.js";
|
|
7
7
|
import { usePendingTable } from "../../../react/hooks/usePendingTable.js";
|
|
8
8
|
import { useProducts } from "../hooks/useProducts.js";
|
|
9
|
-
import { Div
|
|
9
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
10
|
+
import { FilterDrawer } from "../../../ui/components/FilterDrawer.js";
|
|
11
|
+
import { Grid, Row, Stack } from "../../../ui/components/Layout.js";
|
|
12
|
+
import { Label, Text } from "../../../ui/components/Typography.js";
|
|
13
|
+
import { ListingToolbar } from "../../../ui/components/ListingToolbar.js";
|
|
14
|
+
import { Pagination } from "../../../ui/components/Pagination.js";
|
|
15
|
+
import { Select } from "../../../ui/components/Select.js";
|
|
16
|
+
import { StickyToolbar } from "../../../ui/components/StickyToolbar.js";
|
|
10
17
|
import { useCategoryTree, categoriesToFacetOptions } from "../../categories/hooks/useCategoryTree.js";
|
|
11
18
|
import { useBrands } from "../hooks/useBrands.js";
|
|
12
19
|
import { MarketplacePrizeDrawCard } from "./MarketplacePrizeDrawCard.js";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Container
|
|
2
|
+
import { Container } from "../../../ui/components/Layout.js";
|
|
3
|
+
import { Main, Section } from "../../../ui/components/Semantic.js";
|
|
4
|
+
import { Heading, Text } from "../../../ui/components/Typography.js";
|
|
3
5
|
import { AdSlot } from "../../homepage/components/AdSlot.js";
|
|
4
6
|
import { PRODUCT_FIELDS } from "../../../constants/field-names.js";
|
|
5
7
|
import { sortBy } from "../../../constants/sort.js";
|
|
@@ -4,7 +4,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
// a client-reference proxy and calling it throws during the server render
|
|
5
5
|
// (Root Cause #18). That is exactly what took `section-prize-draws` down.
|
|
6
6
|
import { sortBy } from "../../../constants/sort.js";
|
|
7
|
-
import { Container, Grid,
|
|
7
|
+
import { Container, Grid, Stack } from "../../../ui/components/Layout.js";
|
|
8
|
+
import { Heading, Text } from "../../../ui/components/Typography.js";
|
|
9
|
+
import { Section } from "../../../ui/components/Semantic.js";
|
|
8
10
|
import { ROUTES } from "../../../next/routing/route-map.js";
|
|
9
11
|
import { listPublicProducts } from "../../../_internal/server/features/products/list-public.js";
|
|
10
12
|
import { AVAILABILITY_VALUES, PRODUCT_FIELDS } from "../../../constants/field-names.js";
|
|
@@ -9,7 +9,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
* Firebase Function at draw expiry/sellout ("scheduled" mode). This modal is
|
|
10
10
|
* a pure display: "pending" (no result yet) or "won" (order.prizeWon is set).
|
|
11
11
|
*/
|
|
12
|
-
import { Anchor
|
|
12
|
+
import { Anchor } from "../../../ui/components/Anchor.js";
|
|
13
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
14
|
+
import { Heading, Span, Text } from "../../../ui/components/Typography.js";
|
|
15
|
+
import { Modal } from "../../../ui/components/Modal.js";
|
|
16
|
+
import { PricesOnly } from "../../../ui/components/GatedPrice.js";
|
|
17
|
+
import { Stack } from "../../../ui/components/Layout.js";
|
|
13
18
|
import { MediaImage } from "../../media/MediaImage.js";
|
|
14
19
|
import { PrizeDrawCollage } from "./PrizeDrawCollage.js";
|
|
15
20
|
const __P = {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { Div
|
|
3
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
4
|
+
import { Heading, Text } from "../../../ui/components/Typography.js";
|
|
5
|
+
import { Stack } from "../../../ui/components/Layout.js";
|
|
4
6
|
/**
|
|
5
7
|
* `ProductCardMetadataSection` — W1-34 — renders single-card aftermarket
|
|
6
8
|
* metadata (set name / year / card number / rarity / language). Designed to
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { useRouter } from "next/navigation.js";
|
|
5
|
-
import { Button
|
|
5
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
6
|
+
import { Stack } from "../../../ui/components/Layout.js";
|
|
7
|
+
import { LoginRequiredModal } from "../../../ui/components/LoginRequiredModal.js";
|
|
8
|
+
import { Icon } from "../../../ui/components/Icon.js";
|
|
6
9
|
import { useToast } from "../../../ui/components/Toast.js";
|
|
7
10
|
import { useAddToCart } from "../../cart/hooks/useAddToCart.js";
|
|
8
11
|
import { apiClient } from "../../../http/index.js";
|