@mohasinac/appkit 4.64.1 → 4.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.build-stamp.json +3 -3
- package/dist/_internal/client/features/digital-code/CodeRevealPanel.js +4 -1
- package/dist/_internal/client/features/digital-code/DigitalContentPoolManager.js +5 -1
- package/dist/_internal/client/features/layout/DashboardLayoutClient.d.ts +1 -1
- package/dist/_internal/client/features/layout/DashboardLayoutClient.js +3 -1
- package/dist/_internal/client/features/lottery/LotteryAdminEditView.js +6 -2
- package/dist/_internal/client/features/lottery/LotteryAdminSlotView.js +5 -1
- package/dist/_internal/client/features/lottery/LotteryDetailView.js +6 -1
- package/dist/_internal/client/features/lottery/LotteryEntriesView.js +6 -1
- package/dist/_internal/client/features/lottery/LotteryListView.js +7 -1
- package/dist/_internal/client/features/lottery/LotteryPullForm.js +3 -1
- package/dist/_internal/client/features/lottery/LotterySlotGrid.js +3 -1
- package/dist/_internal/client/features/lottery/PrizeDrawLotteryDetailView.js +6 -1
- package/dist/_internal/client/scaffolds/AppShell.js +3 -1
- package/dist/_internal/server/features/account/data.js +2 -1
- package/dist/_internal/server/features/auctions/service.js +1 -1
- package/dist/_internal/server/features/auth/capabilities.js +1 -1
- package/dist/_internal/server/features/auth/permissions.js +1 -1
- package/dist/_internal/server/features/brands/actions.js +1 -1
- package/dist/_internal/server/features/brands/data.js +1 -1
- package/dist/_internal/server/features/brands/service.js +1 -1
- package/dist/_internal/server/features/bundles/actions.js +1 -1
- package/dist/_internal/server/features/bundles/data.js +2 -2
- package/dist/_internal/server/features/cart/actions.js +1 -1
- package/dist/_internal/server/features/cart/data.js +1 -1
- package/dist/_internal/server/features/cart/service.js +1 -1
- package/dist/_internal/server/features/categories/data.js +1 -1
- package/dist/_internal/server/features/checkout/actions.js +20 -3
- package/dist/_internal/server/features/checkout/group-rule-revalidation.js +1 -1
- package/dist/_internal/server/features/checkout/locked-lines.js +1 -1
- package/dist/_internal/server/features/checkout/upi-resolution.js +2 -1
- package/dist/_internal/server/features/grouped/data.js +2 -1
- package/dist/_internal/server/features/history/actions.d.ts +1 -1
- package/dist/_internal/server/features/history/actions.js +1 -1
- package/dist/_internal/server/features/history/data.d.ts +1 -1
- package/dist/_internal/server/features/history/data.js +1 -1
- package/dist/_internal/server/features/item-requests/data.js +1 -1
- package/dist/_internal/server/features/messages/actions.js +1 -1
- package/dist/_internal/server/features/payouts/actions.js +1 -1
- package/dist/_internal/server/features/pre-orders/actions.js +1 -1
- package/dist/_internal/server/features/pre-orders/service.js +1 -1
- package/dist/_internal/server/features/prize-draws/actions.js +1 -1
- package/dist/_internal/server/features/products/actions.js +1 -1
- package/dist/_internal/server/features/products/data.js +1 -1
- package/dist/_internal/server/features/products/list-public.js +1 -1
- package/dist/_internal/server/features/products/service.js +1 -1
- package/dist/_internal/server/features/promotions/actions.js +1 -1
- package/dist/_internal/server/features/promotions/adapters.js +9 -0
- package/dist/_internal/server/features/promotions/data.d.ts +24 -3
- package/dist/_internal/server/features/promotions/data.js +41 -6
- package/dist/_internal/server/features/promotions/index.d.ts +1 -1
- package/dist/_internal/server/features/promotions/index.js +1 -1
- package/dist/_internal/server/features/promotions/service.js +1 -1
- package/dist/_internal/server/features/search/index-build/sources.js +27 -12
- package/dist/_internal/server/features/seo/sitemap.js +79 -13
- package/dist/_internal/server/features/shared/listing-data-factory.js +1 -1
- package/dist/_internal/server/features/shipping/courier-block.js +1 -1
- package/dist/_internal/server/features/site-settings/adapters.d.ts +1 -1
- package/dist/_internal/server/features/site-settings/adapters.js +16 -1
- package/dist/_internal/server/features/sticker-trace/promote-to-listings.js +1 -1
- package/dist/_internal/server/features/stores/adapters.d.ts +1 -1
- package/dist/_internal/server/features/stores/adapters.js +14 -0
- package/dist/_internal/server/features/stores/data.js +1 -1
- package/dist/_internal/server/features/stores/tabs.d.ts +19 -15
- package/dist/_internal/server/features/stores/tabs.js +20 -21
- package/dist/_internal/server/features/sublisting-categories/data.js +1 -1
- package/dist/_internal/server/features/wishlist/actions.d.ts +1 -1
- package/dist/_internal/server/features/wishlist/actions.js +1 -1
- package/dist/_internal/server/features/wishlist/data.d.ts +1 -1
- package/dist/_internal/server/features/wishlist/data.js +1 -1
- package/dist/_internal/server/jobs/core/analyticsAlertEvaluate.js +9 -4
- package/dist/_internal/server/jobs/core/autoPayoutEligibility.js +1 -1
- package/dist/_internal/server/jobs/core/cartPrune.js +1 -1
- package/dist/_internal/server/jobs/core/catalogueImageStalenessReminder.js +1 -1
- package/dist/_internal/server/jobs/core/categoryTaxonomyBackfill.js +22 -0
- package/dist/_internal/server/jobs/core/cleanupRtdbEvents.js +1 -1
- package/dist/_internal/server/jobs/core/countersReconcile.js +0 -1
- package/dist/_internal/server/jobs/core/couponExpiry.js +1 -1
- package/dist/_internal/server/jobs/core/dailyDataCleanup.js +2 -1
- package/dist/_internal/server/jobs/core/draftPrune.js +1 -1
- package/dist/_internal/server/jobs/core/hardBanReinstatement.js +1 -1
- package/dist/_internal/server/jobs/core/newsletterExport.js +1 -1
- package/dist/_internal/server/jobs/core/notificationPrune.js +1 -1
- package/dist/_internal/server/jobs/core/onJobCreated.js +1 -1
- package/dist/_internal/server/jobs/core/onOrderCreate.js +3 -1
- package/dist/_internal/server/jobs/core/onProductWrite.js +2 -1
- package/dist/_internal/server/jobs/core/onScamReportCreate.js +2 -1
- package/dist/_internal/server/jobs/core/onScamReportRejected.js +1 -1
- package/dist/_internal/server/jobs/core/onScamReportVerified.js +1 -1
- package/dist/_internal/server/jobs/core/revenueRollup.js +1 -1
- package/dist/_internal/server/jobs/core/runJobOnce.js +1 -1
- package/dist/_internal/server/jobs/core/sellerStandingRollup.js +1 -1
- package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.js +1 -1
- package/dist/_internal/server/jobs/handlers/onCatalogueSubmittedForApproval.js +2 -2
- package/dist/_internal/shared/features/blog/schema.d.ts +12 -12
- package/dist/_internal/shared/features/brands/schema.d.ts +19 -19
- package/dist/_internal/shared/features/cart/schema.d.ts +17 -17
- package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +60 -60
- package/dist/_internal/shared/features/events/schema.d.ts +4 -4
- package/dist/_internal/shared/features/orders/schema.d.ts +8 -8
- package/dist/_internal/shared/features/products/schema.d.ts +2 -2
- package/dist/_internal/shared/features/promotions/schema.d.ts +12 -12
- package/dist/_internal/shared/features/reviews/schema.d.ts +3 -3
- package/dist/_internal/shared/features/site-settings/types.d.ts +10 -2
- package/dist/_internal/shared/features/sticker-trace/trace/segment.js +13 -2
- package/dist/_internal/shared/listing-types/feature-flags.d.ts +54 -0
- package/dist/_internal/shared/listing-types/feature-flags.js +72 -0
- package/dist/client.d.ts +225 -117
- package/dist/client.js +148 -74
- package/dist/constants/field-names.d.ts +1 -0
- package/dist/constants/field-names.js +14 -0
- package/dist/errors/error-handler.d.ts +1 -1
- package/dist/features/about/components/AboutView.js +9 -1
- package/dist/features/about/components/DeveloperView.js +8 -2
- package/dist/features/about/components/FAQPageView.js +5 -2
- package/dist/features/about/components/FeesView.js +4 -1
- package/dist/features/about/components/GstExplainerView.js +6 -1
- package/dist/features/about/components/GuidesHubView.js +5 -1
- package/dist/features/about/components/HelpPageView.js +6 -2
- package/dist/features/about/components/HowAuctionsWorkView.js +6 -2
- package/dist/features/about/components/HowCheckoutWorksView.js +6 -2
- package/dist/features/about/components/HowEmiWorksView.js +7 -2
- package/dist/features/about/components/HowOffersWorkView.js +6 -2
- package/dist/features/about/components/HowOrdersWorkView.js +6 -2
- package/dist/features/about/components/HowPayoutsWorkView.js +6 -2
- package/dist/features/about/components/HowPreOrdersWorkView.js +6 -2
- package/dist/features/about/components/HowReviewsWorkView.js +6 -2
- package/dist/features/about/components/PolicyPageView.js +6 -3
- package/dist/features/about/components/ProseHero.js +3 -1
- package/dist/features/about/components/PublicProfileView.js +6 -1
- package/dist/features/about/components/SecurityPrivacyView.js +6 -2
- package/dist/features/about/components/ShippingPolicyView.js +7 -3
- package/dist/features/about/components/SpotAFakeView.js +6 -1
- package/dist/features/about/components/TrackOrderView.js +5 -2
- package/dist/features/about/components/UnauthorizedView.js +5 -2
- package/dist/features/about/schemas/index.d.ts +18 -18
- package/dist/features/account/api/[userId]/addresses/route.js +1 -5
- package/dist/features/account/components/AddressBook.js +4 -1
- package/dist/features/account/components/AddressFilters.js +1 -1
- package/dist/features/account/components/AddressForm.js +1 -1
- package/dist/features/account/components/AddressSelectorCreate.js +2 -1
- package/dist/features/account/components/AddressesIndexListing.js +5 -1
- package/dist/features/account/components/BecomeSellerView.js +2 -1
- package/dist/features/account/components/BuyerAccountGuideView.js +6 -1
- package/dist/features/account/components/BuyerAuctionsGuideView.js +5 -1
- package/dist/features/account/components/BuyerOrdersGuideView.js +5 -1
- package/dist/features/account/components/BuyerShoppingGuideView.js +5 -1
- package/dist/features/account/components/LinkedAccountsSection.js +5 -1
- package/dist/features/account/components/NotificationBell.js +8 -1
- package/dist/features/account/components/NotificationPreferencesPanel.js +6 -1
- package/dist/features/account/components/OrderDetailView.d.ts +1 -1
- package/dist/features/account/components/OrderDetailView.js +1 -1
- package/dist/features/account/components/ProfileView.d.ts +1 -1
- package/dist/features/account/components/ProfileView.js +1 -1
- package/dist/features/account/components/UserAccountHubView.d.ts +1 -1
- package/dist/features/account/components/UserAccountHubView.js +1 -1
- package/dist/features/account/components/UserBidsView.js +5 -1
- package/dist/features/account/components/UserOffersPanel.js +9 -1
- package/dist/features/account/components/UserOrderTrackView.d.ts +1 -1
- package/dist/features/account/components/UserOrderTrackView.js +1 -1
- package/dist/features/account/components/UserOrdersView.js +6 -1
- package/dist/features/account/components/UserReturnsView.js +3 -1
- package/dist/features/account/components/UserSidebar.js +8 -1
- package/dist/features/account/schemas/index.d.ts +10 -10
- package/dist/features/addresses/repository/addresses.repository.js +1 -1
- package/dist/features/addresses/schemas/address-form.d.ts +16 -16
- package/dist/features/addresses/schemas/index.d.ts +2 -2
- package/dist/features/admin/actions/admin-actions.d.ts +3 -3
- package/dist/features/admin/actions/admin-coupon-actions.d.ts +1 -1
- package/dist/features/admin/actions/admin-read-actions.d.ts +3 -3
- package/dist/features/admin/api/bids/route.js +1 -5
- package/dist/features/admin/api/coupons/route.js +1 -5
- package/dist/features/admin/api/products/route.js +1 -5
- package/dist/features/admin/api/reviews/route.js +1 -5
- package/dist/features/admin/components/AdminActionIndexView.d.ts +1 -1
- package/dist/features/admin/components/AdminActionIndexView.js +7 -1
- package/dist/features/admin/components/AdminAdEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminAdEditorView.js +8 -1
- package/dist/features/admin/components/AdminAddressBookView.js +8 -1
- package/dist/features/admin/components/AdminAddressClustersView.js +7 -1
- package/dist/features/admin/components/AdminAddressEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminAddressEditorView.js +4 -1
- package/dist/features/admin/components/AdminAddressesView.js +6 -1
- package/dist/features/admin/components/AdminAllEventEntriesView.d.ts +1 -1
- package/dist/features/admin/components/AdminAllEventEntriesView.js +5 -1
- package/dist/features/admin/components/AdminAnalyticsGuideView.js +5 -1
- package/dist/features/admin/components/AdminAnalyticsView.js +4 -2
- package/dist/features/admin/components/AdminArtView.d.ts +1 -1
- package/dist/features/admin/components/AdminArtView.js +1 -1
- package/dist/features/admin/components/AdminAuditLogView.d.ts +1 -1
- package/dist/features/admin/components/AdminAuditLogView.js +5 -1
- package/dist/features/admin/components/AdminBeysView.d.ts +1 -1
- package/dist/features/admin/components/AdminBeysView.js +3 -1
- package/dist/features/admin/components/AdminBidsView.d.ts +1 -1
- package/dist/features/admin/components/AdminBidsView.js +7 -2
- package/dist/features/admin/components/AdminBlogEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminBlogEditorView.js +14 -2
- package/dist/features/admin/components/AdminBlogView.d.ts +1 -1
- package/dist/features/admin/components/AdminBlogView.js +2 -1
- package/dist/features/admin/components/AdminBrandEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminBrandEditorView.js +7 -2
- package/dist/features/admin/components/AdminBrandsView.d.ts +1 -1
- package/dist/features/admin/components/AdminBrandsView.js +4 -2
- package/dist/features/admin/components/AdminBundleEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminBundleEditorView.js +3 -1
- package/dist/features/admin/components/AdminBundlesView.js +7 -1
- package/dist/features/admin/components/AdminCarouselEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminCarouselEditorView.js +12 -3
- package/dist/features/admin/components/AdminCarouselGroupEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminCarouselView.d.ts +1 -1
- package/dist/features/admin/components/AdminCarouselView.js +16 -2
- package/dist/features/admin/components/AdminCartsView.d.ts +1 -1
- package/dist/features/admin/components/AdminCartsView.js +3 -1
- package/dist/features/admin/components/AdminCatalogGuideView.js +5 -1
- package/dist/features/admin/components/AdminCategoriesView.d.ts +1 -1
- package/dist/features/admin/components/AdminCategoriesView.js +3 -1
- package/dist/features/admin/components/AdminCategoryEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminCategoryEditorView.js +2 -2
- package/dist/features/admin/components/AdminClassifiedView.d.ts +1 -1
- package/dist/features/admin/components/AdminClassifiedView.js +1 -1
- package/dist/features/admin/components/AdminContactView.d.ts +1 -1
- package/dist/features/admin/components/AdminContactView.js +5 -1
- package/dist/features/admin/components/AdminContentGuideView.js +5 -1
- package/dist/features/admin/components/AdminCouponEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminCouponEditorView.js +5 -1
- package/dist/features/admin/components/AdminCouponsView.d.ts +1 -1
- package/dist/features/admin/components/AdminCouponsView.js +6 -1
- package/dist/features/admin/components/AdminDashboardView.d.ts +1 -1
- package/dist/features/admin/components/AdminDashboardView.js +2 -2
- package/dist/features/admin/components/AdminDigitalCodesView.d.ts +1 -1
- package/dist/features/admin/components/AdminDigitalCodesView.js +1 -1
- package/dist/features/admin/components/AdminFaqEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminFaqEditorView.js +12 -2
- package/dist/features/admin/components/AdminFaqsView.d.ts +1 -1
- package/dist/features/admin/components/AdminFaqsView.js +3 -1
- package/dist/features/admin/components/AdminFeatureEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminFeatureEditorView.js +6 -2
- package/dist/features/admin/components/AdminFeaturesView.d.ts +1 -1
- package/dist/features/admin/components/AdminFeaturesView.js +2 -1
- package/dist/features/admin/components/AdminFulfillmentView.js +2 -1
- package/dist/features/admin/components/AdminGatewayEventsView.d.ts +1 -1
- package/dist/features/admin/components/AdminGatewayEventsView.js +8 -1
- package/dist/features/admin/components/AdminGroupedListingsView.d.ts +1 -1
- package/dist/features/admin/components/AdminGroupedListingsView.js +7 -2
- package/dist/features/admin/components/AdminGuideHubView.js +7 -2
- package/dist/features/admin/components/AdminHistoryView.d.ts +1 -1
- package/dist/features/admin/components/AdminHistoryView.js +1 -1
- package/dist/features/admin/components/AdminIntegrationsView.js +6 -1
- package/dist/features/admin/components/AdminInvoicingView.js +6 -1
- package/dist/features/admin/components/AdminLiveView.d.ts +1 -1
- package/dist/features/admin/components/AdminLiveView.js +1 -1
- package/dist/features/admin/components/AdminMediaView.d.ts +1 -1
- package/dist/features/admin/components/AdminMediaView.js +11 -1
- package/dist/features/admin/components/AdminMoneyCasesView.d.ts +1 -1
- package/dist/features/admin/components/AdminMoneyCasesView.js +7 -1
- package/dist/features/admin/components/AdminNavEditorView.js +3 -1
- package/dist/features/admin/components/AdminNavigationView.d.ts +1 -1
- package/dist/features/admin/components/AdminNavigationView.js +10 -1
- package/dist/features/admin/components/AdminNewsletterView.d.ts +1 -1
- package/dist/features/admin/components/AdminNewsletterView.js +7 -1
- package/dist/features/admin/components/AdminNotificationsView.d.ts +1 -1
- package/dist/features/admin/components/AdminNotificationsView.js +5 -1
- package/dist/features/admin/components/AdminOffersView.d.ts +1 -1
- package/dist/features/admin/components/AdminOffersView.js +5 -1
- package/dist/features/admin/components/AdminOrderEditorView.js +8 -2
- package/dist/features/admin/components/AdminOrdersGuideView.js +4 -1
- package/dist/features/admin/components/AdminOrdersView.d.ts +1 -1
- package/dist/features/admin/components/AdminOrdersView.js +3 -1
- package/dist/features/admin/components/AdminPartsView.d.ts +1 -1
- package/dist/features/admin/components/AdminPartsView.js +3 -1
- package/dist/features/admin/components/AdminPaymentClustersView.js +7 -1
- package/dist/features/admin/components/AdminPaymentMethodsView.js +7 -1
- package/dist/features/admin/components/AdminPaymentsGuideView.js +4 -1
- package/dist/features/admin/components/AdminPayoutsView.d.ts +1 -1
- package/dist/features/admin/components/AdminPayoutsView.js +5 -1
- package/dist/features/admin/components/AdminPrizeDrawsView.d.ts +1 -1
- package/dist/features/admin/components/AdminPrizeDrawsView.js +7 -1
- package/dist/features/admin/components/AdminProductEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminProductEditorView.js +5 -2
- package/dist/features/admin/components/AdminProductsView.d.ts +1 -1
- package/dist/features/admin/components/AdminProductsView.js +5 -2
- package/dist/features/admin/components/AdminReturnRequestsView.js +3 -1
- package/dist/features/admin/components/AdminReviewsView.d.ts +1 -1
- package/dist/features/admin/components/AdminReviewsView.js +8 -1
- package/dist/features/admin/components/AdminScammersView.d.ts +1 -1
- package/dist/features/admin/components/AdminScammersView.js +5 -1
- package/dist/features/admin/components/AdminSectionsView.js +1 -1
- package/dist/features/admin/components/AdminSessionsManager.js +1 -1
- package/dist/features/admin/components/AdminSessionsView.d.ts +1 -1
- package/dist/features/admin/components/AdminSessionsView.js +6 -1
- package/dist/features/admin/components/AdminSidebar.js +7 -1
- package/dist/features/admin/components/AdminSiteConfigGuideView.js +5 -1
- package/dist/features/admin/components/AdminSiteSettingsView.d.ts +1 -1
- package/dist/features/admin/components/AdminSiteSettingsView.js +21 -5
- package/dist/features/admin/components/AdminSparesView.d.ts +1 -1
- package/dist/features/admin/components/AdminSparesView.js +1 -1
- package/dist/features/admin/components/AdminStickersView.d.ts +1 -1
- package/dist/features/admin/components/AdminStickersView.js +1 -1
- package/dist/features/admin/components/AdminStoreAddressesView.js +1 -1
- package/dist/features/admin/components/AdminStoreEditorView.js +7 -1
- package/dist/features/admin/components/AdminStoresGuideView.js +5 -1
- package/dist/features/admin/components/AdminStoresView.d.ts +1 -1
- package/dist/features/admin/components/AdminStoresView.js +4 -1
- package/dist/features/admin/components/AdminSublistingCategoryEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminSublistingCategoryEditorView.js +8 -3
- package/dist/features/admin/components/AdminSupportTicketDetailView.js +12 -1
- package/dist/features/admin/components/AdminSupportTicketsView.d.ts +1 -1
- package/dist/features/admin/components/AdminSupportTicketsView.js +4 -1
- package/dist/features/admin/components/AdminTaxCodeEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminTaxCodeEditorView.js +4 -1
- package/dist/features/admin/components/AdminTaxCodesView.d.ts +1 -1
- package/dist/features/admin/components/AdminTaxCodesView.js +1 -1
- package/dist/features/admin/components/AdminTeamGuideView.js +5 -1
- package/dist/features/admin/components/AdminTeamView.d.ts +1 -1
- package/dist/features/admin/components/AdminTeamView.js +4 -1
- package/dist/features/admin/components/AdminTesterChecklistItemEditorView.d.ts +1 -1
- package/dist/features/admin/components/AdminTesterChecklistItemEditorView.js +4 -1
- package/dist/features/admin/components/AdminTesterChecklistView.d.ts +1 -1
- package/dist/features/admin/components/AdminTesterChecklistView.js +4 -1
- package/dist/features/admin/components/AdminTopBar.js +1 -1
- package/dist/features/admin/components/AdminTrustGuideView.js +5 -1
- package/dist/features/admin/components/AdminUserEditorView.js +12 -1
- package/dist/features/admin/components/AdminUsersGuideView.js +5 -1
- package/dist/features/admin/components/AdminUsersView.d.ts +1 -1
- package/dist/features/admin/components/AdminViewCards.js +4 -1
- package/dist/features/admin/components/AdminWishlistsView.d.ts +1 -1
- package/dist/features/admin/components/AdminWishlistsView.js +1 -1
- package/dist/features/admin/components/DashboardStats.js +3 -1
- package/dist/features/admin/components/DataListingView.d.ts +1 -1
- package/dist/features/admin/components/DataListingView.js +14 -2
- package/dist/features/admin/components/DataTable.js +7 -1
- package/dist/features/admin/components/OwnerQuickActions.d.ts +7 -1
- package/dist/features/admin/components/OwnerQuickActions.js +3 -2
- package/dist/features/admin/components/QuickEditMenu.js +2 -1
- package/dist/features/admin/components/ViewAuditLogEntryModal.js +6 -1
- package/dist/features/admin/components/ViewNotificationModal.js +6 -1
- package/dist/features/admin/components/analytics/AdminAnalyticsCharts.js +2 -1
- package/dist/features/admin/components/analytics/AdminStatCard.js +3 -1
- package/dist/features/admin/components/analytics/AdminTopProductsTable.js +3 -1
- package/dist/features/admin/components/sections/adminSectionsTypes.js +1 -0
- package/dist/features/admin/constants/site-settings-tabs.d.ts +1 -1
- package/dist/features/admin/hooks/useAdminListing.d.ts +1 -1
- package/dist/features/admin/hooks/useOptimisticRowFlag.js +1 -1
- package/dist/features/admin/schemas/action-index-form.d.ts +2 -2
- package/dist/features/admin/schemas/admin-editor-forms.d.ts +12 -12
- package/dist/features/admin/schemas/admin-editor-forms.js +0 -1
- package/dist/features/admin/schemas/admin-ops-forms.d.ts +8 -8
- package/dist/features/admin/schemas/admin-user-form.d.ts +8 -8
- package/dist/features/admin/schemas/firestore.d.ts +52 -0
- package/dist/features/admin/schemas/firestore.js +20 -0
- package/dist/features/admin/schemas/nav-item-form.d.ts +8 -8
- package/dist/features/auctions/actions/bid-actions.js +1 -1
- package/dist/features/auctions/api/route.js +1 -8
- package/dist/features/auctions/components/AuctionBidsTable.js +6 -1
- package/dist/features/auctions/components/AuctionBottomActions.js +1 -1
- package/dist/features/auctions/components/AuctionDetailPageView.js +12 -9
- package/dist/features/auctions/components/AuctionFilters.js +1 -1
- package/dist/features/auctions/components/AuctionLiveStatusBadge.js +1 -1
- package/dist/features/auctions/components/AuctionsListView.js +3 -1
- package/dist/features/auctions/components/CollapsibleBidHistory.js +4 -1
- package/dist/features/auctions/components/LiveBidPrice.js +3 -1
- package/dist/features/auctions/components/LiveMinIncrement.js +1 -1
- package/dist/features/auctions/components/MarketplaceAuctionCard.d.ts +1 -1
- package/dist/features/auctions/components/MarketplaceAuctionCard.js +9 -3
- package/dist/features/auctions/components/MarketplaceAuctionGrid.d.ts +1 -1
- package/dist/features/auctions/components/MarketplaceAuctionGrid.js +3 -1
- package/dist/features/auctions/components/PlaceBidFormClient.js +8 -1
- package/dist/features/auctions/schemas/index.d.ts +34 -34
- package/dist/features/auth/components/ForgotPasswordView.js +6 -1
- package/dist/features/auth/components/Guards.js +4 -1
- package/dist/features/auth/components/LoginForm.js +7 -1
- package/dist/features/auth/components/OAuthLoadingView.js +3 -1
- package/dist/features/auth/components/RegisterForm.js +5 -1
- package/dist/features/auth/components/ResetPasswordView.js +6 -1
- package/dist/features/auth/components/SocialAuthButtons.js +4 -1
- package/dist/features/auth/components/VerifyEmailView.js +4 -1
- package/dist/features/auth/hooks/useAuth.js +1 -1
- package/dist/features/auth/schemas/index.d.ts +2 -2
- package/dist/features/before-after/api/route.js +1 -5
- package/dist/features/before-after/components/BeforeAfterGallery.js +3 -1
- package/dist/features/before-after/components/BeforeAfterSlider.js +3 -1
- package/dist/features/before-after/schemas/index.d.ts +4 -4
- package/dist/features/beys/components/BeyDetailPageView.js +7 -1
- package/dist/features/blog/actions/blog-actions.d.ts +39 -39
- package/dist/features/blog/api/route.js +1 -8
- package/dist/features/blog/components/BlogFeaturedCard.js +6 -1
- package/dist/features/blog/components/BlogFilters.js +1 -1
- package/dist/features/blog/components/BlogIndexListing.js +7 -1
- package/dist/features/blog/components/BlogIndexPageView.d.ts +2 -3
- package/dist/features/blog/components/BlogIndexPageView.js +9 -10
- package/dist/features/blog/components/BlogListView.js +6 -1
- package/dist/features/blog/components/BlogPostForm.js +9 -2
- package/dist/features/blog/components/BlogPostView.js +5 -1
- package/dist/features/blog/schemas/blog-form.d.ts +10 -10
- package/dist/features/blog/schemas/index.d.ts +80 -80
- package/dist/features/cart/actions/cart-actions.js +1 -1
- package/dist/features/cart/api/route.js +1 -5
- package/dist/features/cart/components/CartDrawer.js +6 -1
- package/dist/features/cart/components/CartGroupLineRow.js +5 -1
- package/dist/features/cart/components/CartPriceBreakdown.js +4 -1
- package/dist/features/cart/components/CartSummary.js +2 -1
- package/dist/features/cart/components/CartView.js +3 -1
- package/dist/features/cart/components/CheckoutAddressStep.js +3 -1
- package/dist/features/cart/components/CheckoutSuccessView.d.ts +1 -1
- package/dist/features/cart/components/CheckoutSuccessView.js +1 -1
- package/dist/features/cart/components/CheckoutView.js +3 -1
- package/dist/features/cart/components/PointsTenderPicker.js +3 -1
- package/dist/features/cart/components/ShippingPicker.js +4 -1
- package/dist/features/cart/components/StoreAddonsPicker.js +3 -1
- package/dist/features/cart/schemas/index.d.ts +30 -30
- package/dist/features/cart/utils/guest-cart.js +1 -5
- package/dist/features/catalogue/actions/approve-catalogue-listing.js +1 -1
- package/dist/features/catalogue/actions/list-from-catalogue.js +2 -1
- package/dist/features/catalogue/actions/submit-for-approval.js +1 -1
- package/dist/features/catalogue/components/AdminCatalogueApprovalsView.js +6 -1
- package/dist/features/catalogue/components/CatalogueItemEditorView.js +1 -1
- package/dist/features/catalogue/components/PublicCatalogueItemDetailView.js +6 -1
- package/dist/features/catalogue/components/PublicCatalogueView.js +5 -1
- package/dist/features/catalogue/components/UserCatalogueView.js +7 -1
- package/dist/features/catalogue/repository/catalogue.repository.js +1 -1
- package/dist/features/catalogue/schemas/validation.d.ts +12 -12
- package/dist/features/catalogue/utils/product-from-item.js +1 -1
- package/dist/features/categories/api/route.js +5 -23
- package/dist/features/categories/components/BrandDetailPageView.js +6 -2
- package/dist/features/categories/components/BrandDetailTabs.js +2 -1
- package/dist/features/categories/components/BreadcrumbTrail.js +4 -2
- package/dist/features/categories/components/BundleBuyNowCta.js +5 -2
- package/dist/features/categories/components/BundleCollage.js +5 -1
- package/dist/features/categories/components/BundleDetailView.js +6 -1
- package/dist/features/categories/components/BundleDynamicRuleEditor.js +6 -1
- package/dist/features/categories/components/BundleItemsPicker.js +7 -1
- package/dist/features/categories/components/BundlesListView.d.ts +2 -3
- package/dist/features/categories/components/BundlesListView.js +6 -7
- package/dist/features/categories/components/CategoriesIndexListing.js +55 -6
- package/dist/features/categories/components/CategoriesIndexPageView.d.ts +2 -3
- package/dist/features/categories/components/CategoriesIndexPageView.js +3 -33
- package/dist/features/categories/components/CategoryBundlesListing.js +8 -2
- package/dist/features/categories/components/CategoryDetailPageView.js +7 -2
- package/dist/features/categories/components/CategoryDetailTabs.js +2 -1
- package/dist/features/categories/components/CategoryFilters.js +1 -1
- package/dist/features/categories/components/CategoryForm.js +3 -1
- package/dist/features/categories/components/CategoryGrid.js +3 -1
- package/dist/features/categories/components/CategoryHighlightsAndFaqSection.js +3 -1
- package/dist/features/categories/components/CategoryProductsListing.js +8 -1
- package/dist/features/categories/components/CategorySelectorCreate.js +6 -1
- package/dist/features/categories/components/CategorySortSelect.js +4 -1
- package/dist/features/categories/components/CategoryStoresListing.js +2 -1
- package/dist/features/categories/components/CategoryTableColumns.js +6 -2
- package/dist/features/categories/components/CategoryTemplatePicker.js +4 -1
- package/dist/features/categories/components/CategoryTree.js +2 -1
- package/dist/features/categories/components/ConcernCard.js +3 -1
- package/dist/features/categories/components/ConcernGrid.js +1 -1
- package/dist/features/categories/components/PriceGuidanceHint.js +3 -1
- package/dist/features/categories/components/SubcategoryCardRow.js +4 -1
- package/dist/features/categories/constants/category-tabs.d.ts +1 -1
- package/dist/features/categories/constants/category-tabs.js +7 -0
- package/dist/features/categories/hooks/useCategories.d.ts +6 -0
- package/dist/features/categories/hooks/useCategories.js +73 -2
- package/dist/features/categories/schemas/bundle-form.d.ts +22 -22
- package/dist/features/categories/schemas/index.d.ts +100 -100
- package/dist/features/categories/types/index.d.ts +1 -1
- package/dist/features/checkout/components/CheckoutStepper.js +3 -1
- package/dist/features/classified/components/ClassifiedDetailPageView.js +9 -9
- package/dist/features/classified/components/ClassifiedFilters.js +3 -1
- package/dist/features/collections/api/route.js +1 -5
- package/dist/features/collections/components/CollectionCard.js +4 -1
- package/dist/features/collections/schemas/index.d.ts +9 -9
- package/dist/features/consultation/api/route.js +1 -5
- package/dist/features/consultation/components/ConsultationForm.js +3 -1
- package/dist/features/consultation/schemas/index.d.ts +8 -8
- package/dist/features/contact/components/ContactForm.js +5 -2
- package/dist/features/contact/components/ContactInfoSidebar.js +4 -1
- package/dist/features/contact/components/ContactPageView.js +6 -1
- package/dist/features/contact/email.js +2 -5
- package/dist/features/corporate/api/route.js +1 -5
- package/dist/features/corporate/components/CorporateInquiryForm.js +3 -1
- package/dist/features/dashboard/components/DashboardHubView.js +7 -1
- package/dist/features/digital-codes/components/DigitalCodeDetailPageView.js +8 -8
- package/dist/features/digital-codes/components/DigitalCodeFilters.js +1 -1
- package/dist/features/dispute-reasons/components/AdminDisputeReasonsView.js +4 -1
- package/dist/features/events/components/AdminEventEditorView.d.ts +1 -1
- package/dist/features/events/components/AdminEventEditorView.js +14 -3
- package/dist/features/events/components/AdminEventEntriesView.js +10 -2
- package/dist/features/events/components/AdminEventsView.d.ts +1 -1
- package/dist/features/events/components/AdminEventsView.js +2 -1
- package/dist/features/events/components/EventBanner.js +3 -1
- package/dist/features/events/components/EventCard.js +7 -1
- package/dist/features/events/components/EventDetailView.d.ts +1 -1
- package/dist/features/events/components/EventDetailView.js +1 -1
- package/dist/features/events/components/EventFilters.js +1 -1
- package/dist/features/events/components/EventFormDrawer.js +1 -1
- package/dist/features/events/components/EventInsights.js +3 -1
- package/dist/features/events/components/EventLeaderboard.js +3 -1
- package/dist/features/events/components/EventLikeButton.js +4 -1
- package/dist/features/events/components/EventLikersRail.js +5 -1
- package/dist/features/events/components/EventOfferCard.js +3 -1
- package/dist/features/events/components/EventParticipateView.js +1 -1
- package/dist/features/events/components/EventPollWidget.js +8 -1
- package/dist/features/events/components/EventRaffleEntryForm.js +3 -1
- package/dist/features/events/components/EventRaffleWinnerView.js +6 -1
- package/dist/features/events/components/EventRafflesSection.js +3 -1
- package/dist/features/events/components/EventSaleBanner.js +4 -1
- package/dist/features/events/components/EventStatusBadge.js +1 -1
- package/dist/features/events/components/EventTypeBadge.js +1 -1
- package/dist/features/events/components/EventsIndexListing.js +7 -1
- package/dist/features/events/components/EventsListPageView.d.ts +2 -3
- package/dist/features/events/components/EventsListPageView.js +11 -12
- package/dist/features/events/components/EventsListView.js +4 -1
- package/dist/features/events/components/RelatedEventsCarousel.js +3 -1
- package/dist/features/events/components/SpinWheel.js +1 -1
- package/dist/features/events/components/SpinWheelView.js +7 -1
- package/dist/features/events/schemas/event-form.d.ts +5 -0
- package/dist/features/events/schemas/event-form.js +17 -0
- package/dist/features/events/schemas/firestore.d.ts +49 -1
- package/dist/features/events/schemas/index.d.ts +184 -184
- package/dist/features/events/utils/carousel-slide.d.ts +0 -9
- package/dist/features/events/utils/carousel-slide.js +38 -1
- package/dist/features/faq/actions/faq-actions.d.ts +12 -12
- package/dist/features/faq/components/ContactCTA.js +5 -1
- package/dist/features/faq/components/FAQAccordion.js +6 -1
- package/dist/features/faq/components/FAQCategorySidebar.js +5 -1
- package/dist/features/faq/components/FAQHelpfulButtons.js +3 -1
- package/dist/features/faq/components/FAQPageContent.js +8 -1
- package/dist/features/faq/components/FAQSearchableList.js +2 -1
- package/dist/features/faq/components/FAQSortDropdown.js +4 -1
- package/dist/features/faq/components/RelatedFAQs.js +4 -1
- package/dist/features/faq/constants/help-guides.d.ts +8 -5
- package/dist/features/faq/constants/help-guides.js +9 -5
- package/dist/features/faq/schemas/index.d.ts +14 -14
- package/dist/features/filters/AsyncFacetSection.js +8 -3
- package/dist/features/filters/FilterFacetSection.js +11 -6
- package/dist/features/filters/FilterPanel.js +1 -1
- package/dist/features/filters/RangeFilter.js +8 -3
- package/dist/features/filters/SwitchFilter.js +7 -3
- package/dist/features/filters/filterUtils.d.ts +0 -2
- package/dist/features/filters/filterUtils.js +0 -4
- package/dist/features/filters/index.d.ts +1 -1
- package/dist/features/filters/index.js +1 -1
- package/dist/features/forms/Checkbox.js +7 -4
- package/dist/features/forms/Input.js +7 -5
- package/dist/features/forms/Radio.js +9 -6
- package/dist/features/forms/Select.js +5 -3
- package/dist/features/forms/Slider.js +6 -3
- package/dist/features/forms/Textarea.js +6 -3
- package/dist/features/forms/Toggle.js +6 -4
- package/dist/features/forms/index.d.ts +1 -1
- package/dist/features/forms/index.js +1 -1
- package/dist/features/forms/utils.d.ts +0 -2
- package/dist/features/forms/utils.js +0 -4
- package/dist/features/gateway-events/schemas/index.d.ts +10 -10
- package/dist/features/grouped/components/GroupedListingDetailView.js +4 -1
- package/dist/features/grouped/components/GroupedListingEditorView.js +5 -2
- package/dist/features/grouped/components/GroupedListingsCarousel.js +1 -1
- package/dist/features/grouped/schemas/grouped-listing-form.d.ts +8 -8
- package/dist/features/grouped/schemas/index.d.ts +8 -8
- package/dist/features/history/hooks/useHistory.js +1 -1
- package/dist/features/history/utils/guest-history.js +1 -5
- package/dist/features/homepage/actions/homepage-section-actions.d.ts +4 -4
- package/dist/features/homepage/components/AdSlot.js +3 -1
- package/dist/features/homepage/components/BrandsSection.js +6 -1
- package/dist/features/homepage/components/CTABannerSection.js +6 -1
- package/dist/features/homepage/components/CharacterHotspot.js +5 -1
- package/dist/features/homepage/components/CharacterHotspotForm.js +8 -1
- package/dist/features/homepage/components/CollectionCardsSection.js +4 -1
- package/dist/features/homepage/components/CustomCardsSection.js +13 -2
- package/dist/features/homepage/components/CustomerReviewsSection.js +5 -1
- package/dist/features/homepage/components/FAQSection.js +8 -1
- package/dist/features/homepage/components/FeaturedBundlesSection.d.ts +6 -1
- package/dist/features/homepage/components/FeaturedBundlesSection.js +4 -2
- package/dist/features/homepage/components/GoogleReviewsSection.js +6 -1
- package/dist/features/homepage/components/HeroCarousel.js +6 -1
- package/dist/features/homepage/components/HomepageCouponsSection.d.ts +25 -0
- package/dist/features/homepage/components/HomepageCouponsSection.js +42 -0
- package/dist/features/homepage/components/HowItWorksSection.d.ts +1 -1
- package/dist/features/homepage/components/HowItWorksSection.js +7 -1
- package/dist/features/homepage/components/MarketplaceHomepageView.js +52 -4
- package/dist/features/homepage/components/NewsletterSection.js +4 -1
- package/dist/features/homepage/components/PromoGrid.js +4 -1
- package/dist/features/homepage/components/SectionCarousel.d.ts +1 -1
- package/dist/features/homepage/components/SectionCarousel.js +6 -1
- package/dist/features/homepage/components/SecurityHighlightsSection.js +6 -1
- package/dist/features/homepage/components/ShopByCategorySection.js +7 -1
- package/dist/features/homepage/components/SocialFeedSection.js +6 -1
- package/dist/features/homepage/components/SocialPostCard.js +4 -1
- package/dist/features/homepage/components/StatsCounterSection.js +5 -1
- package/dist/features/homepage/components/TestimonialsCarousel.js +4 -1
- package/dist/features/homepage/components/TrustFeaturesSection.js +5 -1
- package/dist/features/homepage/components/WelcomeSection.js +10 -1
- package/dist/features/homepage/components/WhatsAppCommunitySection.js +8 -1
- package/dist/features/homepage/lib/section-renderer.d.ts +2 -0
- package/dist/features/homepage/lib/section-renderer.js +8 -0
- package/dist/features/homepage/schemas/firestore.d.ts +23 -2
- package/dist/features/homepage/schemas/firestore.js +2 -0
- package/dist/features/homepage/schemas/index.d.ts +133 -133
- package/dist/features/inventory/components/ReceiveStationView.js +9 -1
- package/dist/features/jobs/actions/enqueue-job.js +1 -1
- package/dist/features/layout/AppLayoutShell.d.ts +23 -1
- package/dist/features/layout/AppLayoutShell.js +13 -12
- package/dist/features/layout/AutoBreadcrumbs.js +3 -1
- package/dist/features/layout/BackToTop.js +2 -1
- package/dist/features/layout/BottomActions.js +5 -1
- package/dist/features/layout/BottomActionsContext.d.ts +1 -1
- package/dist/features/layout/BottomChrome.js +1 -1
- package/dist/features/layout/BottomNavItem.d.ts +9 -1
- package/dist/features/layout/BottomNavItem.js +20 -5
- package/dist/features/layout/BottomNavLayout.js +1 -1
- package/dist/features/layout/BottomSheet.js +4 -1
- package/dist/features/layout/Breadcrumbs.js +2 -1
- package/dist/features/layout/FooterLayout.js +5 -1
- package/dist/features/layout/LocaleSwitcher.js +1 -1
- package/dist/features/layout/NavItem.js +2 -1
- package/dist/features/layout/NavbarLayout.js +5 -1
- package/dist/features/layout/PageTabs.js +1 -1
- package/dist/features/layout/SideActionDock.js +7 -1
- package/dist/features/layout/SidebarLayout.d.ts +1 -1
- package/dist/features/layout/SidebarLayout.js +2 -1
- package/dist/features/layout/TitleBarLayout.js +9 -1
- package/dist/features/layout/index.d.ts +1 -1
- package/dist/features/live/components/LiveItemDetailPageView.js +8 -8
- package/dist/features/live/components/LiveItemFilters.js +3 -1
- package/dist/features/lottery/schemas/config-write.d.ts +10 -10
- package/dist/features/lottery/schemas/zod.d.ts +6 -6
- package/dist/features/media/MediaLightbox.js +3 -5
- package/dist/features/media/modals/ImageCropModal.js +6 -1
- package/dist/features/media/modals/ImageEditor.js +6 -1
- package/dist/features/media/modals/VideoTrimModal.js +6 -1
- package/dist/features/media/types/index.d.ts +4 -4
- package/dist/features/media/upload/MediaUploadList.js +7 -1
- package/dist/features/orders/components/OrderAddonBadges.js +2 -1
- package/dist/features/orders/components/OrderCompletionPanel.d.ts +1 -1
- package/dist/features/orders/components/OrderCompletionPanel.js +1 -1
- package/dist/features/orders/components/OrderFilters.js +1 -1
- package/dist/features/orders/components/OrderPaymentSummary.js +4 -1
- package/dist/features/orders/components/OrderProvenanceCard.js +5 -1
- package/dist/features/orders/components/OrderScopeTabs.js +1 -1
- package/dist/features/orders/components/OrderSiblingPayments.js +3 -1
- package/dist/features/orders/components/OrderStatusTimeline.js +4 -1
- package/dist/features/orders/components/OrdersList.js +4 -1
- package/dist/features/orders/components/RaiseDisputeForm.js +1 -1
- package/dist/features/orders/components/RefundHistoryTable.js +4 -1
- package/dist/features/orders/components/RefundRequestView.js +2 -2
- package/dist/features/orders/components/YourPurchaseStrip.js +5 -1
- package/dist/features/orders/schemas/index.d.ts +86 -86
- package/dist/features/parts/components/AssemblyDrawer.js +8 -1
- package/dist/features/parts/components/ModelCompositionPanel.js +5 -1
- package/dist/features/parts/components/PartDetailPageView.js +7 -1
- package/dist/features/parts/components/PartsIndexPageView.js +6 -1
- package/dist/features/parts/components/PartsSearchBox.js +5 -1
- package/dist/features/parts/schemas/firestore.d.ts +274 -0
- package/dist/features/parts/schemas/firestore.js +19 -0
- package/dist/features/payments/repository/saved-payment-methods.repository.js +1 -1
- package/dist/features/payments/schemas/index.d.ts +10 -10
- package/dist/features/points/schemas/adjust-form.d.ts +2 -2
- package/dist/features/pre-orders/api/admin/route.js +1 -5
- package/dist/features/pre-orders/components/MarketplacePreorderCard.d.ts +1 -1
- package/dist/features/pre-orders/components/MarketplacePreorderCard.js +10 -3
- package/dist/features/pre-orders/components/PreOrderActionsClient.js +6 -1
- package/dist/features/pre-orders/components/PreOrderBadge.js +2 -1
- package/dist/features/pre-orders/components/PreOrderDetailPageView.js +10 -9
- package/dist/features/pre-orders/components/PreOrderFilters.js +1 -1
- package/dist/features/pre-orders/components/PreOrdersIndexListing.js +11 -2
- package/dist/features/pre-orders/components/PreOrdersListView.js +3 -1
- package/dist/features/pre-orders/components/PreorderCard.js +1 -1
- package/dist/features/pre-orders/schemas/index.d.ts +15 -15
- package/dist/features/price-index/components/PriceIndexToolView.js +4 -1
- package/dist/features/pricing/components/AdminPricingView.js +4 -1
- package/dist/features/print/components/BoxLabelPrintView.js +5 -1
- package/dist/features/print/components/LabelProfilePicker.js +3 -1
- package/dist/features/print/components/labels.js +3 -1
- package/dist/features/products/api/route.js +1 -3
- package/dist/features/products/columns/productTableColumns.js +5 -1
- package/dist/features/products/components/ArtStickersListView.js +3 -1
- package/dist/features/products/components/AuctionDetailView.d.ts +1 -1
- package/dist/features/products/components/AuctionDetailView.js +2 -1
- package/dist/features/products/components/AuctionsIndexListing.js +10 -2
- package/dist/features/products/components/AvailabilityScopeHint.js +3 -1
- package/dist/features/products/components/AvailabilityTabs.js +1 -1
- package/dist/features/products/components/BidHistory.js +4 -1
- package/dist/features/products/components/CityCollectiblesView.js +6 -1
- package/dist/features/products/components/CompareOverlay.js +6 -1
- package/dist/features/products/components/CustomFieldsEditor.js +6 -1
- package/dist/features/products/components/CustomSectionTabContent.js +4 -6
- package/dist/features/products/components/CustomSectionsEditor.js +6 -1
- package/dist/features/products/components/FeatureBadge.js +2 -1
- package/dist/features/products/components/GroupMemberPicker.js +9 -2
- package/dist/features/products/components/GroupSettingsPanel.js +13 -2
- package/dist/features/products/components/MakeOfferButton.js +6 -1
- package/dist/features/products/components/MarketplaceBundleCard.js +6 -1
- package/dist/features/products/components/MarketplacePrizeDrawCard.js +7 -1
- package/dist/features/products/components/NonRefundableConsentModal.js +6 -1
- package/dist/features/products/components/PreOrderDetailView.d.ts +1 -1
- package/dist/features/products/components/PreOrderDetailView.js +1 -1
- package/dist/features/products/components/PrizeDrawCollage.js +6 -1
- package/dist/features/products/components/PrizeDrawDetailPageView.js +7 -8
- package/dist/features/products/components/PrizeDrawEntryActions.d.ts +1 -1
- package/dist/features/products/components/PrizeDrawEntryActions.js +8 -2
- package/dist/features/products/components/PrizeDrawWinnerMappingView.js +7 -1
- package/dist/features/products/components/PrizeDrawsIndexListing.js +8 -1
- package/dist/features/products/components/PrizeDrawsListingView.js +3 -1
- package/dist/features/products/components/PrizeDrawsSection.js +3 -1
- package/dist/features/products/components/PrizeRevealModal.js +6 -1
- package/dist/features/products/components/ProductCardMetadataSection.js +3 -1
- package/dist/features/products/components/ProductDetailActions.js +4 -1
- package/dist/features/products/components/ProductDetailPageView.js +11 -9
- package/dist/features/products/components/ProductDetailView.d.ts +1 -1
- package/dist/features/products/components/ProductDetailView.js +1 -1
- package/dist/features/products/components/ProductFeatureBadges.js +4 -1
- package/dist/features/products/components/ProductFeaturesSelector.js +3 -1
- package/dist/features/products/components/ProductFilters.js +2 -1
- package/dist/features/products/components/ProductForm.js +1 -1
- package/dist/features/products/components/ProductGalleryClient.js +4 -1
- package/dist/features/products/components/ProductGradingTab.js +4 -1
- package/dist/features/products/components/ProductGrid.d.ts +1 -1
- package/dist/features/products/components/ProductGrid.js +7 -1
- package/dist/features/products/components/ProductsIndexListing.js +11 -3
- package/dist/features/products/components/ProductsIndexPageView.js +6 -2
- package/dist/features/products/components/RelatedItemsSection.js +1 -1
- package/dist/features/products/components/RelatedProducts.js +3 -1
- package/dist/features/products/components/ShowGroupSection.js +7 -1
- package/dist/features/products/components/SparesListView.js +4 -1
- package/dist/features/products/components/SublistingCarouselSection.js +4 -1
- package/dist/features/products/components/SublistingCategorySelect.js +2 -1
- package/dist/features/products/hooks/useProducts.js +1 -1
- package/dist/features/products/repository/products.repository.js +0 -1
- package/dist/features/products/schemas/index.d.ts +70 -70
- package/dist/features/products/schemas/product-features.validators.d.ts +52 -52
- package/dist/features/promotions/actions/promotions-actions.js +22 -6
- package/dist/features/promotions/api/route.js +1 -8
- package/dist/features/promotions/components/AttachedCouponsSection.js +5 -2
- package/dist/features/promotions/components/CouponCard.js +8 -1
- package/dist/features/promotions/components/CouponCodeCopyRow.js +2 -1
- package/dist/features/promotions/components/CouponHelpDetails.js +4 -1
- package/dist/features/promotions/components/CouponsIndexListing.js +12 -1
- package/dist/features/promotions/components/PromotionsView.js +4 -1
- package/dist/features/promotions/constants/attached-coupons.d.ts +14 -0
- package/dist/features/promotions/repository/coupons.repository.js +32 -2
- package/dist/features/promotions/schemas/firestore.d.ts +33 -0
- package/dist/features/promotions/schemas/firestore.js +44 -0
- package/dist/features/promotions/schemas/index.d.ts +108 -108
- package/dist/features/reviews/components/ReviewDetailPageView.js +4 -1
- package/dist/features/reviews/components/ReviewDetailShell.js +8 -1
- package/dist/features/reviews/components/ReviewFilters.js +1 -1
- package/dist/features/reviews/components/ReviewModal.js +7 -2
- package/dist/features/reviews/components/ReviewSummary.js +4 -2
- package/dist/features/reviews/components/ReviewsIndexPageView.d.ts +2 -3
- package/dist/features/reviews/components/ReviewsIndexPageView.js +12 -13
- package/dist/features/reviews/components/ReviewsList.js +7 -2
- package/dist/features/reviews/components/ReviewsListingPanel.js +7 -1
- package/dist/features/reviews/schemas/index.d.ts +40 -40
- package/dist/features/scams/components/ScamAwarenessModal.js +7 -1
- package/dist/features/scams/components/ScamProfileView.js +11 -1
- package/dist/features/scams/constants/scammer-status-display.d.ts +1 -1
- package/dist/features/scams/schemas/index.d.ts +22 -22
- package/dist/features/scams/schemas/report-form.d.ts +4 -4
- package/dist/features/search/components/EntityTypeahead.js +5 -1
- package/dist/features/search/components/Search.js +7 -1
- package/dist/features/search/components/SearchFacetRail.js +4 -1
- package/dist/features/search/components/SearchResultsClient.js +1 -1
- package/dist/features/search/components/SearchResultsPageView.js +5 -1
- package/dist/features/seller/api/coupons/route.js +1 -5
- package/dist/features/seller/api/products/route.js +1 -5
- package/dist/features/seller/components/BulkStockModal.js +2 -1
- package/dist/features/seller/components/CategoryChipPicker.js +3 -1
- package/dist/features/seller/components/FulfillmentView.js +2 -1
- package/dist/features/seller/components/GroupInlineSelect.js +1 -1
- package/dist/features/seller/components/SellerAddressesView.js +11 -2
- package/dist/features/seller/components/SellerAnalyticsAlertsView.js +9 -1
- package/dist/features/seller/components/SellerAnalyticsView.d.ts +1 -1
- package/dist/features/seller/components/SellerAnalyticsView.js +4 -1
- package/dist/features/seller/components/SellerBidsView.js +8 -2
- package/dist/features/seller/components/SellerBundlesView.js +7 -1
- package/dist/features/seller/components/SellerCouponEditorView.js +5 -1
- package/dist/features/seller/components/SellerCouponsView.d.ts +1 -1
- package/dist/features/seller/components/SellerCouponsView.js +5 -1
- package/dist/features/seller/components/SellerDashboardView.d.ts +1 -1
- package/dist/features/seller/components/SellerDashboardView.js +4 -1
- package/dist/features/seller/components/SellerFeaturesView.js +8 -1
- package/dist/features/seller/components/SellerGoogleReviewsView.js +7 -1
- package/dist/features/seller/components/SellerGroupedListingsView.js +4 -1
- package/dist/features/seller/components/SellerGuideView.d.ts +1 -1
- package/dist/features/seller/components/SellerGuideView.js +1 -1
- package/dist/features/seller/components/SellerListingTypeView.js +4 -1
- package/dist/features/seller/components/SellerOffersView.d.ts +1 -1
- package/dist/features/seller/components/SellerOffersView.js +4 -1
- package/dist/features/seller/components/SellerOrdersView.js +8 -1
- package/dist/features/seller/components/SellerPayoutHistoryTable.js +2 -1
- package/dist/features/seller/components/SellerPayoutMethodsView.js +7 -1
- package/dist/features/seller/components/SellerPayoutRequestView.js +8 -1
- package/dist/features/seller/components/SellerPayoutSettingsView.js +3 -2
- package/dist/features/seller/components/SellerPayoutStats.js +1 -1
- package/dist/features/seller/components/SellerPayoutsView.d.ts +1 -1
- package/dist/features/seller/components/SellerPayoutsView.js +10 -1
- package/dist/features/seller/components/SellerProductShell.js +1 -2
- package/dist/features/seller/components/SellerProductsCards.js +7 -1
- package/dist/features/seller/components/SellerProductsFilterDrawer.js +4 -1
- package/dist/features/seller/components/SellerProductsView.js +7 -1
- package/dist/features/seller/components/SellerReviewsView.js +11 -1
- package/dist/features/seller/components/SellerShippingConfigsView.js +6 -1
- package/dist/features/seller/components/SellerShippingView.js +2 -2
- package/dist/features/seller/components/SellerSidebar.js +7 -1
- package/dist/features/seller/components/SellerStoreCategoriesView.js +5 -1
- package/dist/features/seller/components/SellerStoreSetupView.js +2 -1
- package/dist/features/seller/components/SellerStorefrontView.js +1 -1
- package/dist/features/seller/components/SellerSupportView.d.ts +1 -1
- package/dist/features/seller/components/SellerSupportView.js +4 -1
- package/dist/features/seller/components/SellersListView.d.ts +1 -1
- package/dist/features/seller/components/SellersListView.js +1 -1
- package/dist/features/seller/components/analytics/SellerAnalyticsStats.js +1 -1
- package/dist/features/seller/components/analytics/SellerRevenueChart.js +2 -1
- package/dist/features/seller/components/analytics/SellerTopProducts.js +3 -1
- package/dist/features/seller/hooks/useSellerListingData.js +0 -30
- package/dist/features/seller/schemas/coupon-form.d.ts +50 -50
- package/dist/features/seller/schemas/index.d.ts +22 -22
- package/dist/features/seller/schemas/order-forms.d.ts +12 -12
- package/dist/features/server-errors/schemas/index.d.ts +4 -4
- package/dist/features/shell/CommandPalette.js +7 -1
- package/dist/features/shell/FormShell.js +5 -1
- package/dist/features/shell/SectionForm.js +4 -1
- package/dist/features/shipments/components/AdminShipmentEditorView.js +9 -1
- package/dist/features/shipments/components/AdminShipmentLotItemsView.js +11 -1
- package/dist/features/shipments/components/AdminShipmentProjectionsView.js +10 -1
- package/dist/features/shipments/components/AdminShipmentsView.d.ts +1 -1
- package/dist/features/shipments/components/AdminShipmentsView.js +3 -1
- package/dist/features/shipments/components/ShipmentItemLinkModal.js +7 -1
- package/dist/features/shipments/schemas/validation.d.ts +44 -44
- package/dist/features/site-settings/components/ActionPermissionsManager.js +7 -2
- package/dist/features/site-settings/components/NavPermissionsManager.js +6 -2
- package/dist/features/site-settings/components/ThemeManagerView.js +9 -1
- package/dist/features/status-history/components/StatusTimeline.js +4 -1
- package/dist/features/sticker-trace/components/StickerPrintPanel.js +6 -1
- package/dist/features/sticker-trace/components/StickerRetryPanel.js +4 -1
- package/dist/features/sticker-trace/components/StickerRunHistoryPanel.js +5 -1
- package/dist/features/sticker-trace/components/StickerTraceStudio.js +5 -1
- package/dist/features/store-extensions/schemas/admin-notification-form.d.ts +5 -5
- package/dist/features/store-extensions/schemas/custom-role-form.d.ts +12 -12
- package/dist/features/store-extensions/schemas/item-request-create-form.d.ts +2 -2
- package/dist/features/store-extensions/schemas/listing-template-form.d.ts +13 -13
- package/dist/features/store-extensions/schemas/payout-method-form.d.ts +10 -10
- package/dist/features/store-extensions/schemas/shipping-config-form.d.ts +12 -12
- package/dist/features/store-extensions/schemas/store-category-form.d.ts +10 -10
- package/dist/features/stores/api/[storeSlug]/auctions/route.js +1 -10
- package/dist/features/stores/api/[storeSlug]/products/route.js +1 -10
- package/dist/features/stores/components/InteractiveStoreCard.js +15 -2
- package/dist/features/stores/components/SellerStandingPanel.js +3 -1
- package/dist/features/stores/components/SellerTierBadge.js +2 -1
- package/dist/features/stores/components/StoreAboutView.js +5 -1
- package/dist/features/stores/components/StoreAddressSelectorCreate.js +2 -1
- package/dist/features/stores/components/StoreAuctionsListing.js +8 -1
- package/dist/features/stores/components/StoreAuctionsView.d.ts +1 -1
- package/dist/features/stores/components/StoreAuctionsView.js +1 -1
- package/dist/features/stores/components/StoreBundlesPageView.js +1 -1
- package/dist/features/stores/components/StoreCapabilitiesGuideView.js +6 -1
- package/dist/features/stores/components/StoreClassifiedsListing.js +7 -1
- package/dist/features/stores/components/StoreCreateForm.js +3 -1
- package/dist/features/stores/components/StoreDetailLayoutView.js +5 -2
- package/dist/features/stores/components/StoreDigitalCodesListing.js +7 -1
- package/dist/features/stores/components/StoreFilters.js +1 -1
- package/dist/features/stores/components/StoreFinanceGuideView.js +6 -1
- package/dist/features/stores/components/StoreGuideHubView.js +7 -2
- package/dist/features/stores/components/StoreHeader.js +6 -1
- package/dist/features/stores/components/StoreListingsGuideView.js +6 -1
- package/dist/features/stores/components/StoreLiveItemsListing.js +7 -1
- package/dist/features/stores/components/StoreNavTabs.js +3 -1
- package/dist/features/stores/components/StoreOrdersGuideView.js +7 -1
- package/dist/features/stores/components/StorePreOrdersListing.js +7 -1
- package/dist/features/stores/components/StoreProductsListing.js +8 -1
- package/dist/features/stores/components/StoreProductsView.js +5 -1
- package/dist/features/stores/components/StoreReviewsView.d.ts +1 -1
- package/dist/features/stores/components/StoreReviewsView.js +1 -1
- package/dist/features/stores/components/StoreSettingsGuideView.js +6 -1
- package/dist/features/stores/components/StoresIndexListing.js +9 -2
- package/dist/features/stores/components/StoresIndexPageView.d.ts +2 -3
- package/dist/features/stores/components/StoresIndexPageView.js +10 -11
- package/dist/features/stores/hooks/useStoreAddressSelector.d.ts +1 -1
- package/dist/features/stores/schemas/firestore.d.ts +27 -0
- package/dist/features/stores/schemas/firestore.js +2 -0
- package/dist/features/stores/schemas/index.d.ts +28 -28
- package/dist/features/support/schemas/index.d.ts +14 -14
- package/dist/features/support/schemas/ticket-create-form.d.ts +4 -4
- package/dist/features/tax-codes/schemas/tax-code-form.d.ts +4 -4
- package/dist/features/tax-codes/schemas/tax-codes.validators.d.ts +10 -10
- package/dist/features/tester/actions/checklist-item-actions.d.ts +3 -3
- package/dist/features/tester/components/AdminTesterFeedbackIssuesView.js +7 -1
- package/dist/features/tester/components/AdminTesterFeedbackListView.js +5 -1
- package/dist/features/tester/components/AdminTesterFeedbackReportView.js +2 -1
- package/dist/features/tester/components/AdminTesterFeedbackView.js +5 -1
- package/dist/features/tester/components/TesterChecklistStepRow.js +8 -1
- package/dist/features/tester/components/TesterFeedbackChart.js +3 -1
- package/dist/features/tester/schemas/checklist-item-form.d.ts +2 -2
- package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +8 -1
- package/dist/features/wishlist/components/WishlistCapWatcher.js +1 -1
- package/dist/features/wishlist/components/WishlistHeartButton.js +2 -1
- package/dist/features/wishlist/components/WishlistPage.js +5 -1
- package/dist/features/wishlist/components/WishlistView.js +3 -1
- package/dist/features/wishlist/hooks/useWishlistToggle.js +1 -1
- package/dist/features/wishlist/hooks/useWishlistWithGuest.d.ts +1 -1
- package/dist/features/wishlist/schemas/index.d.ts +2 -2
- package/dist/features/wishlist/utils/guest-wishlist.js +1 -5
- package/dist/index.d.ts +2496 -2452
- package/dist/index.js +1549 -1500
- package/dist/next/api/routeHandler.js +1 -1
- package/dist/providers/db-firebase/admin-app-lite.js +14 -2
- package/dist/providers/db-firebase/admin.js +8 -2
- package/dist/react/hooks/use-action-dispatch.d.ts +1 -1
- package/dist/react/hooks/use-action-dispatch.js +1 -1
- package/dist/react/hooks/useBrowsePageFlags.d.ts +26 -0
- package/dist/react/hooks/useBrowsePageFlags.js +18 -0
- package/dist/schemas/registry.d.ts +492 -487
- package/dist/schemas/sieve.d.ts +5 -5
- package/dist/schemas/webhooks/google-oauth.d.ts +4 -4
- package/dist/security/csp.d.ts +32 -2
- package/dist/security/csp.js +32 -2
- package/dist/server.d.ts +369 -362
- package/dist/server.js +355 -351
- package/dist/styles.css +1 -1
- package/dist/tailwind-utilities.css +1 -1
- package/dist/ui/components/Button.js +1 -1
- package/dist/ui/components/Chart.js +0 -1
- package/dist/ui/components/HorizontalScroller.js +27 -2
- package/dist/ui/components/Repeater.js +4 -1
- package/dist/ui/rich-text/RichText.js +1 -3
- package/dist/ui/rich-text/RichTextRenderer.js +1 -3
- package/dist/utils/browser-storage.d.ts +14 -0
- package/dist/utils/browser-storage.js +18 -0
- package/dist/utils/classnames.d.ts +19 -0
- package/dist/utils/classnames.js +21 -0
- package/dist/utils/search-params.d.ts +44 -0
- package/dist/utils/search-params.js +46 -0
- package/dist/utils/sieve-builder.d.ts +13 -0
- package/dist/utils/sieve-builder.js +22 -0
- package/dist/utils/string.formatter.d.ts +12 -0
- package/dist/utils/string.formatter.js +17 -0
- package/dist/validation/schemas.d.ts +26 -26
- package/package.json +90 -2
|
@@ -91,7 +91,6 @@ function useChartPalette(ref) {
|
|
|
91
91
|
const series = Array.from({ length: CHART_MAX_SERIES }, (_, i) => v(`--chart-${i + 1}`));
|
|
92
92
|
if (!series[0] && !warnedMissingStylesheet) {
|
|
93
93
|
warnedMissingStylesheet = true;
|
|
94
|
-
// eslint-disable-next-line no-console
|
|
95
94
|
console.warn("[appkit] <Chart> found no --chart-* custom properties. " +
|
|
96
95
|
'Import the stylesheet once at your app root: import "@mohasinac/appkit/styles". ' +
|
|
97
96
|
"Rendering with recharts' default colours until then.");
|
|
@@ -171,10 +171,35 @@ export function HorizontalScroller({ children, className = "", gap = 16, snapToI
|
|
|
171
171
|
* which is what every other grid in the app already does. A full rail is
|
|
172
172
|
* unaffected — `min` is a no-op once itemCount >= perView.
|
|
173
173
|
*/
|
|
174
|
-
const
|
|
174
|
+
const full = resolvePerView(perView, w);
|
|
175
|
+
const count = Math.min(full, Math.max(itemCount, 1));
|
|
175
176
|
if (count > 0) {
|
|
176
177
|
setColCount(count);
|
|
177
|
-
|
|
178
|
+
/*
|
|
179
|
+
* 🛑 CLAMPED AT BOTH ENDS, because each end was a real reported defect
|
|
180
|
+
* and fixing only one produced the other.
|
|
181
|
+
*
|
|
182
|
+
* Dividing by `count` alone overshot: with one item the card took the
|
|
183
|
+
* ENTIRE row, so the homepage's lone pre-order rendered at 1208px
|
|
184
|
+
* against the 288px of every other card on the page — a full-bleed
|
|
185
|
+
* billboard whose image dominated the viewport. A product card is
|
|
186
|
+
* designed around a column, not a banner.
|
|
187
|
+
*
|
|
188
|
+
* So a card is NEVER wider than it would be in a full rail. A short
|
|
189
|
+
* rail lays its items out at their natural column width and simply
|
|
190
|
+
* leaves the remaining columns empty, which is what the reporter
|
|
191
|
+
* asked for and what every fixed grid on the page already does — a
|
|
192
|
+
* lone pre-order is now the same size as a lone featured product.
|
|
193
|
+
*
|
|
194
|
+
* 🛑 Both terms subtract the inter-item gaps, and they must, or the
|
|
195
|
+
* cap lands a few px off the real column width and the lone card
|
|
196
|
+
* reads as subtly misaligned against the grid above it. On a phone
|
|
197
|
+
* `full` is 1, so `maxItemWidth` collapses to `w` and a single
|
|
198
|
+
* full-width card is correct there — no special case needed.
|
|
199
|
+
*/
|
|
200
|
+
const widthAtCount = (w - (count - 1) * gap) / count;
|
|
201
|
+
const maxItemWidth = (w - (full - 1) * gap) / full;
|
|
202
|
+
setItemWidth(Math.min(widthAtCount, maxItemWidth));
|
|
178
203
|
}
|
|
179
204
|
updateExtents();
|
|
180
205
|
});
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Button
|
|
3
|
+
import { Button } from "./Button.js";
|
|
4
|
+
import { Div } from "./Div.js";
|
|
5
|
+
import { Stack } from "./Layout.js";
|
|
6
|
+
import { Text } from "./Typography.js";
|
|
4
7
|
export function Repeater({ rows, onChange, blank, addLabel, renderRow, max, }) {
|
|
5
8
|
return (_jsxs(Stack, { gap: "sm", children: [rows.map((row, i) => (_jsx(Div, { rounded: "lg", border: "default", padding: "sm", children: _jsxs(Stack, { gap: "xs", children: [renderRow(row, (patch) => onChange(rows.map((r, j) => (j === i ? { ...r, ...patch } : r)))), _jsx(Button, { variant: "ghost", size: "sm", onClick: () => onChange(rows.filter((_, j) => j !== i)), children: "Remove" })] }) }, i))), rows.length < max ? (_jsx(Button, { variant: "secondary", size: "sm", onClick: () => onChange([...rows, blank()]), children: addLabel })) : (_jsxs(Text, { size: "xs", color: "muted", children: ["Maximum of ", max, " reached."] }))] }));
|
|
6
9
|
}
|
|
@@ -215,7 +215,5 @@ export function RichText({ html, className = "", proseClass = "prose max-w-none
|
|
|
215
215
|
if (segments.length === 1 && segments[0].type === "html") {
|
|
216
216
|
return (_jsx(Div, { ref: ref, className: `appkit-rich-text ${proseClass} ${className}`, dangerouslySetInnerHTML: { __html: segments[0].html } }));
|
|
217
217
|
}
|
|
218
|
-
return (_jsx(Div, { ref: ref, className: `appkit-rich-text ${proseClass} ${className}`, children: segments.map((seg, i) => seg.type === "html" ? (_jsx("div", { className: "appkit-rich-text__seg", dangerouslySetInnerHTML: { __html: seg.html } }, `h${i}`)) : (
|
|
219
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
220
|
-
_jsx(ChartFromJson, { json: seg.json }, `c${i}`))) }));
|
|
218
|
+
return (_jsx(Div, { ref: ref, className: `appkit-rich-text ${proseClass} ${className}`, children: segments.map((seg, i) => seg.type === "html" ? (_jsx("div", { className: "appkit-rich-text__seg", dangerouslySetInnerHTML: { __html: seg.html } }, `h${i}`)) : (_jsx(ChartFromJson, { json: seg.json }, `c${i}`))) }));
|
|
221
219
|
}
|
|
@@ -41,7 +41,5 @@ export function RichTextRenderer({ html, className = "", proseClass = "prose max
|
|
|
41
41
|
if (segments.length === 1 && segments[0].type === "html") {
|
|
42
42
|
return (_jsx("div", { className: wrapperClass, dangerouslySetInnerHTML: { __html: segments[0].html } }));
|
|
43
43
|
}
|
|
44
|
-
return (_jsx("div", { className: wrapperClass, children: segments.map((seg, i) => seg.type === "html" ? (_jsx("div", { className: "appkit-rich-text__seg", dangerouslySetInnerHTML: { __html: seg.html } }, `h${i}`)) : (
|
|
45
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
46
|
-
_jsx(ChartFromJson, { json: seg.json }, `c${i}`))) }));
|
|
44
|
+
return (_jsx("div", { className: wrapperClass, children: segments.map((seg, i) => seg.type === "html" ? (_jsx("div", { className: "appkit-rich-text__seg", dangerouslySetInnerHTML: { __html: seg.html } }, `h${i}`)) : (_jsx(ChartFromJson, { json: seg.json }, `c${i}`))) }));
|
|
47
45
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Guest-state storage access.
|
|
3
|
+
*
|
|
4
|
+
* The guest cart, guest wishlist and guest history each carried a byte-identical private
|
|
5
|
+
* copy of this before 2026-10-24. All three are `"use client"` modules that are nonetheless
|
|
6
|
+
* imported into module graphs the server renders, which is why the `typeof window` guard is
|
|
7
|
+
* the entire point: reading `window.localStorage` during SSR throws, and the three features
|
|
8
|
+
* that need it are the three a signed-out visitor touches on first paint.
|
|
9
|
+
*
|
|
10
|
+
* Returns `null` rather than throwing or returning a stub — a caller must decide what "no
|
|
11
|
+
* storage" means for it, and a silent no-op stub would make a failed write indistinguishable
|
|
12
|
+
* from a successful one (Root Cause #59).
|
|
13
|
+
*/
|
|
14
|
+
export declare function getDefaultStorage(): Storage | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Guest-state storage access.
|
|
3
|
+
*
|
|
4
|
+
* The guest cart, guest wishlist and guest history each carried a byte-identical private
|
|
5
|
+
* copy of this before 2026-10-24. All three are `"use client"` modules that are nonetheless
|
|
6
|
+
* imported into module graphs the server renders, which is why the `typeof window` guard is
|
|
7
|
+
* the entire point: reading `window.localStorage` during SSR throws, and the three features
|
|
8
|
+
* that need it are the three a signed-out visitor touches on first paint.
|
|
9
|
+
*
|
|
10
|
+
* Returns `null` rather than throwing or returning a stub — a caller must decide what "no
|
|
11
|
+
* storage" means for it, and a silent no-op stub would make a failed write indistinguishable
|
|
12
|
+
* from a successful one (Root Cause #59).
|
|
13
|
+
*/
|
|
14
|
+
export function getDefaultStorage() {
|
|
15
|
+
if (typeof window === "undefined")
|
|
16
|
+
return null;
|
|
17
|
+
return window.localStorage;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Join class names, dropping falsy entries.
|
|
3
|
+
*
|
|
4
|
+
* 🛑 This is deliberately NOT named `cn`, and it is deliberately not the same function as
|
|
5
|
+
* the `cn` exported from `style/tailwind`. That one runs `twMerge`, which DEDUPLICATES
|
|
6
|
+
* conflicting Tailwind utilities and therefore picks a winner between them. Both Tailwind
|
|
7
|
+
* configs here set `important: true`, and Root Cause #79 and #106 are both about which of
|
|
8
|
+
* two competing classes wins — so quietly moving twenty components from a plain join onto
|
|
9
|
+
* `twMerge` is a behaviour change in exactly the area that has already cost this project
|
|
10
|
+
* two incidents.
|
|
11
|
+
*
|
|
12
|
+
* Three features had a byte-identical private copy of the plain join before 2026-10-24
|
|
13
|
+
* (`features/filters/filterUtils.ts`, `features/forms/utils.ts`,
|
|
14
|
+
* `features/media/MediaLightbox.tsx`). This is that copy, once.
|
|
15
|
+
*
|
|
16
|
+
* Use `cn` from `style/tailwind` when conflict resolution is wanted; use this when the
|
|
17
|
+
* caller is simply assembling a list.
|
|
18
|
+
*/
|
|
19
|
+
export declare function joinClasses(...classes: Array<string | undefined | null | false>): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Join class names, dropping falsy entries.
|
|
3
|
+
*
|
|
4
|
+
* 🛑 This is deliberately NOT named `cn`, and it is deliberately not the same function as
|
|
5
|
+
* the `cn` exported from `style/tailwind`. That one runs `twMerge`, which DEDUPLICATES
|
|
6
|
+
* conflicting Tailwind utilities and therefore picks a winner between them. Both Tailwind
|
|
7
|
+
* configs here set `important: true`, and Root Cause #79 and #106 are both about which of
|
|
8
|
+
* two competing classes wins — so quietly moving twenty components from a plain join onto
|
|
9
|
+
* `twMerge` is a behaviour change in exactly the area that has already cost this project
|
|
10
|
+
* two incidents.
|
|
11
|
+
*
|
|
12
|
+
* Three features had a byte-identical private copy of the plain join before 2026-10-24
|
|
13
|
+
* (`features/filters/filterUtils.ts`, `features/forms/utils.ts`,
|
|
14
|
+
* `features/media/MediaLightbox.tsx`). This is that copy, once.
|
|
15
|
+
*
|
|
16
|
+
* Use `cn` from `style/tailwind` when conflict resolution is wanted; use this when the
|
|
17
|
+
* caller is simply assembling a list.
|
|
18
|
+
*/
|
|
19
|
+
export function joinClasses(...classes) {
|
|
20
|
+
return classes.filter(Boolean).join(" ");
|
|
21
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* URL search-param readers for route handlers.
|
|
3
|
+
*
|
|
4
|
+
* These were hand-copied into 27 route files before 2026-10-24 — `numParam` into 18
|
|
5
|
+
* (16 byte-identical) and `param` into 9 (all 9 identical). They are here so there is one
|
|
6
|
+
* definition, per the Duplication Decision Framework's "≥3 copies" and "same prop surface"
|
|
7
|
+
* triggers; `audit-duplicate-helpers` keeps it that way.
|
|
8
|
+
*
|
|
9
|
+
* Import this module directly (Root Cause #18) — these are deliberately NOT re-exported
|
|
10
|
+
* from `appkit/src/index.ts`, which is already 10k lines and is what the cold build parses.
|
|
11
|
+
*/
|
|
12
|
+
/** Read a raw search param. `null` when absent — never `""` for a missing key. */
|
|
13
|
+
export declare function param(url: URL, key: string): string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Read a numeric search param, falling back when absent or unparseable.
|
|
16
|
+
*
|
|
17
|
+
* 🛑 Uses `Number`, not `parseInt`, so `"12abc"` is rejected to the fallback rather than
|
|
18
|
+
* silently read as 12. That is the behaviour all 16 identical copies had, and a page size
|
|
19
|
+
* of 12 derived from a typo'd param is worse than the default.
|
|
20
|
+
*/
|
|
21
|
+
export declare function numParam(url: URL, key: string, fallback: number): number;
|
|
22
|
+
/**
|
|
23
|
+
* Read an integer search param where "absent" and "zero" must stay distinguishable.
|
|
24
|
+
*
|
|
25
|
+
* Separate from `numParam` on purpose: a caller that needs to know whether the param was
|
|
26
|
+
* supplied at all cannot get that from a fallback. `parseInt` here is also deliberate —
|
|
27
|
+
* this one is for tier/depth values where a trailing fragment is tolerable.
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Next's `searchParams` prop shape — a repeated query key arrives as an array.
|
|
31
|
+
*
|
|
32
|
+
* Six index page views declared this identically before 2026-10-24.
|
|
33
|
+
*/
|
|
34
|
+
export type SearchParamsRecord = Record<string, string | string[]>;
|
|
35
|
+
/**
|
|
36
|
+
* Read one value out of Next's `searchParams`, taking the first of a repeated key.
|
|
37
|
+
*
|
|
38
|
+
* 🛑 Returns `""` for absent, NOT `null` — unlike `param` above, which reads a `URL`. The
|
|
39
|
+
* asymmetry is deliberate and matches what all six copies did: these feed filter builders
|
|
40
|
+
* that treat empty string as "no filter", and a `null` there would print as "null" in a
|
|
41
|
+
* Sieve clause and match nothing (Root Cause #62's shape).
|
|
42
|
+
*/
|
|
43
|
+
export declare function firstParam(params: SearchParamsRecord, key: string): string;
|
|
44
|
+
export declare function intParamOrNull(url: URL, key: string): number | null;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* URL search-param readers for route handlers.
|
|
3
|
+
*
|
|
4
|
+
* These were hand-copied into 27 route files before 2026-10-24 — `numParam` into 18
|
|
5
|
+
* (16 byte-identical) and `param` into 9 (all 9 identical). They are here so there is one
|
|
6
|
+
* definition, per the Duplication Decision Framework's "≥3 copies" and "same prop surface"
|
|
7
|
+
* triggers; `audit-duplicate-helpers` keeps it that way.
|
|
8
|
+
*
|
|
9
|
+
* Import this module directly (Root Cause #18) — these are deliberately NOT re-exported
|
|
10
|
+
* from `appkit/src/index.ts`, which is already 10k lines and is what the cold build parses.
|
|
11
|
+
*/
|
|
12
|
+
/** Read a raw search param. `null` when absent — never `""` for a missing key. */
|
|
13
|
+
export function param(url, key) {
|
|
14
|
+
return url.searchParams.get(key);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Read a numeric search param, falling back when absent or unparseable.
|
|
18
|
+
*
|
|
19
|
+
* 🛑 Uses `Number`, not `parseInt`, so `"12abc"` is rejected to the fallback rather than
|
|
20
|
+
* silently read as 12. That is the behaviour all 16 identical copies had, and a page size
|
|
21
|
+
* of 12 derived from a typo'd param is worse than the default.
|
|
22
|
+
*/
|
|
23
|
+
export function numParam(url, key, fallback) {
|
|
24
|
+
const v = url.searchParams.get(key);
|
|
25
|
+
const n = v !== null ? Number(v) : NaN;
|
|
26
|
+
return Number.isFinite(n) ? n : fallback;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Read one value out of Next's `searchParams`, taking the first of a repeated key.
|
|
30
|
+
*
|
|
31
|
+
* 🛑 Returns `""` for absent, NOT `null` — unlike `param` above, which reads a `URL`. The
|
|
32
|
+
* asymmetry is deliberate and matches what all six copies did: these feed filter builders
|
|
33
|
+
* that treat empty string as "no filter", and a `null` there would print as "null" in a
|
|
34
|
+
* Sieve clause and match nothing (Root Cause #62's shape).
|
|
35
|
+
*/
|
|
36
|
+
export function firstParam(params, key) {
|
|
37
|
+
const v = params[key];
|
|
38
|
+
return Array.isArray(v) ? (v[0] ?? "") : (v ?? "");
|
|
39
|
+
}
|
|
40
|
+
export function intParamOrNull(url, key) {
|
|
41
|
+
const v = url.searchParams.get(key);
|
|
42
|
+
if (v === null)
|
|
43
|
+
return null;
|
|
44
|
+
const n = Number.parseInt(v, 10);
|
|
45
|
+
return Number.isFinite(n) ? n : null;
|
|
46
|
+
}
|
|
@@ -34,3 +34,16 @@ export declare function expandSieveParam(field: string, value: string | null, op
|
|
|
34
34
|
/** Join Sieve clauses with comma (AND) — drops falsy values */
|
|
35
35
|
export declare function sieveAnd(...clauses: (string | null | undefined | false)[]): string;
|
|
36
36
|
export { sortBy } from "../constants/sort";
|
|
37
|
+
/**
|
|
38
|
+
* Keep only the Sieve clauses whose field is allow-listed, dropping the rest silently.
|
|
39
|
+
*
|
|
40
|
+
* 🛑 "Silently" is the correct behaviour here and is not Root Cause #59. `sieve.ts` sets
|
|
41
|
+
* `throwExceptions: false`, so an un-allowlisted field is *already* dropped one layer down —
|
|
42
|
+
* this function exists so the drop happens where the allow-list is declared rather than
|
|
43
|
+
* inside the query adapter, where Root Cause #62 showed it turns a scoped page into an
|
|
44
|
+
* unfiltered one. A raw `f=` is attacker-controlled input, so rejecting the request would
|
|
45
|
+
* also make a probe distinguishable from a valid query.
|
|
46
|
+
*
|
|
47
|
+
* Three route files carried a byte-identical private copy before 2026-10-24.
|
|
48
|
+
*/
|
|
49
|
+
export declare function validateSieveFilters(raw: string, allowedFields: ReadonlySet<string>): string;
|
|
@@ -63,3 +63,25 @@ export function sieveAnd(...clauses) {
|
|
|
63
63
|
return clauses.filter(Boolean).join(",");
|
|
64
64
|
}
|
|
65
65
|
export { sortBy } from "../constants/sort.js";
|
|
66
|
+
/**
|
|
67
|
+
* Keep only the Sieve clauses whose field is allow-listed, dropping the rest silently.
|
|
68
|
+
*
|
|
69
|
+
* 🛑 "Silently" is the correct behaviour here and is not Root Cause #59. `sieve.ts` sets
|
|
70
|
+
* `throwExceptions: false`, so an un-allowlisted field is *already* dropped one layer down —
|
|
71
|
+
* this function exists so the drop happens where the allow-list is declared rather than
|
|
72
|
+
* inside the query adapter, where Root Cause #62 showed it turns a scoped page into an
|
|
73
|
+
* unfiltered one. A raw `f=` is attacker-controlled input, so rejecting the request would
|
|
74
|
+
* also make a probe distinguishable from a valid query.
|
|
75
|
+
*
|
|
76
|
+
* Three route files carried a byte-identical private copy before 2026-10-24.
|
|
77
|
+
*/
|
|
78
|
+
export function validateSieveFilters(raw, allowedFields) {
|
|
79
|
+
return raw
|
|
80
|
+
.split(",")
|
|
81
|
+
.map((c) => c.trim())
|
|
82
|
+
.filter((c) => {
|
|
83
|
+
const m = c.match(/^([^<>=!@]+)\s*(?:==|!=|<=|>=|<|>|@=\*?)/);
|
|
84
|
+
return m ? allowedFields.has(m[1].trim()) : false;
|
|
85
|
+
})
|
|
86
|
+
.join(",");
|
|
87
|
+
}
|
|
@@ -19,3 +19,15 @@ export declare function proseMirrorToHtml(value: string): string;
|
|
|
19
19
|
* Supports ProseMirror JSON strings, existing HTML, and plain text.
|
|
20
20
|
*/
|
|
21
21
|
export declare function normalizeRichTextHtml(value: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* Normalize a description field of unknown shape into HTML, for a detail page.
|
|
24
|
+
*
|
|
25
|
+
* Every listing-type detail view reads `product.description`, which is typed loosely
|
|
26
|
+
* because the field holds a plain string on older documents and ProseMirror JSON on newer
|
|
27
|
+
* ones. Seven views had a byte-identical private copy of this before 2026-10-24.
|
|
28
|
+
*
|
|
29
|
+
* 🛑 `JSON.stringify` on a non-string is the fallback, not the intent — it exists so a
|
|
30
|
+
* document carrying an unexpected shape renders *something* legible instead of
|
|
31
|
+
* `[object Object]`. `normalizeRichTextHtml` then decides whether that is already markup.
|
|
32
|
+
*/
|
|
33
|
+
export declare function toDescriptionHtml(raw: unknown): string;
|
|
@@ -161,3 +161,20 @@ export function normalizeRichTextHtml(value) {
|
|
|
161
161
|
}
|
|
162
162
|
return `<p>${escapeHtml(normalized).replace(/\r?\n/g, "<br />")}</p>`;
|
|
163
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Normalize a description field of unknown shape into HTML, for a detail page.
|
|
166
|
+
*
|
|
167
|
+
* Every listing-type detail view reads `product.description`, which is typed loosely
|
|
168
|
+
* because the field holds a plain string on older documents and ProseMirror JSON on newer
|
|
169
|
+
* ones. Seven views had a byte-identical private copy of this before 2026-10-24.
|
|
170
|
+
*
|
|
171
|
+
* 🛑 `JSON.stringify` on a non-string is the fallback, not the intent — it exists so a
|
|
172
|
+
* document carrying an unexpected shape renders *something* legible instead of
|
|
173
|
+
* `[object Object]`. `normalizeRichTextHtml` then decides whether that is already markup.
|
|
174
|
+
*/
|
|
175
|
+
export function toDescriptionHtml(raw) {
|
|
176
|
+
if (!raw)
|
|
177
|
+
return "";
|
|
178
|
+
const s = typeof raw === "string" ? raw : JSON.stringify(raw);
|
|
179
|
+
return normalizeRichTextHtml(s);
|
|
180
|
+
}
|
|
@@ -6,15 +6,15 @@ export declare const paginationQuerySchema: z.ZodObject<{
|
|
|
6
6
|
sortOrder: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
7
7
|
search: z.ZodOptional<z.ZodString>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
page: number;
|
|
10
9
|
limit: number;
|
|
10
|
+
page: number;
|
|
11
11
|
sortOrder: "desc" | "asc";
|
|
12
12
|
search?: string | undefined;
|
|
13
13
|
sortBy?: string | undefined;
|
|
14
14
|
}, {
|
|
15
|
+
limit?: number | undefined;
|
|
15
16
|
search?: string | undefined;
|
|
16
17
|
page?: number | undefined;
|
|
17
|
-
limit?: number | undefined;
|
|
18
18
|
sortBy?: string | undefined;
|
|
19
19
|
sortOrder?: "desc" | "asc" | undefined;
|
|
20
20
|
}>;
|
|
@@ -134,8 +134,8 @@ export declare const cropDataSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
134
134
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
135
135
|
minHeight: z.ZodOptional<z.ZodNumber>;
|
|
136
136
|
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
height: number;
|
|
138
137
|
width: number;
|
|
138
|
+
height: number;
|
|
139
139
|
x: number;
|
|
140
140
|
y: number;
|
|
141
141
|
sourceUrl: string;
|
|
@@ -144,11 +144,11 @@ export declare const cropDataSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
144
144
|
minWidth?: number | undefined;
|
|
145
145
|
rotation?: number | undefined;
|
|
146
146
|
outputFormat?: "webp" | "png" | "jpeg" | undefined;
|
|
147
|
-
quality?: number | undefined;
|
|
148
147
|
outputFolder?: string | undefined;
|
|
148
|
+
quality?: number | undefined;
|
|
149
149
|
}, {
|
|
150
|
-
height: number;
|
|
151
150
|
width: number;
|
|
151
|
+
height: number;
|
|
152
152
|
x: number;
|
|
153
153
|
y: number;
|
|
154
154
|
sourceUrl: string;
|
|
@@ -157,11 +157,11 @@ export declare const cropDataSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
157
157
|
minWidth?: number | undefined;
|
|
158
158
|
rotation?: number | undefined;
|
|
159
159
|
outputFormat?: "webp" | "png" | "jpeg" | undefined;
|
|
160
|
-
quality?: number | undefined;
|
|
161
160
|
outputFolder?: string | undefined;
|
|
161
|
+
quality?: number | undefined;
|
|
162
162
|
}>, {
|
|
163
|
-
height: number;
|
|
164
163
|
width: number;
|
|
164
|
+
height: number;
|
|
165
165
|
x: number;
|
|
166
166
|
y: number;
|
|
167
167
|
sourceUrl: string;
|
|
@@ -170,11 +170,11 @@ export declare const cropDataSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
170
170
|
minWidth?: number | undefined;
|
|
171
171
|
rotation?: number | undefined;
|
|
172
172
|
outputFormat?: "webp" | "png" | "jpeg" | undefined;
|
|
173
|
-
quality?: number | undefined;
|
|
174
173
|
outputFolder?: string | undefined;
|
|
174
|
+
quality?: number | undefined;
|
|
175
175
|
}, {
|
|
176
|
-
height: number;
|
|
177
176
|
width: number;
|
|
177
|
+
height: number;
|
|
178
178
|
x: number;
|
|
179
179
|
y: number;
|
|
180
180
|
sourceUrl: string;
|
|
@@ -183,11 +183,11 @@ export declare const cropDataSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
183
183
|
minWidth?: number | undefined;
|
|
184
184
|
rotation?: number | undefined;
|
|
185
185
|
outputFormat?: "webp" | "png" | "jpeg" | undefined;
|
|
186
|
-
quality?: number | undefined;
|
|
187
186
|
outputFolder?: string | undefined;
|
|
187
|
+
quality?: number | undefined;
|
|
188
188
|
}>, {
|
|
189
|
-
height: number;
|
|
190
189
|
width: number;
|
|
190
|
+
height: number;
|
|
191
191
|
x: number;
|
|
192
192
|
y: number;
|
|
193
193
|
sourceUrl: string;
|
|
@@ -196,11 +196,11 @@ export declare const cropDataSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
196
196
|
minWidth?: number | undefined;
|
|
197
197
|
rotation?: number | undefined;
|
|
198
198
|
outputFormat?: "webp" | "png" | "jpeg" | undefined;
|
|
199
|
-
quality?: number | undefined;
|
|
200
199
|
outputFolder?: string | undefined;
|
|
200
|
+
quality?: number | undefined;
|
|
201
201
|
}, {
|
|
202
|
-
height: number;
|
|
203
202
|
width: number;
|
|
203
|
+
height: number;
|
|
204
204
|
x: number;
|
|
205
205
|
y: number;
|
|
206
206
|
sourceUrl: string;
|
|
@@ -209,11 +209,11 @@ export declare const cropDataSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
209
209
|
minWidth?: number | undefined;
|
|
210
210
|
rotation?: number | undefined;
|
|
211
211
|
outputFormat?: "webp" | "png" | "jpeg" | undefined;
|
|
212
|
-
quality?: number | undefined;
|
|
213
212
|
outputFolder?: string | undefined;
|
|
213
|
+
quality?: number | undefined;
|
|
214
214
|
}>, {
|
|
215
|
-
height: number;
|
|
216
215
|
width: number;
|
|
216
|
+
height: number;
|
|
217
217
|
x: number;
|
|
218
218
|
y: number;
|
|
219
219
|
sourceUrl: string;
|
|
@@ -222,11 +222,11 @@ export declare const cropDataSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
222
222
|
minWidth?: number | undefined;
|
|
223
223
|
rotation?: number | undefined;
|
|
224
224
|
outputFormat?: "webp" | "png" | "jpeg" | undefined;
|
|
225
|
-
quality?: number | undefined;
|
|
226
225
|
outputFolder?: string | undefined;
|
|
226
|
+
quality?: number | undefined;
|
|
227
227
|
}, {
|
|
228
|
-
height: number;
|
|
229
228
|
width: number;
|
|
229
|
+
height: number;
|
|
230
230
|
x: number;
|
|
231
231
|
y: number;
|
|
232
232
|
sourceUrl: string;
|
|
@@ -235,8 +235,8 @@ export declare const cropDataSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
235
235
|
minWidth?: number | undefined;
|
|
236
236
|
rotation?: number | undefined;
|
|
237
237
|
outputFormat?: "webp" | "png" | "jpeg" | undefined;
|
|
238
|
-
quality?: number | undefined;
|
|
239
238
|
outputFolder?: string | undefined;
|
|
239
|
+
quality?: number | undefined;
|
|
240
240
|
}>;
|
|
241
241
|
export declare const trimDataSchema: z.ZodEffects<z.ZodObject<{
|
|
242
242
|
sourceUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -247,32 +247,32 @@ export declare const trimDataSchema: z.ZodEffects<z.ZodObject<{
|
|
|
247
247
|
quality: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
248
248
|
}, "strip", z.ZodTypeAny, {
|
|
249
249
|
startTime: number;
|
|
250
|
-
endTime: number;
|
|
251
250
|
sourceUrl: string;
|
|
251
|
+
endTime: number;
|
|
252
252
|
outputFormat?: "mp4" | "webm" | undefined;
|
|
253
|
-
quality?: "medium" | "high" | "low" | undefined;
|
|
254
253
|
outputFolder?: string | undefined;
|
|
254
|
+
quality?: "low" | "high" | "medium" | undefined;
|
|
255
255
|
}, {
|
|
256
256
|
startTime: number;
|
|
257
|
-
endTime: number;
|
|
258
257
|
sourceUrl: string;
|
|
258
|
+
endTime: number;
|
|
259
259
|
outputFormat?: "mp4" | "webm" | undefined;
|
|
260
|
-
quality?: "medium" | "high" | "low" | undefined;
|
|
261
260
|
outputFolder?: string | undefined;
|
|
261
|
+
quality?: "low" | "high" | "medium" | undefined;
|
|
262
262
|
}>, {
|
|
263
263
|
startTime: number;
|
|
264
|
-
endTime: number;
|
|
265
264
|
sourceUrl: string;
|
|
265
|
+
endTime: number;
|
|
266
266
|
outputFormat?: "mp4" | "webm" | undefined;
|
|
267
|
-
quality?: "medium" | "high" | "low" | undefined;
|
|
268
267
|
outputFolder?: string | undefined;
|
|
268
|
+
quality?: "low" | "high" | "medium" | undefined;
|
|
269
269
|
}, {
|
|
270
270
|
startTime: number;
|
|
271
|
-
endTime: number;
|
|
272
271
|
sourceUrl: string;
|
|
272
|
+
endTime: number;
|
|
273
273
|
outputFormat?: "mp4" | "webm" | undefined;
|
|
274
|
-
quality?: "medium" | "high" | "low" | undefined;
|
|
275
274
|
outputFolder?: string | undefined;
|
|
275
|
+
quality?: "low" | "high" | "medium" | undefined;
|
|
276
276
|
}>;
|
|
277
277
|
export declare function validateRequestBody<T>(schema: z.ZodSchema<T>, body: unknown): {
|
|
278
278
|
success: true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mohasinac/appkit",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.66.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -193,6 +193,94 @@
|
|
|
193
193
|
"./features/sticker-trace/server": {
|
|
194
194
|
"types": "./dist/features/sticker-trace/server.d.ts",
|
|
195
195
|
"import": "./dist/features/sticker-trace/server.js"
|
|
196
|
+
},
|
|
197
|
+
"./checkout/lanes": {
|
|
198
|
+
"types": "./dist/_internal/shared/checkout/lanes.d.ts",
|
|
199
|
+
"import": "./dist/_internal/shared/checkout/lanes.js"
|
|
200
|
+
},
|
|
201
|
+
"./checkout/line-members": {
|
|
202
|
+
"types": "./dist/_internal/shared/checkout/line-members.d.ts",
|
|
203
|
+
"import": "./dist/_internal/shared/checkout/line-members.js"
|
|
204
|
+
},
|
|
205
|
+
"./fees/explain": {
|
|
206
|
+
"types": "./dist/_internal/shared/fees/explain.d.ts",
|
|
207
|
+
"import": "./dist/_internal/shared/fees/explain.js"
|
|
208
|
+
},
|
|
209
|
+
"./fees/buyer-facing": {
|
|
210
|
+
"types": "./dist/_internal/shared/features/site-settings/fees.d.ts",
|
|
211
|
+
"import": "./dist/_internal/shared/features/site-settings/fees.js"
|
|
212
|
+
},
|
|
213
|
+
"./emi/schedule": {
|
|
214
|
+
"types": "./dist/_internal/shared/features/emi/schedule.d.ts",
|
|
215
|
+
"import": "./dist/_internal/shared/features/emi/schedule.js"
|
|
216
|
+
},
|
|
217
|
+
"./listing-types/registry": {
|
|
218
|
+
"types": "./dist/_internal/shared/listing-types/_registry.d.ts",
|
|
219
|
+
"import": "./dist/_internal/shared/listing-types/_registry.js"
|
|
220
|
+
},
|
|
221
|
+
"./actions/registry": {
|
|
222
|
+
"types": "./dist/_internal/shared/actions/action-registry.d.ts",
|
|
223
|
+
"import": "./dist/_internal/shared/actions/action-registry.js"
|
|
224
|
+
},
|
|
225
|
+
"./history/types": {
|
|
226
|
+
"types": "./dist/_internal/shared/history/types.d.ts",
|
|
227
|
+
"import": "./dist/_internal/shared/history/types.js"
|
|
228
|
+
},
|
|
229
|
+
"./orders/config": {
|
|
230
|
+
"types": "./dist/_internal/shared/features/orders/config.d.ts",
|
|
231
|
+
"import": "./dist/_internal/shared/features/orders/config.js"
|
|
232
|
+
},
|
|
233
|
+
"./media/limits": {
|
|
234
|
+
"types": "./dist/_internal/shared/media/limits.d.ts",
|
|
235
|
+
"import": "./dist/_internal/shared/media/limits.js"
|
|
236
|
+
},
|
|
237
|
+
"./site-settings/public": {
|
|
238
|
+
"types": "./dist/_internal/shared/features/site-settings/types.d.ts",
|
|
239
|
+
"import": "./dist/_internal/shared/features/site-settings/types.js"
|
|
240
|
+
},
|
|
241
|
+
"./categories/bundle-copy": {
|
|
242
|
+
"types": "./dist/_internal/shared/features/categories/bundle-copy.d.ts",
|
|
243
|
+
"import": "./dist/_internal/shared/features/categories/bundle-copy.js"
|
|
244
|
+
},
|
|
245
|
+
"./admin/integrations": {
|
|
246
|
+
"types": "./dist/_internal/shared/features/admin/integrations.d.ts",
|
|
247
|
+
"import": "./dist/_internal/shared/features/admin/integrations.js"
|
|
248
|
+
},
|
|
249
|
+
"./layout/nav-types": {
|
|
250
|
+
"types": "./dist/_internal/shared/features/layout/index.d.ts",
|
|
251
|
+
"import": "./dist/_internal/shared/features/layout/index.js"
|
|
252
|
+
},
|
|
253
|
+
"./views/maintenance": {
|
|
254
|
+
"types": "./dist/_internal/client/features/maintenance/index.d.ts",
|
|
255
|
+
"import": "./dist/_internal/client/features/maintenance/index.js"
|
|
256
|
+
},
|
|
257
|
+
"./views/digital-code-reveal": {
|
|
258
|
+
"types": "./dist/_internal/client/features/digital-code/CodeRevealPanel.d.ts",
|
|
259
|
+
"import": "./dist/_internal/client/features/digital-code/CodeRevealPanel.js"
|
|
260
|
+
},
|
|
261
|
+
"./views/dashboard-layout": {
|
|
262
|
+
"types": "./dist/_internal/client/features/layout/DashboardLayoutClient.d.ts",
|
|
263
|
+
"import": "./dist/_internal/client/features/layout/DashboardLayoutClient.js"
|
|
264
|
+
},
|
|
265
|
+
"./views/role-guard": {
|
|
266
|
+
"types": "./dist/_internal/client/features/layout/RoleGuard.d.ts",
|
|
267
|
+
"import": "./dist/_internal/client/features/layout/RoleGuard.js"
|
|
268
|
+
},
|
|
269
|
+
"./views/lottery-admin-edit": {
|
|
270
|
+
"types": "./dist/_internal/client/features/lottery/LotteryAdminEditView.d.ts",
|
|
271
|
+
"import": "./dist/_internal/client/features/lottery/LotteryAdminEditView.js"
|
|
272
|
+
},
|
|
273
|
+
"./views/lottery-admin-slot": {
|
|
274
|
+
"types": "./dist/_internal/client/features/lottery/LotteryAdminSlotView.d.ts",
|
|
275
|
+
"import": "./dist/_internal/client/features/lottery/LotteryAdminSlotView.js"
|
|
276
|
+
},
|
|
277
|
+
"./views/lottery-pull-form": {
|
|
278
|
+
"types": "./dist/_internal/client/features/lottery/LotteryPullForm.d.ts",
|
|
279
|
+
"import": "./dist/_internal/client/features/lottery/LotteryPullForm.js"
|
|
280
|
+
},
|
|
281
|
+
"./views/tour-provider": {
|
|
282
|
+
"types": "./dist/_internal/client/features/tour/TourProvider.d.ts",
|
|
283
|
+
"import": "./dist/_internal/client/features/tour/TourProvider.js"
|
|
196
284
|
}
|
|
197
285
|
},
|
|
198
286
|
"files": [
|
|
@@ -234,7 +322,7 @@
|
|
|
234
322
|
"scripts": {
|
|
235
323
|
"postinstall": "node scripts/dedupe-peer-deps.mjs",
|
|
236
324
|
"build": "node scripts/dedupe-peer-deps.mjs && node -e \"const fs=require('fs');for(const t of ['tsconfig.build.tsbuildinfo','dist']){try{fs.rmSync(t,{recursive:true})}catch(e){}}\" && tsc -p tsconfig.build.json && node scripts/copy-assets.mjs && node scripts/fix-esm-extensions.mjs && tailwindcss -i src/tailwind-input.css -o dist/tailwind-utilities.css --minify && node scripts/bundle-css.mjs && node scripts/verify-css-build.mjs && node scripts/verify-esm-dist.mjs --quick && node scripts/write-build-stamp.mjs",
|
|
237
|
-
"prepublishOnly": "npm run build",
|
|
325
|
+
"prepublishOnly": "node scripts/prepublish-gate.mjs && npm run build",
|
|
238
326
|
"watch": "concurrently --kill-others --restart-tries 0 --names \"ts,css\" \"tsc -p tsconfig.build.json --watch\" \"npm run watch:css\"",
|
|
239
327
|
"watch:css": "tailwindcss -i src/tailwind-input.css -o dist/tailwind-utilities.css --watch",
|
|
240
328
|
"audit": "node scripts/audit-violations.mjs",
|