@mohasinac/appkit 4.9.5 → 4.11.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/_internal/client/features/layout/DashboardLayoutClient.d.ts +6 -1
- package/dist/_internal/client/features/layout/DashboardLayoutClient.js +4 -1
- package/dist/_internal/client/features/lottery/LotteryPullForm.d.ts +1 -1
- package/dist/_internal/client/features/lottery/LotteryPullForm.js +2 -2
- package/dist/_internal/server/features/admin/daily-digest-actions.d.ts +18 -0
- package/dist/_internal/server/features/admin/daily-digest-actions.js +37 -0
- package/dist/_internal/server/features/auctions/actions.js +3 -2
- package/dist/_internal/server/features/auctions/service.d.ts +4 -3
- package/dist/_internal/server/features/auctions/service.js +6 -6
- package/dist/_internal/server/features/audit-log/actions.d.ts +25 -0
- package/dist/_internal/server/features/audit-log/actions.js +38 -0
- package/dist/_internal/server/features/brands/actions.js +0 -2
- package/dist/_internal/server/features/brands/og.d.ts +4 -1
- package/dist/_internal/server/features/brands/og.js +1 -1
- package/dist/_internal/server/features/bundles/data.d.ts +9 -0
- package/dist/_internal/server/features/bundles/data.js +14 -0
- package/dist/_internal/server/features/bundles/index.d.ts +1 -1
- package/dist/_internal/server/features/bundles/index.js +1 -1
- package/dist/_internal/server/features/catalogue/og.d.ts +20 -0
- package/dist/_internal/server/features/catalogue/og.js +27 -0
- package/dist/_internal/server/features/grouped/data.d.ts +16 -0
- package/dist/_internal/server/features/grouped/data.js +50 -1
- package/dist/_internal/server/features/grouped/index.d.ts +1 -1
- package/dist/_internal/server/features/grouped/index.js +1 -1
- package/dist/_internal/server/features/orders/actions.js +9 -0
- package/dist/_internal/server/features/orders/adapters.js +25 -0
- package/dist/_internal/server/features/products/data.d.ts +23 -0
- package/dist/_internal/server/features/products/data.js +159 -0
- package/dist/_internal/server/features/products/index.d.ts +1 -1
- package/dist/_internal/server/features/products/index.js +1 -1
- package/dist/_internal/server/functions/scheduled.d.ts +3 -1
- package/dist/_internal/server/functions/scheduled.js +17 -1
- package/dist/_internal/server/jobs/core/dailyStatusDigest.d.ts +40 -0
- package/dist/_internal/server/jobs/core/dailyStatusDigest.js +164 -0
- package/dist/_internal/server/jobs/core/hardBanCascade.js +11 -0
- package/dist/_internal/server/jobs/core/testerSandboxCleanup.d.ts +1 -0
- package/dist/_internal/server/jobs/core/testerSandboxCleanup.js +4 -1
- package/dist/_internal/server/jobs/core/testerSandboxRefresh.d.ts +12 -0
- package/dist/_internal/server/jobs/core/testerSandboxRefresh.js +85 -0
- package/dist/_internal/server/jobs/core/whatsappNotify.js +16 -0
- package/dist/_internal/server/jobs/handlers/dailyStatusDigest.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/dailyStatusDigest.js +4 -0
- package/dist/_internal/server/jobs/handlers/index.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/index.js +3 -0
- package/dist/_internal/server/jobs/handlers/testerSandboxRefresh.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/testerSandboxRefresh.js +2 -0
- package/dist/_internal/server/notifications/channel-health.d.ts +27 -0
- package/dist/_internal/server/notifications/channel-health.js +101 -0
- package/dist/_internal/shared/features/auctions/config.d.ts +20 -0
- package/dist/_internal/shared/features/auctions/config.js +31 -1
- package/dist/_internal/shared/features/brands/schema.d.ts +0 -6
- package/dist/_internal/shared/features/brands/schema.js +0 -1
- package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +7 -0
- package/dist/_internal/shared/features/categories/bundle-schemas.js +3 -0
- package/dist/_internal/shared/features/orders/schema.d.ts +8 -8
- package/dist/_internal/shared/listing-types/art/config.d.ts +1 -1
- package/dist/_internal/shared/listing-types/art/config.js +1 -1
- package/dist/_internal/shared/listing-types/classified/config.d.ts +1 -1
- package/dist/_internal/shared/listing-types/classified/config.js +1 -1
- package/dist/_internal/shared/listing-types/digital-code/config.d.ts +1 -1
- package/dist/_internal/shared/listing-types/digital-code/config.js +1 -1
- package/dist/_internal/shared/listing-types/live/config.d.ts +1 -1
- package/dist/_internal/shared/listing-types/live/config.js +1 -1
- package/dist/_internal/shared/listing-types/prize-draw/config.d.ts +1 -1
- package/dist/_internal/shared/listing-types/prize-draw/config.js +1 -1
- package/dist/_internal/shared/listing-types/stickers/config.d.ts +1 -1
- package/dist/_internal/shared/listing-types/stickers/config.js +1 -1
- package/dist/client.d.ts +21 -12
- package/dist/client.js +14 -7
- package/dist/constants/api-endpoints.d.ts +9 -9
- package/dist/constants/api-endpoints.js +3 -3
- package/dist/contracts/client-auth.d.ts +3 -7
- package/dist/contracts/email.d.ts +1 -0
- package/dist/features/account/components/AddressForm.js +24 -2
- package/dist/features/account/components/BecomeSellerView.d.ts +1 -2
- package/dist/features/account/components/BecomeSellerView.js +1 -1
- package/dist/features/account/components/NotificationBell.js +1 -1
- package/dist/features/account/components/UserBidsView.d.ts +1 -0
- package/dist/features/account/components/UserBidsView.js +47 -0
- package/dist/features/account/components/UserOrdersView.d.ts +4 -11
- package/dist/features/account/components/UserOrdersView.js +54 -4
- package/dist/features/account/components/UserReturnsView.d.ts +4 -9
- package/dist/features/account/components/UserReturnsView.js +37 -3
- package/dist/features/account/components/index.d.ts +3 -2
- package/dist/features/account/components/index.js +1 -0
- package/dist/features/admin/actions/admin-actions.js +22 -0
- package/dist/features/admin/actions/admin-coupon-actions.js +10 -0
- package/dist/features/admin/actions/notification-actions.js +4 -3
- package/dist/features/admin/components/AdminAdsView.d.ts +2 -3
- package/dist/features/admin/components/AdminAdsView.js +86 -89
- package/dist/features/admin/components/AdminAllEventEntriesView.js +18 -3
- package/dist/features/admin/components/AdminAuditLogView.d.ts +11 -0
- package/dist/features/admin/components/AdminAuditLogView.js +95 -0
- package/dist/features/admin/components/AdminBlogEditorView.js +37 -3
- package/dist/features/admin/components/AdminBrandEditorView.js +10 -6
- package/dist/features/admin/components/AdminBundleEditorView.js +18 -2
- package/dist/features/admin/components/AdminCarouselEditorView.js +2 -2
- package/dist/features/admin/components/AdminCarouselGroupEditorView.js +2 -2
- package/dist/features/admin/components/AdminCartsView.js +34 -4
- package/dist/features/admin/components/AdminCategoryEditorView.js +5 -4
- package/dist/features/admin/components/AdminCouponEditorView.js +2 -2
- package/dist/features/admin/components/AdminFaqEditorView.js +2 -2
- package/dist/features/admin/components/AdminHistoryView.js +11 -1
- package/dist/features/admin/components/AdminNotificationsView.js +27 -1
- package/dist/features/admin/components/AdminOrderEditorView.d.ts +10 -1
- package/dist/features/admin/components/AdminOrderEditorView.js +4 -3
- package/dist/features/admin/components/AdminOrdersView.js +92 -24
- package/dist/features/admin/components/AdminPayoutMarkPaidModal.d.ts +7 -0
- package/dist/features/admin/components/AdminPayoutMarkPaidModal.js +47 -0
- package/dist/features/admin/components/AdminPayoutsView.js +15 -31
- package/dist/features/admin/components/AdminProductEditorView.js +26 -3
- package/dist/features/admin/components/AdminSiteSettingsView.js +31 -4
- package/dist/features/admin/components/AdminStoreAddressesView.js +22 -2
- package/dist/features/admin/components/AdminStoresView.js +7 -0
- package/dist/features/admin/components/AdminSublistingCategoryEditorView.js +2 -2
- package/dist/features/admin/components/AdminTesterChecklistItemEditorView.js +2 -2
- package/dist/features/admin/components/AdminUserEditorView.d.ts +2 -2
- package/dist/features/admin/components/AdminUserEditorView.js +4 -2
- package/dist/features/admin/components/AdminUsersView.js +1 -1
- package/dist/features/admin/components/AdminWishlistsView.js +14 -1
- package/dist/features/admin/components/DataListingView.d.ts +2 -2
- package/dist/features/admin/components/ViewAuditLogEntryModal.d.ts +19 -0
- package/dist/features/admin/components/ViewAuditLogEntryModal.js +22 -0
- package/dist/features/admin/components/ViewNotificationModal.d.ts +21 -0
- package/dist/features/admin/components/ViewNotificationModal.js +15 -0
- package/dist/features/admin/components/analytics/AdminPageViewsReportView.d.ts +4 -7
- package/dist/features/admin/components/analytics/AdminPageViewsReportView.js +56 -36
- package/dist/features/admin/components/index.d.ts +8 -1
- package/dist/features/admin/components/index.js +4 -0
- package/dist/features/admin/constants/filter-tabs.d.ts +49 -0
- package/dist/features/admin/constants/filter-tabs.js +27 -0
- package/dist/features/admin/hooks/useAdminListing.d.ts +6 -0
- package/dist/features/admin/hooks/useAdminListing.js +3 -1
- package/dist/features/admin/hooks/useAdminListingData.d.ts +9 -1
- package/dist/features/admin/hooks/useAdminListingData.js +9 -2
- package/dist/features/admin/repository/site-settings.repository.d.ts +5 -0
- package/dist/features/admin/schemas/firestore.d.ts +21 -0
- package/dist/features/admin/schemas/firestore.js +6 -0
- package/dist/features/analytics/types.d.ts +1 -1
- package/dist/features/analytics/types.js +8 -0
- package/dist/features/auctions/actions/bid-actions.js +4 -1
- package/dist/features/auctions/components/AuctionBottomActions.d.ts +2 -1
- package/dist/features/auctions/components/AuctionBottomActions.js +14 -1
- package/dist/features/auctions/components/AuctionDetailPageView.js +21 -9
- package/dist/features/auctions/components/LiveMinIncrement.d.ts +18 -0
- package/dist/features/auctions/components/LiveMinIncrement.js +17 -0
- package/dist/features/auctions/components/PlaceBidFormClient.d.ts +5 -2
- package/dist/features/auctions/components/PlaceBidFormClient.js +7 -3
- package/dist/features/auctions/schemas/index.d.ts +5 -0
- package/dist/features/audit-log/repository/audit-log.repository.d.ts +45 -0
- package/dist/features/audit-log/repository/audit-log.repository.js +30 -0
- package/dist/features/audit-log/schemas/firestore.d.ts +59 -0
- package/dist/features/audit-log/schemas/firestore.js +35 -0
- package/dist/features/auth/actions/index.d.ts +0 -1
- package/dist/features/auth/actions/index.js +0 -1
- package/dist/features/auth/hooks/useAuth.d.ts +8 -35
- package/dist/features/auth/hooks/useAuth.js +21 -37
- package/dist/features/auth/permissions/constants.d.ts +1 -1
- package/dist/features/auth/permissions/constants.js +2 -0
- package/dist/features/blog/schemas/index.d.ts +32 -0
- package/dist/features/catalogue/components/AdminCatalogueApprovalsView.js +31 -3
- package/dist/features/catalogue/components/CatalogueItemEditorView.js +2 -1
- package/dist/features/catalogue/components/PublicCatalogueItemDetailView.d.ts +11 -0
- package/dist/features/catalogue/components/PublicCatalogueItemDetailView.js +33 -0
- package/dist/features/catalogue/components/PublicCatalogueView.js +2 -1
- package/dist/features/catalogue/index.d.ts +2 -0
- package/dist/features/catalogue/index.js +1 -0
- package/dist/features/categories/components/BrandDetailPageView.js +14 -12
- package/dist/features/categories/components/BundleDetailView.d.ts +3 -1
- package/dist/features/categories/components/BundleDetailView.js +3 -2
- package/dist/features/categories/components/CategoryDetailPageView.js +7 -3
- package/dist/features/categories/components/CategoryHighlightsAndFaqSection.d.ts +14 -0
- package/dist/features/categories/components/CategoryHighlightsAndFaqSection.js +22 -0
- package/dist/features/categories/components/CategoryProductsView.d.ts +1 -5
- package/dist/features/categories/components/CategoryProductsView.js +1 -1
- package/dist/features/categories/components/CategorySelectorCreate.js +16 -2
- package/dist/features/categories/schemas/firestore.d.ts +19 -2
- package/dist/features/categories/schemas/index.d.ts +24 -3
- package/dist/features/categories/schemas/index.js +3 -1
- package/dist/features/categories/types/index.d.ts +7 -0
- package/dist/features/checkout/actions/checkout-value-otp-actions.d.ts +17 -3
- package/dist/features/checkout/actions/checkout-value-otp-actions.js +101 -22
- package/dist/features/classified/components/ClassifiedContactSellerPanel.d.ts +12 -0
- package/dist/features/classified/components/ClassifiedContactSellerPanel.js +49 -0
- package/dist/features/classified/components/ClassifiedDetailPageView.d.ts +7 -0
- package/dist/features/classified/components/ClassifiedDetailPageView.js +69 -0
- package/dist/features/contact/components/ContactForm.js +17 -4
- package/dist/features/contact/components/ContactPageView.js +8 -2
- package/dist/features/contact/email.d.ts +1 -0
- package/dist/features/contact/email.js +3 -0
- package/dist/features/digital-codes/components/DigitalCodeDetailPageView.d.ts +19 -0
- package/dist/features/digital-codes/components/DigitalCodeDetailPageView.js +79 -0
- package/dist/features/events/components/AdminEventEditorView.js +54 -2
- package/dist/features/events/components/AdminEventEntriesView.d.ts +2 -16
- package/dist/features/events/components/AdminEventEntriesView.js +56 -89
- package/dist/features/events/components/EventFormDrawer.js +5 -1
- package/dist/features/events/components/EventRaffleEntryForm.d.ts +1 -3
- package/dist/features/events/components/EventRaffleEntryForm.js +1 -1
- package/dist/features/events/schemas/index.d.ts +22 -0
- package/dist/features/grouped/components/GroupedListingsCarousel.d.ts +13 -0
- package/dist/features/grouped/components/GroupedListingsCarousel.js +31 -0
- package/dist/features/grouped/repository/grouped-listings.repository.d.ts +12 -0
- package/dist/features/grouped/repository/grouped-listings.repository.js +34 -0
- package/dist/features/homepage/components/CharacterHotspotForm.js +202 -187
- package/dist/features/homepage/components/SectionCarousel.d.ts +1 -7
- package/dist/features/homepage/components/SectionCarousel.js +1 -1
- package/dist/features/layout/BottomActions.js +4 -3
- package/dist/features/layout/BottomActionsContext.d.ts +10 -0
- package/dist/features/layout/BottomActionsContext.js +5 -1
- package/dist/features/layout/TitleBarLayout.d.ts +1 -1
- package/dist/features/layout/TitleBarLayout.js +3 -3
- package/dist/features/layout/hooks/useBottomActions.d.ts +2 -0
- package/dist/features/layout/hooks/useBottomActions.js +4 -1
- package/dist/features/live/components/LiveItemDetailPageView.d.ts +9 -0
- package/dist/features/live/components/LiveItemDetailPageView.js +74 -0
- package/dist/features/media/MediaImage.js +39 -3
- package/dist/features/media/MediaVideo.js +17 -1
- package/dist/features/media/types/index.d.ts +10 -0
- package/dist/features/media/types/index.js +1 -0
- package/dist/features/media/upload/MediaUploadField.d.ts +7 -1
- package/dist/features/media/upload/MediaUploadField.js +11 -7
- package/dist/features/media/upload/video-poster.d.ts +2 -0
- package/dist/features/media/upload/video-poster.js +16 -1
- package/dist/features/media/upload/video-poster.test.js +1 -1
- package/dist/features/orders/components/OrderStatusTimeline.d.ts +12 -0
- package/dist/features/orders/components/OrderStatusTimeline.js +55 -0
- package/dist/features/orders/components/index.d.ts +2 -0
- package/dist/features/orders/components/index.js +1 -0
- package/dist/features/orders/constants/payment-window.d.ts +25 -0
- package/dist/features/orders/constants/payment-window.js +25 -0
- package/dist/features/orders/repository/orders.repository.d.ts +32 -0
- package/dist/features/orders/repository/orders.repository.js +56 -0
- package/dist/features/orders/schemas/index.d.ts +24 -24
- package/dist/features/orders/types/index.d.ts +33 -0
- package/dist/features/pre-orders/components/PreOrderDetailPageView.js +9 -1
- package/dist/features/pre-orders/schemas/index.d.ts +5 -0
- package/dist/features/products/components/BidHistory.js +9 -1
- package/dist/features/products/components/GroupSettingsPanel.js +25 -3
- package/dist/features/products/components/PrizeDrawDetailPageView.js +11 -1
- package/dist/features/products/components/PrizeDrawEntryActions.d.ts +1 -4
- package/dist/features/products/components/PrizeDrawEntryActions.js +1 -1
- package/dist/features/products/components/ProductDetailActions.d.ts +1 -2
- package/dist/features/products/components/ProductDetailActions.js +1 -1
- package/dist/features/products/components/ProductDetailPageView.js +11 -116
- package/dist/features/products/components/ProductGrid.js +15 -1
- package/dist/features/products/components/RelatedItemsSection.d.ts +16 -0
- package/dist/features/products/components/RelatedItemsSection.js +17 -0
- package/dist/features/products/constants/action-defs.d.ts +1 -0
- package/dist/features/products/constants/action-defs.js +1 -0
- package/dist/features/products/schemas/index.d.ts +5 -0
- package/dist/features/promotions/components/CouponsIndexListing.d.ts +1 -3
- package/dist/features/promotions/components/CouponsIndexListing.js +1 -1
- package/dist/features/search/components/SearchView.d.ts +1 -3
- package/dist/features/search/components/SearchView.js +1 -1
- package/dist/features/seller/components/QuickProductForm.js +2 -1
- package/dist/features/seller/components/SellerBidsView.js +66 -107
- package/dist/features/seller/components/SellerGoogleReviewsView.js +17 -1
- package/dist/features/seller/components/SellerOrdersView.d.ts +15 -3
- package/dist/features/seller/components/SellerOrdersView.js +134 -163
- package/dist/features/seller/components/SellerPayoutMethodsView.js +60 -48
- package/dist/features/seller/components/SellerPayoutSettingsView.js +69 -4
- package/dist/features/seller/components/SellerPayoutsView.d.ts +12 -0
- package/dist/features/seller/components/SellerPayoutsView.js +25 -5
- package/dist/features/seller/components/SellerProductShell.d.ts +10 -3
- package/dist/features/seller/components/SellerProductShell.js +90 -37
- package/dist/features/seller/components/SellerProductsFilterDrawer.d.ts +2 -7
- package/dist/features/seller/components/SellerProductsFilterDrawer.js +4 -4
- package/dist/features/seller/components/SellerProductsView.d.ts +2 -4
- package/dist/features/seller/components/SellerProductsView.js +131 -189
- package/dist/features/seller/components/SellerReviewsView.js +95 -133
- package/dist/features/seller/components/SellerShippingConfigsView.js +47 -67
- package/dist/features/seller/components/SellerShippingView.js +41 -4
- package/dist/features/seller/components/SellerStoreCategoriesView.js +51 -59
- package/dist/features/seller/components/SellerStorefrontView.d.ts +6 -1
- package/dist/features/seller/components/SellerStorefrontView.js +42 -5
- package/dist/features/seller/components/index.d.ts +2 -2
- package/dist/features/seller/components/index.js +2 -2
- package/dist/features/shell/FormShell.d.ts +24 -4
- package/dist/features/shell/FormShell.js +12 -6
- package/dist/features/shell/QuickFormDrawer.js +67 -12
- package/dist/features/shell/StepForm.d.ts +30 -1
- package/dist/features/shell/StepForm.js +47 -4
- package/dist/features/shell/index.d.ts +1 -1
- package/dist/features/shell/index.js +1 -1
- package/dist/features/shipments/components/AdminShipmentEditorView.js +2 -2
- package/dist/features/shipments/schemas/validation.d.ts +14 -4
- package/dist/features/tester/components/AdminTesterFeedbackListView.js +23 -2
- package/dist/features/tester/components/TesterChecklistStepRow.js +1 -1
- package/dist/features/tester/components/TesterHubView.js +3 -2
- package/dist/features/tester/seed-data/orders-tester-seed-data.js +9 -1
- package/dist/features/tester/seed-data/products-tester-seed-data.js +43 -32
- package/dist/features/tester/seed-data/tester-checklist-seed-data.js +487 -18
- package/dist/index.d.ts +17 -3
- package/dist/index.js +23 -5
- package/dist/next/routing/route-map.d.ts +13 -0
- package/dist/next/routing/route-map.js +12 -0
- package/dist/providers/email-resend/provider.js +1 -0
- package/dist/providers/firebase-client/auth.d.ts +1 -0
- package/dist/providers/firebase-client/auth.js +7 -1
- package/dist/repositories/index.d.ts +1 -0
- package/dist/repositories/index.js +1 -0
- package/dist/schemas/registry.d.ts +61 -25
- package/dist/security/pii-mask.js +1 -1
- package/dist/seed/bids-seed-data.js +48 -3
- package/dist/seed/categories-seed-data.js +69 -0
- package/dist/seed/grouped-listings-seed-data.js +167 -0
- package/dist/seed/payouts-seed-data.js +4 -4
- package/dist/seed/products-art-seed-data.js +188 -5
- package/dist/seed/products-auctions-seed-data.js +226 -6
- package/dist/seed/products-classifieds-seed-data.js +255 -8
- package/dist/seed/products-digital-codes-seed-data.js +258 -19
- package/dist/seed/products-live-items-seed-data.js +143 -10
- package/dist/seed/products-preorders-seed-data.js +213 -8
- package/dist/seed/products-prize-draws-seed-data.js +198 -0
- package/dist/seed/products-standard-seed-data.js +234 -4
- package/dist/seed/products-stickers-seed-data.js +178 -5
- package/dist/seed/site-settings-seed-data.js +23 -30
- package/dist/seed/store-extensions-seed-data.js +2 -2
- package/dist/server-entry.d.ts +6 -2
- package/dist/server-entry.js +24 -3
- package/dist/server.d.ts +10 -3
- package/dist/server.js +11 -4
- package/dist/styles.css +29 -1
- package/dist/tailwind-utilities.css +1 -1
- package/dist/ui/components/Form.d.ts +11 -2
- package/dist/ui/components/Form.js +4 -3
- package/dist/ui/components/FormField.d.ts +3 -1
- package/dist/ui/components/FormField.js +22 -4
- package/dist/ui/components/ImageLightbox.js +37 -3
- package/dist/ui/components/ImageLightbox.style.css +28 -0
- package/dist/ui/components/ListingLayout.d.ts +1 -2
- package/dist/ui/components/ListingLayout.js +1 -1
- package/dist/ui/components/RecordDetailModal.d.ts +68 -0
- package/dist/ui/components/RecordDetailModal.js +8 -0
- package/dist/ui/components/SlottedListingView.js +9 -1
- package/dist/ui/forms/FormErrorSummary.d.ts +25 -0
- package/dist/ui/forms/FormErrorSummary.js +37 -0
- package/dist/ui/forms/FormShell.d.ts +37 -2
- package/dist/ui/forms/FormShell.js +37 -7
- package/dist/ui/forms/FormShell.style.css +17 -0
- package/dist/ui/forms/index.d.ts +2 -0
- package/dist/ui/forms/index.js +1 -0
- package/dist/ui/index.d.ts +4 -0
- package/dist/ui/index.js +5 -0
- package/dist/utils/media-url.d.ts +12 -1
- package/dist/utils/media-url.js +59 -1
- package/dist/validation/schemas.d.ts +4 -4
- package/package.json +1 -1
- package/dist/_internal/client/features/classified/ClassifiedDetailView.d.ts +0 -9
- package/dist/_internal/client/features/classified/ClassifiedDetailView.js +0 -55
- package/dist/_internal/client/features/digital-code/DigitalCodeDetailView.d.ts +0 -18
- package/dist/_internal/client/features/digital-code/DigitalCodeDetailView.js +0 -21
- package/dist/_internal/client/features/live/LiveItemDetailView.d.ts +0 -9
- package/dist/_internal/client/features/live/LiveItemDetailView.js +0 -25
- package/dist/_internal/server/jobs/core/prizeRevealClose.d.ts +0 -2
- package/dist/_internal/server/jobs/core/prizeRevealClose.js +0 -28
- package/dist/_internal/server/jobs/core/prizeRevealExpiry.d.ts +0 -2
- package/dist/_internal/server/jobs/core/prizeRevealExpiry.js +0 -61
- package/dist/_internal/server/jobs/core/prizeRevealOpen.d.ts +0 -2
- package/dist/_internal/server/jobs/core/prizeRevealOpen.js +0 -68
- package/dist/_internal/server/jobs/core/prizeRevealReminder.d.ts +0 -2
- package/dist/_internal/server/jobs/core/prizeRevealReminder.js +0 -49
- package/dist/_internal/server/jobs/handlers/prizeRevealClose.d.ts +0 -2
- package/dist/_internal/server/jobs/handlers/prizeRevealClose.js +0 -2
- package/dist/_internal/server/jobs/handlers/prizeRevealExpiry.d.ts +0 -2
- package/dist/_internal/server/jobs/handlers/prizeRevealExpiry.js +0 -2
- package/dist/_internal/server/jobs/handlers/prizeRevealOpen.d.ts +0 -2
- package/dist/_internal/server/jobs/handlers/prizeRevealOpen.js +0 -2
- package/dist/_internal/server/jobs/handlers/prizeRevealReminder.d.ts +0 -2
- package/dist/_internal/server/jobs/handlers/prizeRevealReminder.js +0 -2
- package/dist/features/auth/consent-otp.d.ts +0 -57
- package/dist/features/auth/consent-otp.js +0 -127
- package/dist/features/cart/components/CheckoutOtpModal.d.ts +0 -15
- package/dist/features/cart/components/CheckoutOtpModal.js +0 -12
- package/dist/features/checkout/actions/checkout-actions.d.ts +0 -31
- package/dist/features/checkout/actions/checkout-actions.js +0 -124
- package/dist/features/classified/components/ClassifiedIndexListing.d.ts +0 -5
- package/dist/features/classified/components/ClassifiedIndexListing.js +0 -123
- package/dist/features/classified/components/ClassifiedListView.d.ts +0 -6
- package/dist/features/classified/components/ClassifiedListView.js +0 -44
- package/dist/features/digital-codes/components/DigitalCodesIndexListing.d.ts +0 -5
- package/dist/features/digital-codes/components/DigitalCodesIndexListing.js +0 -114
- package/dist/features/digital-codes/components/DigitalCodesListView.d.ts +0 -6
- package/dist/features/digital-codes/components/DigitalCodesListView.js +0 -38
- package/dist/features/live/components/LiveItemsIndexListing.d.ts +0 -5
- package/dist/features/live/components/LiveItemsIndexListing.js +0 -115
- package/dist/features/live/components/LiveItemsListView.d.ts +0 -6
- package/dist/features/live/components/LiveItemsListView.js +0 -44
- package/dist/features/seller/components/SellerTemplatesView.d.ts +0 -12
- package/dist/features/seller/components/SellerTemplatesView.js +0 -276
- package/dist/react/hooks/useVisibleItems.d.ts +0 -37
- package/dist/react/hooks/useVisibleItems.js +0 -59
- package/dist/ui/components/TabStrip.d.ts +0 -34
- package/dist/ui/components/TabStrip.js +0 -56
- package/dist/ui/components/TabStrip.style.css +0 -97
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export interface UseVisibleItemsOptions {
|
|
2
|
-
/** Total number of items */
|
|
3
|
-
total: number;
|
|
4
|
-
/** Minimum width of each item in pixels */
|
|
5
|
-
minItemWidth: number;
|
|
6
|
-
/** Width reserved for each scroll arrow button (default: 36) */
|
|
7
|
-
arrowWidth?: number;
|
|
8
|
-
/** Gap between items in pixels (default: 8) */
|
|
9
|
-
gap?: number;
|
|
10
|
-
}
|
|
11
|
-
export interface UseVisibleItemsResult {
|
|
12
|
-
/** Attach to the scroll container element */
|
|
13
|
-
containerRef: React.RefObject<HTMLElement | null>;
|
|
14
|
-
/** Number of items that fit in the current container width */
|
|
15
|
-
visibleCount: number;
|
|
16
|
-
/** Whether any items are hidden (arrows should be shown) */
|
|
17
|
-
hasOverflow: boolean;
|
|
18
|
-
/** Index of the first visible item */
|
|
19
|
-
scrollOffset: number;
|
|
20
|
-
setScrollOffset: React.Dispatch<React.SetStateAction<number>>;
|
|
21
|
-
/** Scroll left by one page */
|
|
22
|
-
scrollLeft: () => void;
|
|
23
|
-
/** Scroll right by one page */
|
|
24
|
-
scrollRight: () => void;
|
|
25
|
-
canScrollLeft: boolean;
|
|
26
|
-
canScrollRight: boolean;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* `useVisibleItems` — compute how many items fit in a container, handling
|
|
30
|
-
* arrow button reservations. Powers `HorizontalScroller` and `TabStrip`.
|
|
31
|
-
*
|
|
32
|
-
* **Formula** (when overflow exists):
|
|
33
|
-
* `visible = floor((containerWidth - 2 × (arrowWidth + gap) + gap) / (minItemWidth + gap))`
|
|
34
|
-
*
|
|
35
|
-
* When all items fit without arrows, no arrows are shown.
|
|
36
|
-
*/
|
|
37
|
-
export declare function useVisibleItems({ total, minItemWidth, arrowWidth, gap, }: UseVisibleItemsOptions): UseVisibleItemsResult;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
// appkit/src/react/hooks/useVisibleItems.ts
|
|
3
|
-
import { useRef, useState, useEffect, useCallback } from "react";
|
|
4
|
-
/**
|
|
5
|
-
* `useVisibleItems` — compute how many items fit in a container, handling
|
|
6
|
-
* arrow button reservations. Powers `HorizontalScroller` and `TabStrip`.
|
|
7
|
-
*
|
|
8
|
-
* **Formula** (when overflow exists):
|
|
9
|
-
* `visible = floor((containerWidth - 2 × (arrowWidth + gap) + gap) / (minItemWidth + gap))`
|
|
10
|
-
*
|
|
11
|
-
* When all items fit without arrows, no arrows are shown.
|
|
12
|
-
*/
|
|
13
|
-
export function useVisibleItems({ total, minItemWidth, arrowWidth = 36, gap = 8, }) {
|
|
14
|
-
const containerRef = useRef(null);
|
|
15
|
-
const [visibleCount, setVisibleCount] = useState(total);
|
|
16
|
-
const [scrollOffset, setScrollOffset] = useState(0);
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
const el = containerRef.current;
|
|
19
|
-
if (!el)
|
|
20
|
-
return;
|
|
21
|
-
const compute = (width) => {
|
|
22
|
-
// Check if all items fit without scrolling
|
|
23
|
-
const totalItemsWidth = total * minItemWidth + Math.max(0, total - 1) * gap;
|
|
24
|
-
if (totalItemsWidth <= width) {
|
|
25
|
-
setVisibleCount(total);
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
// Reserve space for both arrows
|
|
29
|
-
const usable = width - 2 * (arrowWidth + gap);
|
|
30
|
-
const raw = Math.floor((usable + gap) / (minItemWidth + gap));
|
|
31
|
-
setVisibleCount(Math.max(1, raw));
|
|
32
|
-
};
|
|
33
|
-
const ro = new ResizeObserver(([entry]) => {
|
|
34
|
-
if (entry)
|
|
35
|
-
compute(entry.contentRect.width);
|
|
36
|
-
});
|
|
37
|
-
ro.observe(el);
|
|
38
|
-
compute(el.getBoundingClientRect().width);
|
|
39
|
-
return () => ro.disconnect();
|
|
40
|
-
}, [total, minItemWidth, arrowWidth, gap]);
|
|
41
|
-
// Clamp scroll offset when visibleCount or total changes
|
|
42
|
-
useEffect(() => {
|
|
43
|
-
setScrollOffset((o) => Math.min(o, Math.max(0, total - visibleCount)));
|
|
44
|
-
}, [visibleCount, total]);
|
|
45
|
-
const hasOverflow = visibleCount < total;
|
|
46
|
-
const scrollLeft = useCallback(() => setScrollOffset((o) => Math.max(0, o - visibleCount)), [visibleCount]);
|
|
47
|
-
const scrollRight = useCallback(() => setScrollOffset((o) => Math.min(total - visibleCount, o + visibleCount)), [visibleCount, total]);
|
|
48
|
-
return {
|
|
49
|
-
containerRef,
|
|
50
|
-
visibleCount,
|
|
51
|
-
hasOverflow,
|
|
52
|
-
scrollOffset,
|
|
53
|
-
setScrollOffset,
|
|
54
|
-
scrollLeft,
|
|
55
|
-
scrollRight,
|
|
56
|
-
canScrollLeft: scrollOffset > 0,
|
|
57
|
-
canScrollRight: scrollOffset + visibleCount < total,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface TabStripTab {
|
|
3
|
-
key: string;
|
|
4
|
-
label: string;
|
|
5
|
-
badge?: number;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface TabStripProps {
|
|
9
|
-
tabs: TabStripTab[];
|
|
10
|
-
activeKey: string;
|
|
11
|
-
onChange: (key: string) => void;
|
|
12
|
-
/** Minimum width per tab in pixels (default: FLUID_GRID_MIN_WIDTHS.tabItem = 100) */
|
|
13
|
-
minTabWidth?: number;
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* `TabStrip` — a horizontally scrollable tab bar that shows as many tabs as
|
|
18
|
-
* fit the container width. Arrow buttons appear automatically when tabs overflow.
|
|
19
|
-
* The active tab is always scrolled into the visible window.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```tsx
|
|
23
|
-
* <TabStrip
|
|
24
|
-
* tabs={[
|
|
25
|
-
* { key: "all", label: "All" },
|
|
26
|
-
* { key: "active", label: "Active", badge: 3 },
|
|
27
|
-
* { key: "archived", label: "Archived", disabled: true },
|
|
28
|
-
* ]}
|
|
29
|
-
* activeKey={activeTab}
|
|
30
|
-
* onChange={setActiveTab}
|
|
31
|
-
* />
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
export declare function TabStrip({ tabs, activeKey, onChange, minTabWidth, className, }: TabStripProps): React.JSX.Element;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
// appkit/src/ui/components/TabStrip.tsx
|
|
4
|
-
import { useEffect } from "react";
|
|
5
|
-
import { Span } from "./Typography";
|
|
6
|
-
import { useVisibleItems } from "../../react/hooks/useVisibleItems";
|
|
7
|
-
import { FLUID_GRID_MIN_WIDTHS } from "../../tokens";
|
|
8
|
-
/**
|
|
9
|
-
* `TabStrip` — a horizontally scrollable tab bar that shows as many tabs as
|
|
10
|
-
* fit the container width. Arrow buttons appear automatically when tabs overflow.
|
|
11
|
-
* The active tab is always scrolled into the visible window.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* <TabStrip
|
|
16
|
-
* tabs={[
|
|
17
|
-
* { key: "all", label: "All" },
|
|
18
|
-
* { key: "active", label: "Active", badge: 3 },
|
|
19
|
-
* { key: "archived", label: "Archived", disabled: true },
|
|
20
|
-
* ]}
|
|
21
|
-
* activeKey={activeTab}
|
|
22
|
-
* onChange={setActiveTab}
|
|
23
|
-
* />
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
export function TabStrip({ tabs, activeKey, onChange, minTabWidth = FLUID_GRID_MIN_WIDTHS.tabItem, className, }) {
|
|
27
|
-
const { containerRef, visibleCount, hasOverflow, scrollLeft, scrollRight, setScrollOffset, scrollOffset, canScrollLeft, canScrollRight, } = useVisibleItems({
|
|
28
|
-
total: tabs.length,
|
|
29
|
-
minItemWidth: minTabWidth,
|
|
30
|
-
gap: 0,
|
|
31
|
-
});
|
|
32
|
-
// Keep active tab scrolled into the visible window
|
|
33
|
-
useEffect(() => {
|
|
34
|
-
const idx = tabs.findIndex((t) => t.key === activeKey);
|
|
35
|
-
if (idx < 0)
|
|
36
|
-
return;
|
|
37
|
-
if (idx < scrollOffset) {
|
|
38
|
-
setScrollOffset(idx);
|
|
39
|
-
}
|
|
40
|
-
else if (idx >= scrollOffset + visibleCount) {
|
|
41
|
-
setScrollOffset(idx - visibleCount + 1);
|
|
42
|
-
}
|
|
43
|
-
}, [activeKey, scrollOffset, visibleCount, tabs, setScrollOffset]);
|
|
44
|
-
const visible = tabs.slice(scrollOffset, scrollOffset + visibleCount);
|
|
45
|
-
return (_jsxs("div", { ref: containerRef, role: "tablist", className: ["appkit-tab-strip", className ?? ""].join(" ").trim(), children: [hasOverflow && (_jsx("button", { type: "button", onClick: scrollLeft, disabled: !canScrollLeft, "aria-label": "Previous tabs", className: "appkit-tab-strip__arrow", children: "\u2039" })), visible.map((tab) => (_jsxs("button", { type: "button", role: "tab", "aria-selected": tab.key === activeKey, "aria-disabled": tab.disabled, onClick: () => !tab.disabled && onChange(tab.key), style: { minWidth: `${minTabWidth}px` }, className: [
|
|
46
|
-
"appkit-tab-strip__tab",
|
|
47
|
-
tab.key === activeKey
|
|
48
|
-
? "appkit-tab-strip__tab--active"
|
|
49
|
-
: "appkit-tab-strip__tab--inactive",
|
|
50
|
-
tab.disabled
|
|
51
|
-
? "appkit-tab-strip__tab--disabled"
|
|
52
|
-
: "appkit-tab-strip__tab--enabled",
|
|
53
|
-
]
|
|
54
|
-
.join(" ")
|
|
55
|
-
.trim(), children: [tab.label, tab.badge != null && tab.badge > 0 && (_jsx(Span, { className: "appkit-tab-strip__badge", children: tab.badge > 99 ? "99+" : tab.badge }))] }, tab.key))), hasOverflow && (_jsx("button", { type: "button", onClick: scrollRight, disabled: !canScrollRight, "aria-label": "Next tabs", className: "appkit-tab-strip__arrow", children: "\u203A" }))] }));
|
|
56
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
.appkit-tab-strip {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: flex-end;
|
|
4
|
-
border-bottom: 1px solid var(--appkit-color-border);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.dark .appkit-tab-strip {
|
|
8
|
-
border-bottom-color: var(--appkit-color-border);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.appkit-tab-strip__arrow {
|
|
12
|
-
flex: none;
|
|
13
|
-
width: 2.25rem;
|
|
14
|
-
height: 3rem;
|
|
15
|
-
display: inline-flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
color: var(--appkit-color-zinc-500);
|
|
19
|
-
transition: color 0.2s ease, opacity 0.2s ease;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.appkit-tab-strip__arrow:hover:not(:disabled) {
|
|
23
|
-
color: var(--appkit-color-text);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.dark .appkit-tab-strip__arrow:hover:not(:disabled) {
|
|
27
|
-
color: var(--appkit-color-text);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.appkit-tab-strip__arrow:disabled {
|
|
31
|
-
opacity: 0.3;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.appkit-tab-strip__tab {
|
|
35
|
-
flex: 1;
|
|
36
|
-
height: 3rem;
|
|
37
|
-
padding: 0 1rem;
|
|
38
|
-
white-space: nowrap;
|
|
39
|
-
border-bottom: 2px solid transparent;
|
|
40
|
-
font-size: 0.875rem;
|
|
41
|
-
font-weight: 500;
|
|
42
|
-
transition: color 0.2s ease, border-color 0.2s ease;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.appkit-tab-strip__tab--active {
|
|
46
|
-
border-bottom-color: var(--appkit-color-secondary-600);
|
|
47
|
-
color: var(--appkit-color-secondary-600);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.dark .appkit-tab-strip__tab--active {
|
|
51
|
-
border-bottom-color: var(--appkit-color-primary);
|
|
52
|
-
color: var(--appkit-color-primary-400);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.appkit-tab-strip__tab--inactive {
|
|
56
|
-
color: var(--appkit-color-zinc-600);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.appkit-tab-strip__tab--inactive:hover {
|
|
60
|
-
color: var(--appkit-color-text);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.dark .appkit-tab-strip__tab--inactive {
|
|
64
|
-
color: var(--appkit-color-text-faint);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.dark .appkit-tab-strip__tab--inactive:hover {
|
|
68
|
-
color: var(--appkit-color-text);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.appkit-tab-strip__tab--disabled {
|
|
72
|
-
opacity: 0.4;
|
|
73
|
-
cursor: not-allowed;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.appkit-tab-strip__tab--enabled {
|
|
77
|
-
cursor: pointer;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.appkit-tab-strip__badge {
|
|
81
|
-
margin-left: 0.375rem;
|
|
82
|
-
display: inline-flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
min-width: 1rem;
|
|
86
|
-
height: 1rem;
|
|
87
|
-
padding: 0 0.25rem;
|
|
88
|
-
border-radius: 9999px;
|
|
89
|
-
font-size: var(--appkit-text-2xs);
|
|
90
|
-
background: var(--appkit-color-secondary-50);
|
|
91
|
-
color: var(--appkit-color-secondary-600);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.dark .appkit-tab-strip__badge {
|
|
95
|
-
background: rgba(112, 26, 117, 0.3);
|
|
96
|
-
color: var(--appkit-color-primary-300);
|
|
97
|
-
}
|