@mohasinac/appkit 4.65.0 → 4.67.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/features/maintenance/index.d.ts +1 -0
- package/dist/_internal/client/features/maintenance/index.js +1 -0
- package/dist/_internal/client/features/maintenance/views/CacheInvalidationPanel.d.ts +33 -0
- package/dist/_internal/client/features/maintenance/views/CacheInvalidationPanel.js +96 -0
- package/dist/_internal/client/features/maintenance/views/MaintenanceDashboardView.js +2 -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 +2 -2
- 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/products/surface-counts.d.ts +26 -0
- package/dist/_internal/server/features/products/surface-counts.js +60 -0
- 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/seo/sitemap.js +39 -5
- 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 +16 -0
- package/dist/_internal/server/features/site-settings/adapters.js +11 -0
- package/dist/_internal/server/features/sticker-trace/promote-to-listings.js +1 -1
- package/dist/_internal/server/features/stores/data.js +1 -1
- 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/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/cleanupRtdbEvents.js +1 -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 +35 -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/surfaceCountsRollup.d.ts +55 -0
- package/dist/_internal/server/jobs/core/surfaceCountsRollup.js +128 -0
- package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.js +1 -1
- package/dist/_internal/server/jobs/handlers/countersReconcile.js +54 -1
- package/dist/_internal/server/jobs/handlers/onCatalogueSubmittedForApproval.js +1 -1
- package/dist/_internal/shared/actions/action-registry.js +28 -0
- package/dist/_internal/shared/cache/revalidate-targets.js +66 -47
- 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 +17 -0
- package/dist/_internal/shared/listing-types/feature-flags.d.ts +45 -0
- package/dist/_internal/shared/listing-types/feature-flags.js +51 -0
- package/dist/client.d.ts +225 -118
- package/dist/client.js +150 -74
- package/dist/constants/api-endpoints.d.ts +3 -0
- package/dist/constants/api-endpoints.js +11 -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/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/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/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 -2
- 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 -1
- 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 +6 -1
- 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 +1 -1
- 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 +2 -2
- 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.js +2 -1
- 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-ops-forms.d.ts +8 -8
- package/dist/features/admin/schemas/admin-user-form.d.ts +8 -8
- 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/components/AuctionBidsTable.js +6 -1
- package/dist/features/auctions/components/AuctionBottomActions.js +1 -1
- package/dist/features/auctions/components/AuctionDetailPageView.js +11 -2
- 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/schemas/index.d.ts +2 -2
- 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/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.js +3 -1
- 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/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/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/schemas/validation.d.ts +12 -12
- package/dist/features/catalogue/utils/product-from-item.js +1 -1
- 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.js +4 -2
- package/dist/features/categories/components/CategoriesIndexListing.js +8 -1
- package/dist/features/categories/components/CategoriesIndexPageView.js +3 -1
- 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/schemas/bundle-form.d.ts +22 -22
- package/dist/features/categories/schemas/index.d.ts +100 -100
- package/dist/features/checkout/components/CheckoutStepper.js +3 -1
- package/dist/features/classified/components/ClassifiedDetailPageView.js +7 -1
- package/dist/features/classified/components/ClassifiedFilters.js +3 -1
- package/dist/features/collections/components/CollectionCard.js +4 -1
- package/dist/features/collections/schemas/index.d.ts +9 -9
- 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/corporate/components/CorporateInquiryForm.js +3 -1
- package/dist/features/dashboard/components/DashboardHubView.js +7 -1
- package/dist/features/digital-codes/components/DigitalCodeDetailPageView.js +7 -1
- 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 +13 -2
- 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.js +3 -1
- 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/schemas/index.d.ts +14 -14
- package/dist/features/filters/AsyncFacetSection.js +6 -1
- package/dist/features/filters/FilterFacetSection.js +6 -1
- package/dist/features/filters/FilterPanel.js +1 -1
- package/dist/features/filters/RangeFilter.js +6 -1
- package/dist/features/filters/SwitchFilter.js +5 -1
- package/dist/features/forms/Checkbox.js +3 -1
- package/dist/features/forms/Input.js +2 -1
- package/dist/features/forms/Radio.js +3 -1
- package/dist/features/forms/Select.js +2 -1
- package/dist/features/forms/Slider.js +3 -1
- package/dist/features/forms/Textarea.js +3 -1
- package/dist/features/forms/Toggle.js +3 -1
- 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 +2 -2
- package/dist/features/grouped/schemas/index.d.ts +6 -6
- package/dist/features/history/hooks/useHistory.js +1 -1
- 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 +6 -1
- package/dist/features/homepage/components/CustomerReviewsSection.js +5 -1
- package/dist/features/homepage/components/FAQSection.js +8 -1
- package/dist/features/homepage/components/FeaturedBundlesSection.js +3 -1
- 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/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.js +2 -1
- 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/live/components/LiveItemDetailPageView.js +7 -1
- 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/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/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/RefundHistoryTable.js +4 -1
- package/dist/features/orders/components/RefundRequestView.js +1 -1
- 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/payments/schemas/index.d.ts +10 -10
- package/dist/features/points/schemas/adjust-form.d.ts +2 -2
- 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 +9 -2
- 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/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 -1
- 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 +8 -1
- package/dist/features/products/components/GroupSettingsPanel.js +12 -1
- 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 +6 -1
- package/dist/features/products/components/PrizeDrawEntryActions.js +7 -1
- 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 +10 -2
- 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/schemas/index.d.ts +70 -70
- package/dist/features/products/schemas/product-features.validators.d.ts +52 -52
- package/dist/features/products/schemas/surface-counts.d.ts +83 -0
- package/dist/features/products/schemas/surface-counts.js +58 -0
- package/dist/features/promotions/actions/promotions-actions.js +22 -6
- 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.js +3 -1
- 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/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/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/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/components/InteractiveStoreCard.js +6 -1
- 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 +6 -1
- 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.js +4 -2
- package/dist/features/stores/hooks/useStoreAddressSelector.d.ts +1 -1
- 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/index.d.ts +2496 -2453
- package/dist/index.js +1545 -1500
- package/dist/next/api/routeHandler.js +1 -1
- 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/useListingSurfaceVisibility.d.ts +44 -0
- package/dist/react/hooks/useListingSurfaceVisibility.js +20 -0
- package/dist/schemas/registry.d.ts +488 -483
- package/dist/schemas/sieve.d.ts +5 -5
- package/dist/schemas/webhooks/google-oauth.d.ts +4 -4
- package/dist/server.d.ts +371 -362
- package/dist/server.js +367 -351
- package/dist/ui/components/HorizontalScroller.js +27 -2
- package/dist/ui/components/Repeater.js +4 -1
- package/dist/validation/schemas.d.ts +26 -26
- package/package.json +121 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { StackedViewShell } from "../../../ui/
|
|
2
|
+
import { StackedViewShell } from "../../../ui/components/StackedViewShell.js";
|
|
3
3
|
export function UserAccountHubView({ labels = {}, renderProfile, renderNav, renderRecentOrders, ...rest }) {
|
|
4
4
|
return (_jsx(StackedViewShell, { portal: "user", ...rest, title: labels.title, sections: [renderProfile?.(), renderNav?.(), renderRecentOrders?.()] }));
|
|
5
5
|
}
|
|
@@ -4,7 +4,11 @@ import { sortBy, sieveFilter, SIEVE_OP } from "../../../utils/sieve-builder.js";
|
|
|
4
4
|
import { ACCOUNT_ENDPOINTS } from "../../../constants/api-endpoints.js";
|
|
5
5
|
import { ROUTES } from "../../../constants/index.js";
|
|
6
6
|
import { useState } from "react";
|
|
7
|
-
import { Div
|
|
7
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
8
|
+
import { Span } from "../../../ui/components/Typography.js";
|
|
9
|
+
import { Stack } from "../../../ui/components/Layout.js";
|
|
10
|
+
import { TextLink } from "../../../ui/components/TextLink.js";
|
|
11
|
+
import { RecordDetailModal } from "../../../ui/components/RecordDetailModal.js";
|
|
8
12
|
import { buildBidDetailFields, bidStatusBadge } from "../../auctions/components/bid-detail-fields.js";
|
|
9
13
|
import { FieldSelect } from "../../../ui/forms/index.js";
|
|
10
14
|
import { AuctionBidsTable } from "../../auctions/components/AuctionBidsTable.js";
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useEffect, useState, useTransition } from "react";
|
|
4
|
-
import { Alert
|
|
4
|
+
import { Alert } from "../../../ui/components/Alert.js";
|
|
5
|
+
import { Badge } from "../../../ui/components/Badge.js";
|
|
6
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
7
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
8
|
+
import { Heading, Text } from "../../../ui/components/Typography.js";
|
|
9
|
+
import { LoginRequiredModal } from "../../../ui/components/LoginRequiredModal.js";
|
|
10
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
11
|
+
import { Spinner } from "../../../ui/components/Spinner.js";
|
|
12
|
+
import { TextLink } from "../../../ui/components/TextLink.js";
|
|
5
13
|
import { ROUTES } from "../../../next/routing/route-map.js";
|
|
6
14
|
import { isAuthError } from "../../../utils/auth-error.js";
|
|
7
15
|
import { ACTIONS } from "../../../_internal/shared/actions/action-registry.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
import type { StackedViewShellProps } from "../../../ui";
|
|
2
|
+
import type { StackedViewShellProps } from "../../../ui/components/StackedViewShell";
|
|
3
3
|
export interface UserOrderTrackViewLabels {
|
|
4
4
|
title?: string;
|
|
5
5
|
backLabel?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { StackedViewShell } from "../../../ui/
|
|
2
|
+
import { StackedViewShell } from "../../../ui/components/StackedViewShell.js";
|
|
3
3
|
export function UserOrderTrackView({ renderBack, renderTracking, renderNotFound, isNotFound = false, ...rest }) {
|
|
4
4
|
return (_jsx(StackedViewShell, { portal: "user", ...rest, sections: [
|
|
5
5
|
renderBack?.(),
|
|
@@ -4,7 +4,12 @@ import { sortBy, sieveFilter, SIEVE_OP } from "../../../utils/sieve-builder.js";
|
|
|
4
4
|
import { ACCOUNT_ENDPOINTS } from "../../../constants/api-endpoints.js";
|
|
5
5
|
import { ROUTES } from "../../../constants/index.js";
|
|
6
6
|
import { ACTIONS } from "../../../_internal/shared/actions/action-registry.js";
|
|
7
|
-
import { Button
|
|
7
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
8
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
9
|
+
import { FilterChipGroup } from "../../../ui/components/FilterChipGroup.js";
|
|
10
|
+
import { Grid, Stack } from "../../../ui/components/Layout.js";
|
|
11
|
+
import { Text } from "../../../ui/components/Typography.js";
|
|
12
|
+
import { TextLink } from "../../../ui/components/TextLink.js";
|
|
8
13
|
import { PaginatedSelect } from "../../../ui/components/PaginatedSelect.js";
|
|
9
14
|
import { DataListingView } from "../../admin/components/DataListingView.js";
|
|
10
15
|
import { OrderCard } from "../../orders/components/OrdersList.js";
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { sortBy } from "../../../constants/sort.js";
|
|
4
4
|
import { ACCOUNT_ENDPOINTS } from "../../../constants/api-endpoints.js";
|
|
5
|
-
import { Div
|
|
5
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
6
|
+
import { Grid, Stack } from "../../../ui/components/Layout.js";
|
|
7
|
+
import { Text } from "../../../ui/components/Typography.js";
|
|
6
8
|
import { useRouter } from "next/navigation.js";
|
|
7
9
|
import { ROUTES } from "../../../next/routing/route-map.js";
|
|
8
10
|
import { DataListingView } from "../../admin/components/DataListingView.js";
|
|
@@ -4,7 +4,14 @@ import { useState, useCallback, useEffect } from "react";
|
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
5
|
import Link from "next/link.js";
|
|
6
6
|
import { usePathname } from "next/navigation.js";
|
|
7
|
-
import { Button
|
|
7
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
8
|
+
import { ConfirmDeleteModal } from "../../../ui/components/ConfirmDeleteModal.js";
|
|
9
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
10
|
+
import { IconButton } from "../../../ui/components/IconButton.js";
|
|
11
|
+
import { Input } from "../../../ui/components/Input.js";
|
|
12
|
+
import { Li, Nav, Ul } from "../../../ui/components/Semantic.js";
|
|
13
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
14
|
+
import { Span } from "../../../ui/components/Typography.js";
|
|
8
15
|
import { BottomSheet } from "../../layout/BottomSheet.js";
|
|
9
16
|
import { SidebarCollapseToggle } from "../../../_internal/client/features/layout/SidebarCollapseToggle.js";
|
|
10
17
|
import { useSidebarSearch } from "../../../_internal/client/features/layout/useSidebarSearch.js";
|
|
@@ -10,14 +10,14 @@ export declare const notificationPreferencesSchema: z.ZodObject<{
|
|
|
10
10
|
push?: boolean | undefined;
|
|
11
11
|
newsletter?: boolean | undefined;
|
|
12
12
|
promotions?: boolean | undefined;
|
|
13
|
-
sms?: boolean | undefined;
|
|
14
13
|
orderUpdates?: boolean | undefined;
|
|
14
|
+
sms?: boolean | undefined;
|
|
15
15
|
}, {
|
|
16
16
|
push?: boolean | undefined;
|
|
17
17
|
newsletter?: boolean | undefined;
|
|
18
18
|
promotions?: boolean | undefined;
|
|
19
|
-
sms?: boolean | undefined;
|
|
20
19
|
orderUpdates?: boolean | undefined;
|
|
20
|
+
sms?: boolean | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
/**
|
|
23
23
|
* Base Zod schema for a user profile.
|
|
@@ -47,23 +47,23 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
47
47
|
push?: boolean | undefined;
|
|
48
48
|
newsletter?: boolean | undefined;
|
|
49
49
|
promotions?: boolean | undefined;
|
|
50
|
-
sms?: boolean | undefined;
|
|
51
50
|
orderUpdates?: boolean | undefined;
|
|
51
|
+
sms?: boolean | undefined;
|
|
52
52
|
}, {
|
|
53
53
|
push?: boolean | undefined;
|
|
54
54
|
newsletter?: boolean | undefined;
|
|
55
55
|
promotions?: boolean | undefined;
|
|
56
|
-
sms?: boolean | undefined;
|
|
57
56
|
orderUpdates?: boolean | undefined;
|
|
57
|
+
sms?: boolean | undefined;
|
|
58
58
|
}>>;
|
|
59
59
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
60
60
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
62
|
id: string;
|
|
63
|
-
email?: string | undefined;
|
|
64
|
-
displayName?: string | undefined;
|
|
65
63
|
createdAt?: string | undefined;
|
|
66
64
|
updatedAt?: string | undefined;
|
|
65
|
+
email?: string | undefined;
|
|
66
|
+
displayName?: string | undefined;
|
|
67
67
|
photoURL?: string | undefined;
|
|
68
68
|
bio?: string | undefined;
|
|
69
69
|
phone?: string | undefined;
|
|
@@ -71,15 +71,15 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
71
71
|
push?: boolean | undefined;
|
|
72
72
|
newsletter?: boolean | undefined;
|
|
73
73
|
promotions?: boolean | undefined;
|
|
74
|
-
sms?: boolean | undefined;
|
|
75
74
|
orderUpdates?: boolean | undefined;
|
|
75
|
+
sms?: boolean | undefined;
|
|
76
76
|
} | undefined;
|
|
77
77
|
}, {
|
|
78
78
|
id: string;
|
|
79
|
-
email?: string | undefined;
|
|
80
|
-
displayName?: string | undefined;
|
|
81
79
|
createdAt?: string | undefined;
|
|
82
80
|
updatedAt?: string | undefined;
|
|
81
|
+
email?: string | undefined;
|
|
82
|
+
displayName?: string | undefined;
|
|
83
83
|
photoURL?: string | undefined;
|
|
84
84
|
bio?: string | undefined;
|
|
85
85
|
phone?: string | undefined;
|
|
@@ -87,8 +87,8 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
87
87
|
push?: boolean | undefined;
|
|
88
88
|
newsletter?: boolean | undefined;
|
|
89
89
|
promotions?: boolean | undefined;
|
|
90
|
-
sms?: boolean | undefined;
|
|
91
90
|
orderUpdates?: boolean | undefined;
|
|
91
|
+
sms?: boolean | undefined;
|
|
92
92
|
} | undefined;
|
|
93
93
|
}>;
|
|
94
94
|
/**
|
|
@@ -176,9 +176,9 @@ export declare const adminAddressCreateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
176
176
|
ownerId: z.ZodString;
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
178
|
country: string;
|
|
179
|
-
label: string;
|
|
180
179
|
ownerId: string;
|
|
181
180
|
ownerType: "user" | "store";
|
|
181
|
+
label: string;
|
|
182
182
|
fullName: string;
|
|
183
183
|
phone: string;
|
|
184
184
|
addressLine1: string;
|
|
@@ -189,9 +189,9 @@ export declare const adminAddressCreateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
189
189
|
addressLine2?: string | undefined;
|
|
190
190
|
landmark?: string | undefined;
|
|
191
191
|
}, {
|
|
192
|
-
label: string;
|
|
193
192
|
ownerId: string;
|
|
194
193
|
ownerType: "user" | "store";
|
|
194
|
+
label: string;
|
|
195
195
|
fullName: string;
|
|
196
196
|
phone: string;
|
|
197
197
|
addressLine1: string;
|
|
@@ -204,9 +204,9 @@ export declare const adminAddressCreateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
204
204
|
landmark?: string | undefined;
|
|
205
205
|
}>, {
|
|
206
206
|
country: string;
|
|
207
|
-
label: string;
|
|
208
207
|
ownerId: string;
|
|
209
208
|
ownerType: "user" | "store";
|
|
209
|
+
label: string;
|
|
210
210
|
fullName: string;
|
|
211
211
|
phone: string;
|
|
212
212
|
addressLine1: string;
|
|
@@ -217,9 +217,9 @@ export declare const adminAddressCreateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
217
217
|
addressLine2?: string | undefined;
|
|
218
218
|
landmark?: string | undefined;
|
|
219
219
|
}, {
|
|
220
|
-
label: string;
|
|
221
220
|
ownerId: string;
|
|
222
221
|
ownerType: "user" | "store";
|
|
222
|
+
label: string;
|
|
223
223
|
fullName: string;
|
|
224
224
|
phone: string;
|
|
225
225
|
addressLine1: string;
|
|
@@ -247,9 +247,9 @@ export declare const adminAddressUpdateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
247
247
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
248
248
|
}, "strip", z.ZodTypeAny, {
|
|
249
249
|
country?: string | undefined;
|
|
250
|
-
label?: string | undefined;
|
|
251
250
|
ownerId?: string | undefined;
|
|
252
251
|
ownerType?: "user" | "store" | undefined;
|
|
252
|
+
label?: string | undefined;
|
|
253
253
|
fullName?: string | undefined;
|
|
254
254
|
phone?: string | undefined;
|
|
255
255
|
addressLine1?: string | undefined;
|
|
@@ -261,9 +261,9 @@ export declare const adminAddressUpdateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
261
261
|
landmark?: string | undefined;
|
|
262
262
|
}, {
|
|
263
263
|
country?: string | undefined;
|
|
264
|
-
label?: string | undefined;
|
|
265
264
|
ownerId?: string | undefined;
|
|
266
265
|
ownerType?: "user" | "store" | undefined;
|
|
266
|
+
label?: string | undefined;
|
|
267
267
|
fullName?: string | undefined;
|
|
268
268
|
phone?: string | undefined;
|
|
269
269
|
addressLine1?: string | undefined;
|
|
@@ -275,9 +275,9 @@ export declare const adminAddressUpdateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
275
275
|
landmark?: string | undefined;
|
|
276
276
|
}>, {
|
|
277
277
|
country?: string | undefined;
|
|
278
|
-
label?: string | undefined;
|
|
279
278
|
ownerId?: string | undefined;
|
|
280
279
|
ownerType?: "user" | "store" | undefined;
|
|
280
|
+
label?: string | undefined;
|
|
281
281
|
fullName?: string | undefined;
|
|
282
282
|
phone?: string | undefined;
|
|
283
283
|
addressLine1?: string | undefined;
|
|
@@ -289,9 +289,9 @@ export declare const adminAddressUpdateSchema: z.ZodEffects<z.ZodObject<{
|
|
|
289
289
|
landmark?: string | undefined;
|
|
290
290
|
}, {
|
|
291
291
|
country?: string | undefined;
|
|
292
|
-
label?: string | undefined;
|
|
293
292
|
ownerId?: string | undefined;
|
|
294
293
|
ownerType?: "user" | "store" | undefined;
|
|
294
|
+
label?: string | undefined;
|
|
295
295
|
fullName?: string | undefined;
|
|
296
296
|
phone?: string | undefined;
|
|
297
297
|
addressLine1?: string | undefined;
|
|
@@ -335,10 +335,9 @@ export declare const adminAddressPatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
335
335
|
banReason: z.ZodOptional<z.ZodString>;
|
|
336
336
|
}, "strip", z.ZodTypeAny, {
|
|
337
337
|
country?: string | undefined;
|
|
338
|
-
label?: string | undefined;
|
|
339
|
-
action?: "ban" | "approve_unban" | "reject_unban" | undefined;
|
|
340
338
|
ownerId?: string | undefined;
|
|
341
339
|
ownerType?: "user" | "store" | undefined;
|
|
340
|
+
label?: string | undefined;
|
|
342
341
|
fullName?: string | undefined;
|
|
343
342
|
phone?: string | undefined;
|
|
344
343
|
addressLine1?: string | undefined;
|
|
@@ -346,15 +345,15 @@ export declare const adminAddressPatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
346
345
|
state?: string | undefined;
|
|
347
346
|
postalCode?: string | undefined;
|
|
348
347
|
isDefault?: boolean | undefined;
|
|
348
|
+
action?: "ban" | "approve_unban" | "reject_unban" | undefined;
|
|
349
349
|
addressLine2?: string | undefined;
|
|
350
350
|
landmark?: string | undefined;
|
|
351
351
|
banReason?: string | undefined;
|
|
352
352
|
}, {
|
|
353
353
|
country?: string | undefined;
|
|
354
|
-
label?: string | undefined;
|
|
355
|
-
action?: "ban" | "approve_unban" | "reject_unban" | undefined;
|
|
356
354
|
ownerId?: string | undefined;
|
|
357
355
|
ownerType?: "user" | "store" | undefined;
|
|
356
|
+
label?: string | undefined;
|
|
358
357
|
fullName?: string | undefined;
|
|
359
358
|
phone?: string | undefined;
|
|
360
359
|
addressLine1?: string | undefined;
|
|
@@ -362,15 +361,15 @@ export declare const adminAddressPatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
362
361
|
state?: string | undefined;
|
|
363
362
|
postalCode?: string | undefined;
|
|
364
363
|
isDefault?: boolean | undefined;
|
|
364
|
+
action?: "ban" | "approve_unban" | "reject_unban" | undefined;
|
|
365
365
|
addressLine2?: string | undefined;
|
|
366
366
|
landmark?: string | undefined;
|
|
367
367
|
banReason?: string | undefined;
|
|
368
368
|
}>, {
|
|
369
369
|
country?: string | undefined;
|
|
370
|
-
label?: string | undefined;
|
|
371
|
-
action?: "ban" | "approve_unban" | "reject_unban" | undefined;
|
|
372
370
|
ownerId?: string | undefined;
|
|
373
371
|
ownerType?: "user" | "store" | undefined;
|
|
372
|
+
label?: string | undefined;
|
|
374
373
|
fullName?: string | undefined;
|
|
375
374
|
phone?: string | undefined;
|
|
376
375
|
addressLine1?: string | undefined;
|
|
@@ -378,15 +377,15 @@ export declare const adminAddressPatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
378
377
|
state?: string | undefined;
|
|
379
378
|
postalCode?: string | undefined;
|
|
380
379
|
isDefault?: boolean | undefined;
|
|
380
|
+
action?: "ban" | "approve_unban" | "reject_unban" | undefined;
|
|
381
381
|
addressLine2?: string | undefined;
|
|
382
382
|
landmark?: string | undefined;
|
|
383
383
|
banReason?: string | undefined;
|
|
384
384
|
}, {
|
|
385
385
|
country?: string | undefined;
|
|
386
|
-
label?: string | undefined;
|
|
387
|
-
action?: "ban" | "approve_unban" | "reject_unban" | undefined;
|
|
388
386
|
ownerId?: string | undefined;
|
|
389
387
|
ownerType?: "user" | "store" | undefined;
|
|
388
|
+
label?: string | undefined;
|
|
390
389
|
fullName?: string | undefined;
|
|
391
390
|
phone?: string | undefined;
|
|
392
391
|
addressLine1?: string | undefined;
|
|
@@ -394,6 +393,7 @@ export declare const adminAddressPatchSchema: z.ZodEffects<z.ZodObject<{
|
|
|
394
393
|
state?: string | undefined;
|
|
395
394
|
postalCode?: string | undefined;
|
|
396
395
|
isDefault?: boolean | undefined;
|
|
396
|
+
action?: "ban" | "approve_unban" | "reject_unban" | undefined;
|
|
397
397
|
addressLine2?: string | undefined;
|
|
398
398
|
landmark?: string | undefined;
|
|
399
399
|
banReason?: string | undefined;
|
|
@@ -34,7 +34,6 @@ export declare const addressFirestoreSchema: z.ZodObject<{
|
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
35
|
country: string;
|
|
36
36
|
id: string;
|
|
37
|
-
label: string;
|
|
38
37
|
createdAt: string | Date | z.objectOutputType<{
|
|
39
38
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
40
39
|
}, z.ZodTypeAny, "passthrough">;
|
|
@@ -43,6 +42,7 @@ export declare const addressFirestoreSchema: z.ZodObject<{
|
|
|
43
42
|
}, z.ZodTypeAny, "passthrough">;
|
|
44
43
|
ownerId: string;
|
|
45
44
|
ownerType: "user" | "store";
|
|
45
|
+
label: string;
|
|
46
46
|
fullName: string;
|
|
47
47
|
phone: string;
|
|
48
48
|
addressLine1: string;
|
|
@@ -55,7 +55,6 @@ export declare const addressFirestoreSchema: z.ZodObject<{
|
|
|
55
55
|
}, {
|
|
56
56
|
country: string;
|
|
57
57
|
id: string;
|
|
58
|
-
label: string;
|
|
59
58
|
createdAt: string | Date | z.objectInputType<{
|
|
60
59
|
toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
|
|
61
60
|
}, z.ZodTypeAny, "passthrough">;
|
|
@@ -64,6 +63,7 @@ export declare const addressFirestoreSchema: z.ZodObject<{
|
|
|
64
63
|
}, z.ZodTypeAny, "passthrough">;
|
|
65
64
|
ownerId: string;
|
|
66
65
|
ownerType: "user" | "store";
|
|
66
|
+
label: string;
|
|
67
67
|
fullName: string;
|
|
68
68
|
phone: string;
|
|
69
69
|
addressLine1: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { OrderAdminUpdateInput, OrderDocument } from "../../orders";
|
|
2
|
-
import type { PayoutDocument, PayoutUpdateInput } from "../../payments";
|
|
3
|
-
import type { UserAdminUpdateInput, UserDocument } from "../../auth";
|
|
1
|
+
import type { OrderAdminUpdateInput, OrderDocument } from "../../orders/schemas/firestore";
|
|
2
|
+
import type { PayoutDocument, PayoutUpdateInput } from "../../payments/schemas/firestore";
|
|
3
|
+
import type { UserAdminUpdateInput, UserDocument } from "../../auth/schemas/firestore";
|
|
4
4
|
import type { ProductAdminUpdateInput, ProductCreateInput, ProductDocument } from "../../products/schemas/firestore";
|
|
5
5
|
export interface AdminActor {
|
|
6
6
|
uid: string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* consumer-side thin server-action wrappers.
|
|
6
6
|
*/
|
|
7
7
|
import type { FirebaseSieveResult } from "../../../providers/db-firebase";
|
|
8
|
-
import type { CouponCreateInput, CouponDocument, CouponUpdateInput } from "../../promotions";
|
|
8
|
+
import type { CouponCreateInput, CouponDocument, CouponUpdateInput } from "../../promotions/schemas/firestore";
|
|
9
9
|
export declare function adminCreateCoupon(adminId: string, input: CouponCreateInput): Promise<CouponDocument>;
|
|
10
10
|
export declare function adminUpdateCoupon(adminId: string, id: string, input: CouponUpdateInput): Promise<CouponDocument>;
|
|
11
11
|
export declare function adminDeleteCoupon(adminId: string, id: string): Promise<void>;
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Pure read functions for admin dashboards and paginated list queries.
|
|
5
5
|
*/
|
|
6
6
|
import type { FirebaseSieveResult } from "../../../providers/db-firebase";
|
|
7
|
-
import type { OrderDocument } from "../../orders";
|
|
8
|
-
import type { PayoutDocument } from "../../payments";
|
|
9
|
-
import type { UserDocument } from "../../auth";
|
|
7
|
+
import type { OrderDocument } from "../../orders/schemas/firestore";
|
|
8
|
+
import type { PayoutDocument } from "../../payments/schemas/firestore";
|
|
9
|
+
import type { UserDocument } from "../../auth/schemas/firestore";
|
|
10
10
|
import type { ProductDocument } from "../../products/schemas/firestore";
|
|
11
11
|
import type { BlogPostDocument } from "../../blog/schemas/firestore";
|
|
12
12
|
import type { StoreDocument } from "../../stores/schemas/firestore";
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* a runtime-written bad link would 404 until the next run.
|
|
24
24
|
*/
|
|
25
25
|
import React from "react";
|
|
26
|
-
import type { StackedViewShellProps } from "../../../ui";
|
|
26
|
+
import type { StackedViewShellProps } from "../../../ui/components/StackedViewShell";
|
|
27
27
|
export interface AdminActionIndexViewProps extends Omit<StackedViewShellProps, "sections"> {
|
|
28
28
|
labels?: {
|
|
29
29
|
title?: string;
|
|
@@ -27,7 +27,13 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
|
27
27
|
import React from "react";
|
|
28
28
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
29
29
|
import { useApiMutation } from "@mohasinac/appkit/client";
|
|
30
|
-
import { Alert
|
|
30
|
+
import { Alert } from "../../../ui/components/Alert.js";
|
|
31
|
+
import { Badge } from "../../../ui/components/Badge.js";
|
|
32
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
33
|
+
import { Span, Text } from "../../../ui/components/Typography.js";
|
|
34
|
+
import { TextLink } from "../../../ui/components/TextLink.js";
|
|
35
|
+
import { Toggle } from "../../../ui/components/Toggle.js";
|
|
36
|
+
import { useToast } from "../../../ui/components/toast-context.js";
|
|
31
37
|
import { apiClient } from "../../../http/index.js";
|
|
32
38
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints.js";
|
|
33
39
|
import { DataListingView } from "./DataListingView.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { StackedViewShellProps } from "../../../ui";
|
|
2
|
+
import type { StackedViewShellProps } from "../../../ui/components/StackedViewShell";
|
|
3
3
|
export interface AdminAdEditorViewProps extends Omit<StackedViewShellProps, "sections"> {
|
|
4
4
|
adId?: string;
|
|
5
5
|
endpointBase?: string;
|
|
@@ -3,7 +3,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useApiMutation } from "@mohasinac/appkit/client";
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { useQuery } from "@tanstack/react-query";
|
|
6
|
-
import { Alert
|
|
6
|
+
import { Alert } from "../../../ui/components/Alert.js";
|
|
7
|
+
import { Checkbox } from "../../../ui/components/Checkbox.js";
|
|
8
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
9
|
+
import { EmptyState } from "../../../ui/components/EmptyState.js";
|
|
10
|
+
import { Span, Text } from "../../../ui/components/Typography.js";
|
|
11
|
+
import { Stack } from "../../../ui/components/Layout.js";
|
|
12
|
+
import { StackedViewShell } from "../../../ui/components/StackedViewShell.js";
|
|
13
|
+
import { useToast } from "../../../ui/components/toast-context.js";
|
|
7
14
|
import { apiClient } from "../../../http/index.js";
|
|
8
15
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints.js";
|
|
9
16
|
import { adminAdFormSchema } from "../schemas/admin-ops-forms.js";
|
|
@@ -8,7 +8,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
8
8
|
*/
|
|
9
9
|
import React from "react";
|
|
10
10
|
import { useQuery } from "@tanstack/react-query";
|
|
11
|
-
import { Badge
|
|
11
|
+
import { Badge } from "../../../ui/components/Badge.js";
|
|
12
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
13
|
+
import { Card } from "../../../ui/components/Card.js";
|
|
14
|
+
import { FieldSelect } from "../../../ui/forms/FieldSelect.js";
|
|
15
|
+
import { Heading, Text } from "../../../ui/components/Typography.js";
|
|
16
|
+
import { Input } from "../../../ui/components/Input.js";
|
|
17
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
18
|
+
import { TextLink } from "../../../ui/components/TextLink.js";
|
|
12
19
|
import { apiClient } from "../../../http/index.js";
|
|
13
20
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints.js";
|
|
14
21
|
import { ROUTES } from "../../../next/routing/route-map.js";
|
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useQuery } from "@tanstack/react-query";
|
|
4
4
|
import { useQueryClient } from "@tanstack/react-query";
|
|
5
|
-
import { Badge
|
|
5
|
+
import { Badge } from "../../../ui/components/Badge.js";
|
|
6
|
+
import { Button } from "../../../ui/components/Button.js";
|
|
7
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
8
|
+
import { Heading, Span, Text } from "../../../ui/components/Typography.js";
|
|
9
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
10
|
+
import { TextLink } from "../../../ui/components/TextLink.js";
|
|
11
|
+
import { useToast } from "../../../ui/components/toast-context.js";
|
|
6
12
|
import { ROUTES } from "../../../next/routing/route-map.js";
|
|
7
13
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints.js";
|
|
8
14
|
import { apiClient } from "../../../http/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { StackedViewShellProps } from "../../../ui";
|
|
2
|
+
import type { StackedViewShellProps } from "../../../ui/components/StackedViewShell";
|
|
3
3
|
export interface AdminAddressEditorViewProps extends Omit<StackedViewShellProps, "sections"> {
|
|
4
4
|
addressId?: string;
|
|
5
5
|
onSaved?: (id: string) => void;
|
|
@@ -21,7 +21,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
21
21
|
import { useApiMutation } from "@mohasinac/appkit/client";
|
|
22
22
|
import React from "react";
|
|
23
23
|
import { useQuery } from "@tanstack/react-query";
|
|
24
|
-
import { ConfirmDeleteModal
|
|
24
|
+
import { ConfirmDeleteModal } from "../../../ui/components/ConfirmDeleteModal.js";
|
|
25
|
+
import { Stack } from "../../../ui/components/Layout.js";
|
|
26
|
+
import { StackedViewShell } from "../../../ui/components/StackedViewShell.js";
|
|
27
|
+
import { useToast } from "../../../ui/components/toast-context.js";
|
|
25
28
|
import { FieldInput, FormErrorSummary } from "../../../ui/forms/index.js";
|
|
26
29
|
import { FormShellContext, useFormShellState } from "../../../ui/forms/FormShell.js";
|
|
27
30
|
import { applyZodIssues } from "../../../ui/forms/apply-zod-issues.js";
|
|
@@ -3,7 +3,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { sortBy } from "@mohasinac/appkit/client";
|
|
4
4
|
import { useUrlTable } from "../../../react/hooks/useUrlTable.js";
|
|
5
5
|
import { useQueryClient } from "@tanstack/react-query";
|
|
6
|
-
import { Badge
|
|
6
|
+
import { Badge } from "../../../ui/components/Badge.js";
|
|
7
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
8
|
+
import { FilterChipGroup } from "../../../ui/components/FilterChipGroup.js";
|
|
9
|
+
import { Span, Text } from "../../../ui/components/Typography.js";
|
|
10
|
+
import { Stack } from "../../../ui/components/Layout.js";
|
|
11
|
+
import { useToast } from "../../../ui/components/toast-context.js";
|
|
7
12
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints.js";
|
|
8
13
|
import { ACTIONS } from "../../../_internal/shared/actions/action-registry.js";
|
|
9
14
|
import { toRecordArray, toRelativeDate, toStringValue } from "../hooks/useAdminListingData.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { ListingLayoutProps } from "../../../ui";
|
|
2
|
+
import type { ListingLayoutProps } from "../../../ui/components/ListingLayout";
|
|
3
3
|
export type AdminAllEventEntriesViewProps = ListingLayoutProps;
|
|
4
4
|
export declare function AdminAllEventEntriesView({ children, ...props }: AdminAllEventEntriesViewProps): React.JSX.Element;
|
|
@@ -5,7 +5,11 @@ import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit/client";
|
|
|
5
5
|
import { sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { useQueryClient } from "@tanstack/react-query";
|
|
8
|
-
import { FilterChipGroup
|
|
8
|
+
import { FilterChipGroup } from "../../../ui/components/FilterChipGroup.js";
|
|
9
|
+
import { ListingLayout } from "../../../ui/components/ListingLayout.js";
|
|
10
|
+
import { RecordDetailModal } from "../../../ui/components/RecordDetailModal.js";
|
|
11
|
+
import { RowActionMenu } from "../../../ui/components/RowActionMenu.js";
|
|
12
|
+
import { useToast } from "../../../ui/components/toast-context.js";
|
|
9
13
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints.js";
|
|
10
14
|
import { ACTIONS } from "../../../_internal/shared/actions/action-registry.js";
|
|
11
15
|
import { ADMIN_EVENT_ENTRY_STATUS_TABS } from "../constants/filter-tabs.js";
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { BarChart2 } from "lucide-react";
|
|
3
|
-
import { Alert
|
|
3
|
+
import { Alert } from "../../../ui/components/Alert.js";
|
|
4
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
5
|
+
import { Heading, Span, Text } from "../../../ui/components/Typography.js";
|
|
6
|
+
import { Li, Section, Ul } from "../../../ui/components/Semantic.js";
|
|
7
|
+
import { Row, Stack } from "../../../ui/components/Layout.js";
|
|
4
8
|
import { GC } from "../../_guide-cls.js";
|
|
5
9
|
export function AdminAnalyticsGuideView() {
|
|
6
10
|
return (_jsxs(Stack, { className: "max-w-3xl mx-auto", padding: "b-2xl", gap: "xl", children: [_jsxs(Section, { children: [_jsxs(Row, { className: "mb-2", align: "center", gap: "3", children: [_jsx(Row, { className: "flex-shrink-0 w-10 h-10 [background:linear-gradient(135deg,var(--appkit-color-primary-700)_0%,var(--appkit-color-cobalt)_100%)]", align: "center", justify: "center", rounded: "xl", children: _jsx(BarChart2, { className: "w-5 h-5 text-white" }) }), _jsx(Text, { className: "text-[var(--appkit-color-text-muted)] tracking-widest", size: "sm", weight: "semibold", transform: "uppercase", children: "Admin Guide" })] }), _jsx(Heading, { level: 1, className: "text-[var(--appkit-color-text)] mb-2", mdSize: "3xl", size: "2xl", weight: "bold", children: "Analytics" }), _jsx(Text, { className: "text-[var(--appkit-color-text-muted)]", children: "Revenue, order funnel, product performance, and store metrics on LetItRip." })] }), [
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useQuery } from "@tanstack/react-query";
|
|
4
|
-
import { Div
|
|
5
|
-
import {
|
|
4
|
+
import { Div } from "../../../ui/components/Div.js";
|
|
5
|
+
import { Grid, Stack } from "../../../ui/components/Layout.js";
|
|
6
|
+
import { Heading } from "../../../ui/components/Typography.js";
|
|
7
|
+
import { Alert } from "../../../ui/components/Alert.js";
|
|
6
8
|
import { apiClient } from "../../../http/index.js";
|
|
7
9
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints.js";
|
|
8
10
|
import { AdminStatCard } from "./analytics/AdminStatCard.js";
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
* of a three-option sort array. See listing-type-listing-config.ts.
|
|
9
9
|
*/
|
|
10
10
|
import React from "react";
|
|
11
|
-
import type { ListingLayoutProps } from "../../../ui";
|
|
11
|
+
import type { ListingLayoutProps } from "../../../ui/components/ListingLayout";
|
|
12
12
|
export type AdminArtViewProps = ListingLayoutProps;
|
|
13
13
|
export declare function AdminArtView({ children, ...props }: AdminArtViewProps): React.JSX.Element;
|
|
@@ -10,7 +10,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
10
10
|
* of a three-option sort array. See listing-type-listing-config.ts.
|
|
11
11
|
*/
|
|
12
12
|
import React from "react";
|
|
13
|
-
import { ListingLayout } from "../../../ui/
|
|
13
|
+
import { ListingLayout } from "../../../ui/components/ListingLayout.js";
|
|
14
14
|
import { buildListingTypeListingConfig } from "../../products/config/listing-type-listing-config.js";
|
|
15
15
|
import { DataListingView } from "./DataListingView.js";
|
|
16
16
|
import { useAvailabilityScope } from "../../products/hooks/useAvailabilityScope.js";
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
* has no create/edit/delete affordance, only "view details".
|
|
7
7
|
*/
|
|
8
8
|
import React from "react";
|
|
9
|
-
import type { ListingLayoutProps } from "../../../ui";
|
|
9
|
+
import type { ListingLayoutProps } from "../../../ui/components/ListingLayout";
|
|
10
10
|
export type AdminAuditLogViewProps = ListingLayoutProps;
|
|
11
11
|
export declare function AdminAuditLogView({ children, ...props }: AdminAuditLogViewProps): React.JSX.Element;
|
|
@@ -10,7 +10,11 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
10
10
|
import React, { useState } from "react";
|
|
11
11
|
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit/client";
|
|
12
12
|
import { sortBy } from "@mohasinac/appkit/client";
|
|
13
|
-
import { FilterChipGroup
|
|
13
|
+
import { FilterChipGroup } from "../../../ui/components/FilterChipGroup.js";
|
|
14
|
+
import { Input } from "../../../ui/components/Input.js";
|
|
15
|
+
import { ListingLayout } from "../../../ui/components/ListingLayout.js";
|
|
16
|
+
import { RowActionMenu } from "../../../ui/components/RowActionMenu.js";
|
|
17
|
+
import { Stack } from "../../../ui/components/Layout.js";
|
|
14
18
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints.js";
|
|
15
19
|
import { ADMIN_AUDIT_LOG_ACTION_TABS } from "../constants/filter-tabs.js";
|
|
16
20
|
import { toRecordArray, toRelativeDate, toStringValue, } from "../hooks/useAdminListingData.js";
|