@mohasinac/appkit 3.4.8 → 3.5.1

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.
Files changed (605) hide show
  1. package/dist/_internal/client/features/classified/ClassifiedDetailView.js +1 -1
  2. package/dist/_internal/client/features/digital-code/CodeRevealPanel.js +1 -1
  3. package/dist/_internal/client/features/digital-code/DigitalCodeDetailView.js +1 -1
  4. package/dist/_internal/client/features/filters/filter-load-options.js +10 -9
  5. package/dist/_internal/client/features/layout/DashboardLayoutClient.d.ts +6 -1
  6. package/dist/_internal/client/features/layout/DashboardLayoutClient.js +11 -4
  7. package/dist/_internal/client/features/live/LiveItemDetailView.js +2 -2
  8. package/dist/_internal/client/features/maintenance/views/AnalysisRunnerView.js +10 -3
  9. package/dist/_internal/client/features/maintenance/views/ServerErrorsListView.js +2 -2
  10. package/dist/_internal/client/scaffolds/DashboardScaffold.js +3 -1
  11. package/dist/_internal/server/features/checkout/actions.d.ts +16 -0
  12. package/dist/_internal/server/features/checkout/actions.js +149 -35
  13. package/dist/_internal/server/features/checkout/bundle-expansion.d.ts +31 -0
  14. package/dist/_internal/server/features/checkout/bundle-expansion.js +41 -0
  15. package/dist/_internal/server/features/lottery/actions.js +14 -4
  16. package/dist/_internal/server/features/maintenance/analyze.js +4 -2
  17. package/dist/_internal/server/features/orders/actions.js +9 -0
  18. package/dist/_internal/server/features/orders/adapters.js +19 -0
  19. package/dist/_internal/server/features/seo/robots.js +1 -1
  20. package/dist/_internal/server/functions/firestore.d.ts +47 -1
  21. package/dist/_internal/server/functions/firestore.js +56 -1
  22. package/dist/_internal/server/functions/scheduled.d.ts +2 -1
  23. package/dist/_internal/server/functions/scheduled.js +9 -1
  24. package/dist/_internal/server/jobs/core/catalogueImageStalenessReminder.d.ts +10 -0
  25. package/dist/_internal/server/jobs/core/catalogueImageStalenessReminder.js +49 -0
  26. package/dist/_internal/server/jobs/core/cleanupRtdbEvents.js +32 -0
  27. package/dist/_internal/server/jobs/core/hardBanCascade.d.ts +26 -0
  28. package/dist/_internal/server/jobs/core/hardBanCascade.js +181 -0
  29. package/dist/_internal/server/jobs/core/index.d.ts +4 -1
  30. package/dist/_internal/server/jobs/core/index.js +4 -1
  31. package/dist/_internal/server/jobs/core/jobRunners.d.ts +28 -0
  32. package/dist/_internal/server/jobs/core/jobRunners.js +37 -0
  33. package/dist/_internal/server/jobs/core/onCatalogueSubmittedForApproval.d.ts +15 -0
  34. package/dist/_internal/server/jobs/core/onCatalogueSubmittedForApproval.js +38 -0
  35. package/dist/_internal/server/jobs/core/onJobCreated.d.ts +22 -0
  36. package/dist/_internal/server/jobs/core/onJobCreated.js +59 -0
  37. package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.d.ts +6 -1
  38. package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.js +5 -2
  39. package/dist/_internal/server/jobs/handlers/catalogueImageStalenessReminder.d.ts +2 -0
  40. package/dist/_internal/server/jobs/handlers/catalogueImageStalenessReminder.js +2 -0
  41. package/dist/_internal/server/jobs/handlers/index.d.ts +6 -0
  42. package/dist/_internal/server/jobs/handlers/index.js +8 -0
  43. package/dist/_internal/server/jobs/handlers/onCatalogueSubmittedForApproval.d.ts +12 -0
  44. package/dist/_internal/server/jobs/handlers/onCatalogueSubmittedForApproval.js +20 -0
  45. package/dist/_internal/server/jobs/handlers/onJobCreated.d.ts +3 -0
  46. package/dist/_internal/server/jobs/handlers/onJobCreated.js +9 -0
  47. package/dist/_internal/server/jobs/handlers/onShipmentAllocationSync.d.ts +25 -0
  48. package/dist/_internal/server/jobs/handlers/onShipmentAllocationSync.js +71 -0
  49. package/dist/_internal/server/jobs/handlers/onShipmentDeleted.d.ts +14 -0
  50. package/dist/_internal/server/jobs/handlers/onShipmentDeleted.js +23 -0
  51. package/dist/_internal/server/jobs/handlers/onShipmentItemWrite.d.ts +17 -0
  52. package/dist/_internal/server/jobs/handlers/onShipmentItemWrite.js +26 -0
  53. package/dist/_internal/server/jobs/handlers/weeklyPayoutEligibility.js +3 -1
  54. package/dist/_internal/shared/actions/action-registry.d.ts +1 -1
  55. package/dist/_internal/shared/actions/action-registry.js +136 -0
  56. package/dist/_internal/shared/features/blog/schema.d.ts +8 -8
  57. package/dist/_internal/shared/features/brands/schema.d.ts +4 -4
  58. package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +8 -8
  59. package/dist/_internal/shared/features/events/schema.d.ts +4 -4
  60. package/dist/_internal/shared/features/products/schema.d.ts +8 -8
  61. package/dist/_internal/shared/features/promotions/schema.d.ts +4 -4
  62. package/dist/_internal/shared/features/reviews/schema.d.ts +4 -4
  63. package/dist/client/api/useFeatureFlags.d.ts +22 -0
  64. package/dist/client/api/useFeatureFlags.js +27 -0
  65. package/dist/client/observability/reportClientError.js +3 -2
  66. package/dist/client.d.ts +4 -2
  67. package/dist/client.js +2 -1
  68. package/dist/configs/next.js +1 -0
  69. package/dist/constants/api-endpoints.d.ts +279 -3
  70. package/dist/constants/api-endpoints.js +130 -2
  71. package/dist/core/hooks/useSyncManager.js +5 -4
  72. package/dist/errors/conflict-error.d.ts +4 -0
  73. package/dist/errors/conflict-error.js +6 -0
  74. package/dist/errors/index.d.ts +1 -0
  75. package/dist/errors/index.js +1 -0
  76. package/dist/features/about/components/FeesView.js +2 -2
  77. package/dist/features/about/components/HelpPageView.js +2 -2
  78. package/dist/features/about/components/HowAuctionsWorkView.js +2 -2
  79. package/dist/features/about/components/HowCheckoutWorksView.js +2 -2
  80. package/dist/features/about/components/HowEmiWorksView.js +2 -2
  81. package/dist/features/about/components/HowOffersWorkView.js +3 -3
  82. package/dist/features/about/components/HowOrdersWorkView.js +3 -3
  83. package/dist/features/about/components/HowPayoutsWorkView.js +2 -2
  84. package/dist/features/about/components/HowPreOrdersWorkView.js +2 -2
  85. package/dist/features/about/components/HowReviewsWorkView.js +2 -2
  86. package/dist/features/about/components/PublicProfileView.d.ts +8 -1
  87. package/dist/features/about/components/PublicProfileView.js +11 -9
  88. package/dist/features/about/components/SecurityPrivacyView.js +2 -2
  89. package/dist/features/about/components/UnauthorizedView.js +2 -2
  90. package/dist/features/account/components/AddressBook.js +1 -1
  91. package/dist/features/account/components/AddressesIndexListing.js +1 -1
  92. package/dist/features/account/components/NotificationBell.js +5 -5
  93. package/dist/features/account/components/NotificationPreferencesPanel.js +5 -2
  94. package/dist/features/account/components/UserOffersPanel.js +5 -4
  95. package/dist/features/account/components/UserSidebar.js +2 -2
  96. package/dist/features/account/components/UserSupportView.js +3 -3
  97. package/dist/features/account/schemas/index.d.ts +12 -12
  98. package/dist/features/addresses/schemas/index.d.ts +6 -6
  99. package/dist/features/admin/components/AdminAdEditorView.js +3 -3
  100. package/dist/features/admin/components/AdminAddressEditorView.js +3 -3
  101. package/dist/features/admin/components/AdminAdsView.js +3 -3
  102. package/dist/features/admin/components/AdminBlogEditorView.js +1 -1
  103. package/dist/features/admin/components/AdminBlogView.js +12 -15
  104. package/dist/features/admin/components/AdminBrandEditorView.js +1 -1
  105. package/dist/features/admin/components/AdminBrandsView.js +12 -13
  106. package/dist/features/admin/components/AdminBundleEditorView.js +5 -4
  107. package/dist/features/admin/components/AdminBundlesView.js +32 -23
  108. package/dist/features/admin/components/AdminCarouselEditorView.js +5 -5
  109. package/dist/features/admin/components/AdminCarouselView.js +2 -2
  110. package/dist/features/admin/components/AdminCatalogGuideView.js +1 -1
  111. package/dist/features/admin/components/AdminCategoriesView.js +12 -13
  112. package/dist/features/admin/components/AdminCategoryEditorView.js +2 -2
  113. package/dist/features/admin/components/AdminContactEditorView.js +2 -2
  114. package/dist/features/admin/components/AdminCouponEditorView.d.ts +10 -1
  115. package/dist/features/admin/components/AdminCouponEditorView.js +7 -2
  116. package/dist/features/admin/components/AdminCouponsView.js +32 -27
  117. package/dist/features/admin/components/AdminEmployeeEditorView.js +3 -3
  118. package/dist/features/admin/components/AdminFaqEditorView.js +1 -1
  119. package/dist/features/admin/components/AdminFaqsView.js +20 -20
  120. package/dist/features/admin/components/AdminFeatureEditorView.js +5 -5
  121. package/dist/features/admin/components/AdminFeaturesView.js +9 -10
  122. package/dist/features/admin/components/AdminFilterBar.js +1 -1
  123. package/dist/features/admin/components/AdminFulfillmentView.js +4 -4
  124. package/dist/features/admin/components/AdminGuideHubView.js +2 -2
  125. package/dist/features/admin/components/AdminMediaView.js +3 -2
  126. package/dist/features/admin/components/AdminNavigationView.js +1 -1
  127. package/dist/features/admin/components/AdminOrderEditorView.js +3 -3
  128. package/dist/features/admin/components/AdminOrdersView.js +21 -30
  129. package/dist/features/admin/components/AdminPageHeader.js +3 -3
  130. package/dist/features/admin/components/AdminPayoutsView.js +8 -8
  131. package/dist/features/admin/components/AdminPrizeDrawsView.js +8 -9
  132. package/dist/features/admin/components/AdminProductEditorView.d.ts +9 -1
  133. package/dist/features/admin/components/AdminProductEditorView.js +7 -4
  134. package/dist/features/admin/components/AdminProductsView.js +30 -41
  135. package/dist/features/admin/components/AdminReviewsView.js +14 -17
  136. package/dist/features/admin/components/AdminScammerEditorView.js +5 -5
  137. package/dist/features/admin/components/AdminSectionsView.js +3 -3
  138. package/dist/features/admin/components/AdminSessionsView.js +8 -10
  139. package/dist/features/admin/components/AdminSidebar.js +2 -2
  140. package/dist/features/admin/components/AdminSiteSettingsView.js +10 -3
  141. package/dist/features/admin/components/AdminStoreEditorView.js +4 -5
  142. package/dist/features/admin/components/AdminStoresView.js +18 -13
  143. package/dist/features/admin/components/AdminSupportTicketDetailView.js +7 -7
  144. package/dist/features/admin/components/AdminTeamView.js +9 -5
  145. package/dist/features/admin/components/AdminUsersView.js +19 -15
  146. package/dist/features/admin/components/AdminViewCards.js +5 -5
  147. package/dist/features/admin/components/DashboardStats.js +1 -1
  148. package/dist/features/admin/components/DataListingView.js +2 -2
  149. package/dist/features/admin/components/DataTable.js +2 -2
  150. package/dist/features/admin/components/DrawerFormFooter.js +1 -1
  151. package/dist/features/admin/components/analytics/AdminAnalyticsCharts.js +2 -2
  152. package/dist/features/admin/components/analytics/AdminStatCard.js +1 -1
  153. package/dist/features/admin/hooks/useAdminListing.d.ts +3 -2
  154. package/dist/features/admin/hooks/useAdminListing.js +8 -2
  155. package/dist/features/admin/permission-map.js +2 -0
  156. package/dist/features/admin/schemas/firestore.d.ts +7 -0
  157. package/dist/features/admin/schemas/firestore.js +4 -0
  158. package/dist/features/auctions/components/AuctionBidsTable.js +1 -1
  159. package/dist/features/auctions/components/AuctionDetailPageView.js +7 -7
  160. package/dist/features/auctions/components/MarketplaceAuctionCard.js +3 -3
  161. package/dist/features/auctions/components/MarketplaceAuctionGrid.js +4 -4
  162. package/dist/features/auctions/components/PlaceBidFormClient.js +1 -1
  163. package/dist/features/auctions/schemas/index.d.ts +16 -16
  164. package/dist/features/auth/permissions/constants.d.ts +1 -1
  165. package/dist/features/auth/permissions/constants.js +2 -0
  166. package/dist/features/auth/schemas/index.d.ts +6 -6
  167. package/dist/features/before-after/schemas/index.d.ts +3 -3
  168. package/dist/features/blog/actions/blog-actions.d.ts +32 -32
  169. package/dist/features/blog/components/BlogFeaturedCard.js +2 -2
  170. package/dist/features/blog/components/BlogIndexListing.js +2 -2
  171. package/dist/features/blog/components/BlogListView.js +4 -4
  172. package/dist/features/blog/components/BlogPostView.js +4 -4
  173. package/dist/features/blog/schemas/index.d.ts +77 -77
  174. package/dist/features/cart/components/CartDrawer.js +2 -2
  175. package/dist/features/catalogue/actions/approve-catalogue-listing.d.ts +12 -0
  176. package/dist/features/catalogue/actions/approve-catalogue-listing.js +50 -0
  177. package/dist/features/catalogue/actions/list-from-catalogue.d.ts +17 -0
  178. package/dist/features/catalogue/actions/list-from-catalogue.js +50 -0
  179. package/dist/features/catalogue/actions/submit-for-approval.d.ts +8 -0
  180. package/dist/features/catalogue/actions/submit-for-approval.js +30 -0
  181. package/dist/features/catalogue/components/AdminCatalogueApprovalsView.d.ts +2 -0
  182. package/dist/features/catalogue/components/AdminCatalogueApprovalsView.js +53 -0
  183. package/dist/features/catalogue/components/CatalogueItemEditorView.d.ts +7 -0
  184. package/dist/features/catalogue/components/CatalogueItemEditorView.js +79 -0
  185. package/dist/features/catalogue/components/PublicCatalogueView.d.ts +5 -0
  186. package/dist/features/catalogue/components/PublicCatalogueView.js +22 -0
  187. package/dist/features/catalogue/components/UserCatalogueView.d.ts +12 -0
  188. package/dist/features/catalogue/components/UserCatalogueView.js +51 -0
  189. package/dist/features/catalogue/index.d.ts +12 -0
  190. package/dist/features/catalogue/index.js +9 -0
  191. package/dist/features/catalogue/repository/catalogue.repository.d.ts +39 -0
  192. package/dist/features/catalogue/repository/catalogue.repository.js +68 -0
  193. package/dist/features/catalogue/schemas/firestore.d.ts +47 -0
  194. package/dist/features/catalogue/schemas/firestore.js +22 -0
  195. package/dist/features/catalogue/schemas/index.d.ts +2 -0
  196. package/dist/features/catalogue/schemas/index.js +2 -0
  197. package/dist/features/catalogue/schemas/validation.d.ts +71 -0
  198. package/dist/features/catalogue/schemas/validation.js +25 -0
  199. package/dist/features/catalogue/utils/freshness.d.ts +10 -0
  200. package/dist/features/catalogue/utils/freshness.js +15 -0
  201. package/dist/features/catalogue/utils/product-from-item.d.ts +15 -0
  202. package/dist/features/catalogue/utils/product-from-item.js +34 -0
  203. package/dist/features/categories/components/BrandDetailPageView.js +1 -1
  204. package/dist/features/categories/components/BrandDetailTabs.js +2 -2
  205. package/dist/features/categories/components/BundleCollage.js +2 -2
  206. package/dist/features/categories/components/BundleItemsPicker.js +3 -2
  207. package/dist/features/categories/components/CategoriesIndexListing.js +8 -6
  208. package/dist/features/categories/components/CategoryBundlesListing.js +10 -4
  209. package/dist/features/categories/components/CategoryDetailPageView.js +1 -1
  210. package/dist/features/categories/components/CategoryDetailTabs.js +2 -2
  211. package/dist/features/categories/components/CategoryGrid.js +3 -3
  212. package/dist/features/categories/components/CategoryProductsListing.js +1 -1
  213. package/dist/features/categories/components/CategorySortSelect.js +1 -1
  214. package/dist/features/categories/components/CategoryStoresListing.js +1 -1
  215. package/dist/features/categories/components/CategoryTableColumns.js +1 -1
  216. package/dist/features/categories/components/CategoryTree.js +2 -2
  217. package/dist/features/categories/components/ConcernCard.js +1 -1
  218. package/dist/features/categories/hooks/useCategories.js +1 -1
  219. package/dist/features/categories/schemas/index.d.ts +32 -32
  220. package/dist/features/classified/components/ClassifiedFilters.js +2 -2
  221. package/dist/features/classified/components/ClassifiedIndexListing.js +9 -3
  222. package/dist/features/collections/schemas/index.d.ts +2 -2
  223. package/dist/features/consultation/components/ConsultationForm.js +1 -1
  224. package/dist/features/consultation/schemas/index.d.ts +10 -10
  225. package/dist/features/contact/components/ContactForm.js +4 -4
  226. package/dist/features/contact/components/ContactInfoSidebar.js +1 -1
  227. package/dist/features/contact/components/ContactPageView.js +2 -1
  228. package/dist/features/copilot/components/AdminCopilotView.js +5 -4
  229. package/dist/features/corporate/schemas/index.d.ts +2 -2
  230. package/dist/features/digital-codes/components/DigitalCodesIndexListing.js +3 -3
  231. package/dist/features/events/components/AdminEventEditorView.js +4 -4
  232. package/dist/features/events/components/AdminEventEntriesView.js +2 -2
  233. package/dist/features/events/components/AdminEventsView.js +8 -8
  234. package/dist/features/events/components/EventBanner.js +1 -1
  235. package/dist/features/events/components/EventCard.js +3 -3
  236. package/dist/features/events/components/EventLeaderboard.js +1 -1
  237. package/dist/features/events/components/EventOfferCard.js +1 -1
  238. package/dist/features/events/components/EventPollWidget.js +6 -5
  239. package/dist/features/events/components/EventRaffleEntryForm.js +1 -1
  240. package/dist/features/events/components/EventRaffleWinnerView.js +5 -5
  241. package/dist/features/events/components/EventRafflesSection.js +1 -1
  242. package/dist/features/events/components/EventSaleBanner.js +1 -1
  243. package/dist/features/events/components/EventsIndexListing.js +4 -2
  244. package/dist/features/events/components/EventsListView.js +2 -2
  245. package/dist/features/events/components/SpinWheelView.js +11 -5
  246. package/dist/features/events/schemas/index.d.ts +100 -100
  247. package/dist/features/faq/actions/faq-actions.d.ts +6 -6
  248. package/dist/features/faq/components/ContactCTA.js +3 -3
  249. package/dist/features/faq/components/FAQCategorySidebar.js +2 -2
  250. package/dist/features/faq/components/FAQHelpfulButtons.js +3 -3
  251. package/dist/features/faq/schemas/index.d.ts +12 -12
  252. package/dist/features/filters/AsyncFacetSection.js +4 -4
  253. package/dist/features/filters/FilterFacetSection.js +8 -8
  254. package/dist/features/filters/RangeFilter.js +2 -2
  255. package/dist/features/filters/SwitchFilter.js +1 -1
  256. package/dist/features/forms/Checkbox.js +2 -8
  257. package/dist/features/forms/Input.js +2 -1
  258. package/dist/features/forms/Radio.js +3 -3
  259. package/dist/features/forms/Select.d.ts +1 -1
  260. package/dist/features/forms/Select.js +3 -2
  261. package/dist/features/forms/Slider.js +5 -11
  262. package/dist/features/forms/Textarea.js +2 -1
  263. package/dist/features/grouped/schemas/index.d.ts +6 -6
  264. package/dist/features/homepage/actions/homepage-section-actions.d.ts +4 -4
  265. package/dist/features/homepage/components/AdvertisementBanner.js +4 -4
  266. package/dist/features/homepage/components/AnnouncementBar.js +3 -3
  267. package/dist/features/homepage/components/BeforeAfterCard.js +1 -1
  268. package/dist/features/homepage/components/BrandsSection.js +9 -9
  269. package/dist/features/homepage/components/CTABannerSection.js +1 -1
  270. package/dist/features/homepage/components/CharacterHotspot.js +4 -4
  271. package/dist/features/homepage/components/CharacterHotspotForm.js +15 -13
  272. package/dist/features/homepage/components/CollectionCardsSection.js +1 -1
  273. package/dist/features/homepage/components/CustomCardsSection.js +6 -6
  274. package/dist/features/homepage/components/CustomerReviewsSection.js +2 -2
  275. package/dist/features/homepage/components/FAQSection.js +2 -2
  276. package/dist/features/homepage/components/FeaturedBundlesSection.js +3 -3
  277. package/dist/features/homepage/components/FeaturedResultsSection.js +2 -2
  278. package/dist/features/homepage/components/GoogleReviewsSection.js +6 -6
  279. package/dist/features/homepage/components/HeroBanner.js +1 -1
  280. package/dist/features/homepage/components/HeroCarousel.js +5 -4
  281. package/dist/features/homepage/components/HeroSection.js +1 -7
  282. package/dist/features/homepage/components/HomepageSkeleton.js +1 -1
  283. package/dist/features/homepage/components/HowItWorksInfoView.js +1 -1
  284. package/dist/features/homepage/components/HowItWorksSection.js +2 -2
  285. package/dist/features/homepage/components/NewsletterBanner.js +2 -2
  286. package/dist/features/homepage/components/NewsletterSection.js +1 -1
  287. package/dist/features/homepage/components/PromoGrid.js +1 -1
  288. package/dist/features/homepage/components/SectionCarousel.js +6 -6
  289. package/dist/features/homepage/components/SecurityHighlightsSection.js +2 -2
  290. package/dist/features/homepage/components/ShopByCategorySection.js +10 -10
  291. package/dist/features/homepage/components/SiteFeaturesSection.js +2 -2
  292. package/dist/features/homepage/components/SocialFeedSection.js +5 -5
  293. package/dist/features/homepage/components/SocialPostCard.js +1 -1
  294. package/dist/features/homepage/components/StatsCounterSection.js +1 -1
  295. package/dist/features/homepage/components/TestimonialsCarousel.js +1 -1
  296. package/dist/features/homepage/components/TrustBadges.js +1 -1
  297. package/dist/features/homepage/components/TrustFeaturesSection.js +2 -2
  298. package/dist/features/homepage/components/TrustIndicatorsSection.js +2 -2
  299. package/dist/features/homepage/components/WelcomeSection.js +2 -2
  300. package/dist/features/homepage/components/WhatsAppCommunitySection.js +1 -1
  301. package/dist/features/homepage/hooks/useActiveAd.js +2 -1
  302. package/dist/features/homepage/schemas/firestore.d.ts +10 -0
  303. package/dist/features/homepage/schemas/index.d.ts +116 -116
  304. package/dist/features/jobs/actions/enqueue-job.d.ts +24 -0
  305. package/dist/features/jobs/actions/enqueue-job.js +44 -0
  306. package/dist/features/jobs/repository/jobs.repository.d.ts +21 -0
  307. package/dist/features/jobs/repository/jobs.repository.js +48 -0
  308. package/dist/features/jobs/schemas/firestore.d.ts +54 -0
  309. package/dist/features/jobs/schemas/firestore.js +24 -0
  310. package/dist/features/layout/AppLayoutShell.js +17 -11
  311. package/dist/features/layout/AutoBreadcrumbs.js +1 -1
  312. package/dist/features/layout/BackToTop.js +2 -2
  313. package/dist/features/layout/BottomActions.js +7 -7
  314. package/dist/features/layout/BottomNavItem.js +2 -2
  315. package/dist/features/layout/BottomNavLayout.js +13 -4
  316. package/dist/features/layout/BottomNavbar.d.ts +9 -1
  317. package/dist/features/layout/BottomNavbar.js +12 -5
  318. package/dist/features/layout/BottomSheet.js +1 -1
  319. package/dist/features/layout/Breadcrumbs.js +1 -1
  320. package/dist/features/layout/FooterLayout.js +2 -2
  321. package/dist/features/layout/NavItem.js +3 -3
  322. package/dist/features/layout/NavbarLayout.js +6 -6
  323. package/dist/features/layout/SidebarLayout.d.ts +3 -0
  324. package/dist/features/layout/SidebarLayout.js +3 -3
  325. package/dist/features/layout/TitleBarLayout.js +4 -4
  326. package/dist/features/live/components/LiveItemFilters.js +2 -2
  327. package/dist/features/live/components/LiveItemsIndexListing.js +3 -3
  328. package/dist/features/lottery/types/index.d.ts +3 -1
  329. package/dist/features/lottery/types/index.js +16 -3
  330. package/dist/features/loyalty/components/CoinsDisplay.js +2 -2
  331. package/dist/features/media/MediaImage.d.ts +6 -1
  332. package/dist/features/media/MediaImage.js +10 -4
  333. package/dist/features/media/MediaLightbox.js +1 -1
  334. package/dist/features/media/MediaPickerModal.js +4 -3
  335. package/dist/features/media/MediaVideo.js +1 -1
  336. package/dist/features/media/modals/ImageCropModal.js +1 -1
  337. package/dist/features/media/modals/ImageEditor.js +1 -1
  338. package/dist/features/media/repository/media-assets.repository.d.ts +9 -0
  339. package/dist/features/media/types/index.d.ts +4 -4
  340. package/dist/features/media/upload/MediaUploadField.js +3 -3
  341. package/dist/features/media/upload/MediaUploadList.js +1 -1
  342. package/dist/features/messages/hooks/useConversation.js +4 -3
  343. package/dist/features/messages/hooks/useConversations.js +2 -1
  344. package/dist/features/messages/schemas/index.d.ts +6 -6
  345. package/dist/features/orders/components/MarketplaceOrderCard.js +1 -1
  346. package/dist/features/orders/components/OrderPaymentSummary.d.ts +16 -0
  347. package/dist/features/orders/components/OrderPaymentSummary.js +32 -0
  348. package/dist/features/orders/components/OrderSiblingPayments.js +1 -1
  349. package/dist/features/orders/components/OrdersList.d.ts +7 -2
  350. package/dist/features/orders/components/OrdersList.js +5 -5
  351. package/dist/features/orders/components/RefundHistoryTable.js +1 -1
  352. package/dist/features/orders/components/RefundRequestView.js +1 -1
  353. package/dist/features/orders/components/index.d.ts +2 -0
  354. package/dist/features/orders/components/index.js +1 -0
  355. package/dist/features/orders/repository/orders.repository.d.ts +8 -0
  356. package/dist/features/orders/repository/orders.repository.js +24 -0
  357. package/dist/features/orders/schemas/firestore.d.ts +59 -0
  358. package/dist/features/orders/schemas/firestore.js +5 -0
  359. package/dist/features/orders/schemas/index.d.ts +91 -40
  360. package/dist/features/orders/schemas/index.js +10 -0
  361. package/dist/features/orders/types/index.d.ts +15 -0
  362. package/dist/features/payments/schemas/index.d.ts +12 -12
  363. package/dist/features/pre-orders/components/MarketplacePreorderCard.js +5 -5
  364. package/dist/features/pre-orders/components/PreOrderActionsClient.js +1 -1
  365. package/dist/features/pre-orders/components/PreOrderBadge.js +1 -1
  366. package/dist/features/pre-orders/components/PreOrderDetailPageView.js +7 -7
  367. package/dist/features/pre-orders/components/PreOrdersIndexListing.js +3 -3
  368. package/dist/features/pre-orders/schemas/index.d.ts +12 -12
  369. package/dist/features/products/columns/productTableColumns.js +2 -2
  370. package/dist/features/products/components/AuctionsIndexListing.js +3 -3
  371. package/dist/features/products/components/CompareOverlay.js +15 -10
  372. package/dist/features/products/components/CustomFieldsEditor.js +2 -2
  373. package/dist/features/products/components/CustomSectionsEditor.js +3 -3
  374. package/dist/features/products/components/FeatureBadge.js +2 -2
  375. package/dist/features/products/components/GroupSettingsPanel.js +5 -4
  376. package/dist/features/products/components/MakeOfferButton.js +4 -4
  377. package/dist/features/products/components/MarketplaceBundleCard.js +3 -2
  378. package/dist/features/products/components/MarketplacePrizeDrawCard.js +1 -1
  379. package/dist/features/products/components/PrizeDrawCollage.js +6 -6
  380. package/dist/features/products/components/PrizeDrawDetailPageView.js +5 -5
  381. package/dist/features/products/components/PrizeDrawEntryActions.js +1 -1
  382. package/dist/features/products/components/PrizeDrawItemsEditor.js +4 -4
  383. package/dist/features/products/components/PrizeDrawsIndexListing.js +11 -4
  384. package/dist/features/products/components/PrizeDrawsSection.js +1 -1
  385. package/dist/features/products/components/PrizeRevealModal.js +9 -4
  386. package/dist/features/products/components/ProductDetailActions.js +2 -1
  387. package/dist/features/products/components/ProductDetailPageView.js +16 -16
  388. package/dist/features/products/components/ProductFeaturesSelector.js +5 -5
  389. package/dist/features/products/components/ProductForm.js +1 -1
  390. package/dist/features/products/components/ProductGalleryClient.js +5 -3
  391. package/dist/features/products/components/ProductGrid.js +11 -11
  392. package/dist/features/products/components/ProductTabs.js +2 -2
  393. package/dist/features/products/components/ProductTabsShell.js +2 -1
  394. package/dist/features/products/components/ProductsIndexListing.js +6 -1
  395. package/dist/features/products/components/ShareButton.js +2 -1
  396. package/dist/features/products/components/ShowGroupSection.js +9 -5
  397. package/dist/features/products/components/SublistingCarouselSection.js +8 -4
  398. package/dist/features/products/constants/action-defs.d.ts +10 -2
  399. package/dist/features/products/constants/action-defs.js +20 -2
  400. package/dist/features/products/schemas/firestore.d.ts +5 -0
  401. package/dist/features/products/schemas/index.d.ts +40 -40
  402. package/dist/features/products/schemas/product-features.validators.d.ts +14 -14
  403. package/dist/features/promotions/components/CouponCard.js +13 -7
  404. package/dist/features/promotions/components/CouponsIndexListing.js +4 -6
  405. package/dist/features/promotions/components/PromotionsView.js +2 -2
  406. package/dist/features/promotions/schemas/index.d.ts +26 -26
  407. package/dist/features/reviews/components/ReviewDetailPageView.js +1 -1
  408. package/dist/features/reviews/components/ReviewDetailShell.js +11 -11
  409. package/dist/features/reviews/components/ReviewModal.js +1 -1
  410. package/dist/features/reviews/components/ReviewsIndexListing.js +2 -2
  411. package/dist/features/reviews/components/ReviewsList.js +2 -2
  412. package/dist/features/reviews/schemas/index.d.ts +22 -22
  413. package/dist/features/scams/components/ScamAwarenessModal.js +2 -2
  414. package/dist/features/scams/components/ScamProfileView.js +3 -3
  415. package/dist/features/scams/components/ScamRegistryView.js +2 -2
  416. package/dist/features/scams/schemas/index.d.ts +20 -20
  417. package/dist/features/search/components/Search.js +9 -9
  418. package/dist/features/search/components/SearchFiltersRow.js +1 -1
  419. package/dist/features/search/components/SearchResultsSection.js +3 -3
  420. package/dist/features/search/components/SearchView.js +1 -1
  421. package/dist/features/search/hooks/useNavSuggestions.js +2 -1
  422. package/dist/features/search/hooks/useSearch.js +2 -2
  423. package/dist/features/search/schemas/index.d.ts +3 -3
  424. package/dist/features/seller/components/BrandInlineSelect.js +2 -2
  425. package/dist/features/seller/components/CategoryInlineSelect.js +2 -2
  426. package/dist/features/seller/components/QuickProductForm.js +1 -1
  427. package/dist/features/seller/components/SellerAddressesView.js +4 -4
  428. package/dist/features/seller/components/SellerAnalyticsAlertsView.js +3 -3
  429. package/dist/features/seller/components/SellerAnalyticsView.js +2 -2
  430. package/dist/features/seller/components/SellerArtView.js +11 -11
  431. package/dist/features/seller/components/SellerAuctionsView.js +11 -11
  432. package/dist/features/seller/components/SellerBidsView.js +3 -3
  433. package/dist/features/seller/components/SellerBundlesView.js +12 -12
  434. package/dist/features/seller/components/SellerClassifiedView.js +11 -11
  435. package/dist/features/seller/components/SellerCouponEditorView.js +2 -2
  436. package/dist/features/seller/components/SellerDigitalCodesView.js +11 -11
  437. package/dist/features/seller/components/SellerFeaturesView.js +4 -4
  438. package/dist/features/seller/components/SellerLiveView.js +11 -11
  439. package/dist/features/seller/components/SellerOffersPanel.js +3 -2
  440. package/dist/features/seller/components/SellerOrdersView.js +2 -2
  441. package/dist/features/seller/components/SellerPayoutMethodsView.js +1 -1
  442. package/dist/features/seller/components/SellerPayoutRequestView.js +6 -5
  443. package/dist/features/seller/components/SellerPayoutSettingsView.js +5 -4
  444. package/dist/features/seller/components/SellerPreOrdersView.js +1 -1
  445. package/dist/features/seller/components/SellerPrizeDrawsView.js +1 -1
  446. package/dist/features/seller/components/SellerProductShell.js +20 -6
  447. package/dist/features/seller/components/SellerProductsCards.js +3 -3
  448. package/dist/features/seller/components/SellerProductsView.js +4 -4
  449. package/dist/features/seller/components/SellerReviewsView.js +7 -6
  450. package/dist/features/seller/components/SellerShippingView.js +2 -1
  451. package/dist/features/seller/components/SellerSidebar.js +5 -5
  452. package/dist/features/seller/components/SellerStickersView.js +11 -11
  453. package/dist/features/seller/components/SellerTemplatesView.js +1 -1
  454. package/dist/features/seller/schemas/index.d.ts +20 -20
  455. package/dist/features/server-errors/schemas/index.d.ts +6 -6
  456. package/dist/features/shell/CommandPalette.d.ts +27 -0
  457. package/dist/features/shell/CommandPalette.js +92 -0
  458. package/dist/features/shell/FormShell.js +4 -3
  459. package/dist/features/shell/QuickFormDrawer.js +3 -2
  460. package/dist/features/shell/StepForm.js +2 -2
  461. package/dist/features/shell/index.d.ts +2 -0
  462. package/dist/features/shell/index.js +1 -0
  463. package/dist/features/shipments/components/AdminShipmentEditorView.d.ts +7 -0
  464. package/dist/features/shipments/components/AdminShipmentEditorView.js +123 -0
  465. package/dist/features/shipments/components/AdminShipmentLotItemsView.d.ts +6 -0
  466. package/dist/features/shipments/components/AdminShipmentLotItemsView.js +96 -0
  467. package/dist/features/shipments/components/AdminShipmentProjectionsView.d.ts +9 -0
  468. package/dist/features/shipments/components/AdminShipmentProjectionsView.js +44 -0
  469. package/dist/features/shipments/components/AdminShipmentsView.d.ts +8 -0
  470. package/dist/features/shipments/components/AdminShipmentsView.js +82 -0
  471. package/dist/features/shipments/components/ShipmentItemLinkModal.d.ts +15 -0
  472. package/dist/features/shipments/components/ShipmentItemLinkModal.js +37 -0
  473. package/dist/features/shipments/hooks/useShipments.d.ts +69 -0
  474. package/dist/features/shipments/hooks/useShipments.js +96 -0
  475. package/dist/features/shipments/index.d.ts +10 -0
  476. package/dist/features/shipments/index.js +7 -0
  477. package/dist/features/shipments/manifest.d.ts +2 -0
  478. package/dist/features/shipments/manifest.js +26 -0
  479. package/dist/features/shipments/repository/shipment-items.repository.d.ts +56 -0
  480. package/dist/features/shipments/repository/shipment-items.repository.js +78 -0
  481. package/dist/features/shipments/repository/shipment-lots.repository.d.ts +48 -0
  482. package/dist/features/shipments/repository/shipment-lots.repository.js +55 -0
  483. package/dist/features/shipments/repository/shipments.repository.d.ts +50 -0
  484. package/dist/features/shipments/repository/shipments.repository.js +77 -0
  485. package/dist/features/shipments/schemas/firestore.d.ts +150 -0
  486. package/dist/features/shipments/schemas/firestore.js +76 -0
  487. package/dist/features/shipments/schemas/index.d.ts +2 -0
  488. package/dist/features/shipments/schemas/index.js +2 -0
  489. package/dist/features/shipments/schemas/validation.d.ts +350 -0
  490. package/dist/features/shipments/schemas/validation.js +96 -0
  491. package/dist/features/shipments/utils/cost-allocation.d.ts +25 -0
  492. package/dist/features/shipments/utils/cost-allocation.js +83 -0
  493. package/dist/features/site-settings/components/ActionPermissionsManager.js +2 -2
  494. package/dist/features/stores/components/InteractiveStoreCard.js +2 -2
  495. package/dist/features/stores/components/StoreAboutView.js +1 -1
  496. package/dist/features/stores/components/StoreAuctionsListing.js +3 -3
  497. package/dist/features/stores/components/StoreAuctionsView.js +1 -1
  498. package/dist/features/stores/components/StoreCapabilitiesGuideView.js +1 -1
  499. package/dist/features/stores/components/StoreClassifiedsListing.js +2 -2
  500. package/dist/features/stores/components/StoreDetailLayoutView.js +1 -1
  501. package/dist/features/stores/components/StoreDigitalCodesListing.js +2 -2
  502. package/dist/features/stores/components/StoreFinanceGuideView.js +2 -2
  503. package/dist/features/stores/components/StoreGuideHubView.js +2 -2
  504. package/dist/features/stores/components/StoreHeader.js +4 -4
  505. package/dist/features/stores/components/StoreLiveItemsListing.js +2 -2
  506. package/dist/features/stores/components/StoreNavTabs.js +2 -2
  507. package/dist/features/stores/components/StoreOrdersGuideView.js +1 -1
  508. package/dist/features/stores/components/StorePreOrdersListing.js +3 -3
  509. package/dist/features/stores/components/StoreProductsListing.js +1 -1
  510. package/dist/features/stores/components/StoreReviewsListing.js +2 -2
  511. package/dist/features/stores/components/StoreReviewsView.js +1 -1
  512. package/dist/features/stores/components/StoreSettingsGuideView.js +1 -1
  513. package/dist/features/stores/components/StoresIndexListing.js +9 -3
  514. package/dist/features/stores/schemas/index.d.ts +10 -10
  515. package/dist/features/support/schemas/index.d.ts +22 -22
  516. package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +3 -3
  517. package/dist/features/whatsapp-bot/components/WhatsAppChatButton.js +1 -1
  518. package/dist/features/wishlist/hooks/useWishlistCount.js +1 -2
  519. package/dist/index.d.ts +44 -1
  520. package/dist/index.js +37 -1
  521. package/dist/next/routing/route-map.d.ts +18 -0
  522. package/dist/next/routing/route-map.js +9 -0
  523. package/dist/react/hooks/useVisualViewportInset.d.ts +1 -0
  524. package/dist/react/hooks/useVisualViewportInset.js +59 -0
  525. package/dist/react/index.d.ts +1 -0
  526. package/dist/react/index.js +1 -0
  527. package/dist/repositories/index.d.ts +5 -0
  528. package/dist/repositories/index.js +5 -0
  529. package/dist/schemas/registry.d.ts +398 -364
  530. package/dist/schemas/sieve.d.ts +2 -2
  531. package/dist/schemas/webhooks/google-oauth.d.ts +2 -2
  532. package/dist/schemas/webhooks/razorpay.d.ts +100 -100
  533. package/dist/seed/_helpers/media.js +1 -0
  534. package/dist/seed/actions/demo-seed-actions.d.ts +1 -1
  535. package/dist/seed/catalogue-seed-data.d.ts +2 -0
  536. package/dist/seed/catalogue-seed-data.js +112 -0
  537. package/dist/seed/grouped-listings-seed-data.d.ts +5 -0
  538. package/dist/seed/homepage-sections-seed-data.js +0 -1
  539. package/dist/seed/index.d.ts +2 -0
  540. package/dist/seed/index.js +2 -0
  541. package/dist/seed/manifest.js +6 -0
  542. package/dist/seed/products-preorders-seed-data.d.ts +5 -0
  543. package/dist/seed/shipments-seed-data.d.ts +5 -0
  544. package/dist/seed/shipments-seed-data.js +185 -0
  545. package/dist/server.d.ts +4 -0
  546. package/dist/server.js +5 -0
  547. package/dist/styles.css +75 -19
  548. package/dist/tailwind-utilities.css +1 -1
  549. package/dist/tokens/index.d.ts +0 -2
  550. package/dist/tokens/index.js +0 -2
  551. package/dist/tokens/tokens.css +12 -2
  552. package/dist/ui/DataTable.js +4 -3
  553. package/dist/ui/components/Button.d.ts +4 -1
  554. package/dist/ui/components/Button.js +11 -5
  555. package/dist/ui/components/Checkbox.d.ts +9 -1
  556. package/dist/ui/components/Checkbox.js +5 -2
  557. package/dist/ui/components/ClaimCouponButton.js +2 -1
  558. package/dist/ui/components/ConfirmDeleteModal.style.css +1 -1
  559. package/dist/ui/components/Drawer.style.css +13 -1
  560. package/dist/ui/components/Dropdown.style.css +2 -2
  561. package/dist/ui/components/FilterDrawer.d.ts +4 -1
  562. package/dist/ui/components/FilterDrawer.js +8 -2
  563. package/dist/ui/components/Form.d.ts +1 -1
  564. package/dist/ui/components/Form.js +2 -2
  565. package/dist/ui/components/FormActionBar.style.css +6 -1
  566. package/dist/ui/components/IconButton.d.ts +6 -1
  567. package/dist/ui/components/IconButton.js +5 -2
  568. package/dist/ui/components/IconButton.style.css +11 -0
  569. package/dist/ui/components/ImageGallery.style.css +2 -0
  570. package/dist/ui/components/ImageLightbox.style.css +1 -0
  571. package/dist/ui/components/ListingFilterDrawer.d.ts +4 -1
  572. package/dist/ui/components/ListingFilterDrawer.js +4 -3
  573. package/dist/ui/components/ListingLayout.style.css +2 -2
  574. package/dist/ui/components/Modal.style.css +1 -1
  575. package/dist/ui/components/Pagination.d.ts +5 -1
  576. package/dist/ui/components/Pagination.js +4 -2
  577. package/dist/ui/components/RowActionMenu.js +1 -1
  578. package/dist/ui/components/RowActionMenu.style.css +1 -1
  579. package/dist/ui/components/Select.d.ts +6 -1
  580. package/dist/ui/components/Select.js +18 -13
  581. package/dist/ui/components/Select.style.css +1 -1
  582. package/dist/ui/components/Semantic.d.ts +13 -0
  583. package/dist/ui/components/Semantic.js +16 -3
  584. package/dist/ui/components/SideDrawer.style.css +16 -4
  585. package/dist/ui/components/SideModal.style.css +1 -1
  586. package/dist/ui/components/StickyToolbar.d.ts +3 -2
  587. package/dist/ui/components/StickyToolbar.js +1 -1
  588. package/dist/ui/components/Textarea.d.ts +5 -0
  589. package/dist/ui/components/Textarea.js +8 -4
  590. package/dist/ui/components/Toast.style.css +3 -0
  591. package/dist/ui/components/UnsavedChangesModal.style.css +1 -1
  592. package/dist/ui/components/surface-tokens.d.ts +121 -113
  593. package/dist/ui/components/surface-tokens.js +110 -104
  594. package/dist/ui/forms/FormShell.d.ts +8 -27
  595. package/dist/ui/forms/FormShell.js +1 -194
  596. package/dist/ui/forms/index.d.ts +2 -2
  597. package/dist/ui/forms/index.js +1 -1
  598. package/dist/ui/index.d.ts +8 -4
  599. package/dist/ui/index.js +4 -2
  600. package/dist/utils/id-generators.d.ts +27 -0
  601. package/dist/utils/id-generators.js +45 -0
  602. package/dist/utils/number.formatter.d.ts +7 -0
  603. package/dist/utils/number.formatter.js +9 -0
  604. package/dist/validation/schemas.d.ts +5 -5
  605. package/package.json +1 -1
@@ -15,7 +15,7 @@ import { STORE_FIELDS } from "../../../constants/field-names";
15
15
  import { ACTION_ID } from "../../products/constants/action-defs";
16
16
  import { useBottomActions } from "../../layout";
17
17
  const __P = {
18
- p4: "p-4",
18
+ p4: "p-[var(--appkit-space-4)]",
19
19
  };
20
20
  const __O = {
21
21
  hidden: "overflow-hidden",
@@ -141,7 +141,13 @@ export function StoresIndexListing({ initialData }) {
141
141
  onClick: () => { selection.clearSelection(); },
142
142
  },
143
143
  ] } } : {});
144
- return (_jsxs(Div, { className: "min-h-screen", children: [_jsx(ListingToolbar, { filterCount: activeFilterCount, onFiltersClick: openFilters, searchValue: searchInput, searchPlaceholder: "Search stores...", onSearchChange: setSearchInput, onSearchCommit: commitSearch, sortValue: table.get(TABLE_KEYS.SORT) || DEFAULT_SORT, sortOptions: STORE_SORT_OPTIONS, onSortChange: (v) => { table.set(TABLE_KEYS.SORT, v); }, view: view, onViewChange: handleViewToggle, onResetAll: resetAll, hasActiveState: hasActiveState, bulkMode: selection.isSelecting, bulkSelectedCount: selection.selectedCount, bulkTotalCount: stores.length, onBulkSelectAll: selection.toggleAll, onBulkClear: selection.clearSelection }), _jsx(BulkActionBar, { selectedCount: selection.selectedCount, onClearSelection: selection.clearSelection, actions: [
144
+ return (_jsxs(Div, { className: "min-h-screen", children: [_jsx(ListingToolbar, { filterCount: activeFilterCount, onFiltersClick: openFilters, searchValue: searchInput, searchPlaceholder: "Search stores...", onSearchChange: setSearchInput, onSearchCommit: commitSearch, sortValue: table.get(TABLE_KEYS.SORT) || DEFAULT_SORT, sortOptions: STORE_SORT_OPTIONS, onSortChange: (v) => { table.set(TABLE_KEYS.SORT, v); }, view: view, onViewChange: handleViewToggle, onResetAll: resetAll, hasActiveState: hasActiveState, bulkMode: selection.isSelecting, bulkSelectedCount: selection.selectedCount, bulkTotalCount: stores.length, onBulkSelectAll: selection.toggleAll, onBulkClear: selection.clearSelection, toggles: [
145
+ // Inline quick-filter: the highest-frequency drawer-only facet promoted
146
+ // to the sticky toolbar so it doesn't require open-drawer → check → Apply
147
+ // → close for every toggle. The full facet set (category/rating/product
148
+ // count) remains in <ListingFilterDrawer> below.
149
+ { label: "Featured", active: featured === "true", onChange: (next) => table.set(TABLE_KEYS.FEATURED, next ? "true" : "") },
150
+ ] }), _jsx(BulkActionBar, { selectedCount: selection.selectedCount, onClearSelection: selection.clearSelection, actions: [
145
151
  {
146
152
  id: ACTION_ID.COMPARE,
147
153
  label: "Compare",
@@ -155,7 +161,7 @@ export function StoresIndexListing({ initialData }) {
155
161
  disabled: selection.selectedCount !== 1,
156
162
  onClick: () => { selection.clearSelection(); },
157
163
  },
158
- ] }), totalPages > 1 && (_jsx(Row, { border: "bottom", className: "sticky top-[calc(var(--header-height,0px)+44px)] z-10 backdrop-blur-sm", surface: "default", padding: "toolbar", justify: "center", children: _jsx(Pagination, { currentPage: table.getNumber("page", 1), totalPages: totalPages, onPageChange: (p) => table.setPage(p) }) })), _jsx(Div, { padding: "y-lg", children: isLoading ? (_jsx(Div, { layout: "grid", gap: "6", className: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3", children: Array.from({ length: 6 }).map((_, i) => (_jsxs(Div, { className: `${__O.hidden} animate-pulse`, border: "subtle", rounded: "xl", children: [_jsx(Div, { className: "aspect-video", surface: "subtle" }), _jsxs(Div, { className: `${__P.p4} space-y-[0.625rem]`, children: [_jsx(Row, { align: "center", gap: "sm", children: _jsx(Div, { className: "h-10 w-10", surface: "subtle", rounded: "lg" }) }), _jsx(Div, { className: "h-4 w-2/3", surface: "subtle", rounded: "default" }), _jsx(Div, { className: "h-3 w-full", surface: "subtle", rounded: "default" }), _jsx(Div, { className: "h-3 w-1/2", surface: "subtle", rounded: "default" })] })] }, i))) })) : stores.length === 0 ? (_jsx(Text, { paddingY: "4xl", color: "muted", size: "sm", align: "center", children: "No stores found." })) : view === "list" ? (_jsx(Stack, { className: "divide-y divide-zinc-100 divide-[var(--appkit-color-border-subtle)]", border: "subtle", rounded: "xl", children: stores.map((store) => {
164
+ ] }), totalPages > 1 && (_jsx(Row, { border: "bottom", className: "sticky top-[calc(var(--header-height,0px)+44px)] z-10 backdrop-blur-sm", surface: "default", padding: "toolbar", justify: "center", children: _jsx(Pagination, { currentPage: table.getNumber("page", 1), totalPages: totalPages, onPageChange: (p) => table.setPage(p) }) })), _jsx(Div, { padding: "y-lg", children: isLoading ? (_jsx(Div, { layout: "grid", gap: "6", className: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3", children: Array.from({ length: 6 }).map((_, i) => (_jsxs(Div, { className: `${__O.hidden} animate-pulse`, border: "subtle", rounded: "xl", children: [_jsx(Div, { className: "aspect-video", surface: "subtle" }), _jsxs(Div, { className: `${__P.p4} space-y-[0.625rem]`, children: [_jsx(Row, { align: "center", gap: "sm", children: _jsx(Div, { className: "h-10 w-10", surface: "subtle", rounded: "lg" }) }), _jsx(Div, { className: "h-4 w-2/3", surface: "subtle", rounded: "default" }), _jsx(Div, { className: "h-3 w-full", surface: "subtle", rounded: "default" }), _jsx(Div, { className: "h-3 w-1/2", surface: "subtle", rounded: "default" })] })] }, i))) })) : stores.length === 0 ? (_jsx(Text, { paddingY: "4xl", color: "muted", size: "sm", align: "start", children: "No stores found." })) : view === "list" ? (_jsx(Stack, { className: "divide-y divide-zinc-100 divide-[var(--appkit-color-border-subtle)]", border: "subtle", rounded: "xl", children: stores.map((store) => {
159
165
  const storeKey = store.storeSlug ?? store.id;
160
166
  return (_jsx(InteractiveStoreCard, { store: store, href: String(ROUTES.PUBLIC.STORE_DETAIL(storeKey)), selectable: selection.isSelecting, isSelected: selection.isSelected(store.id ?? store.storeSlug), onSelect: (id, sel) => { void sel; selection.toggle(id); } }, storeKey));
161
167
  }) })) : (_jsx(Div, { layout: "grid", gap: "6", className: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3", children: stores.map((store) => {
@@ -403,19 +403,19 @@ export declare const storeFirestoreSchema: z.ZodObject<{
403
403
  }>>;
404
404
  }, "strip", z.ZodTypeAny, {
405
405
  status: "pending" | "active" | "rejected" | "suspended";
406
+ id: string;
406
407
  createdAt: string | Date | z.objectOutputType<{
407
408
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
408
409
  }, z.ZodTypeAny, "passthrough">;
409
- storeName: string;
410
- id: string;
411
410
  updatedAt: string | Date | z.objectOutputType<{
412
411
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
413
412
  }, z.ZodTypeAny, "passthrough">;
413
+ storeName: string;
414
414
  isPublic: boolean;
415
415
  storeSlug: string;
416
416
  ownerId: string;
417
- returnPolicy?: string | undefined;
418
417
  location?: string | undefined;
418
+ returnPolicy?: string | undefined;
419
419
  stats?: {
420
420
  itemsSold: number;
421
421
  totalProducts: number;
@@ -488,19 +488,19 @@ export declare const storeFirestoreSchema: z.ZodObject<{
488
488
  } | undefined;
489
489
  }, {
490
490
  status: "pending" | "active" | "rejected" | "suspended";
491
+ id: string;
491
492
  createdAt: string | Date | z.objectInputType<{
492
493
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
493
494
  }, z.ZodTypeAny, "passthrough">;
494
- storeName: string;
495
- id: string;
496
495
  updatedAt: string | Date | z.objectInputType<{
497
496
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
498
497
  }, z.ZodTypeAny, "passthrough">;
498
+ storeName: string;
499
499
  isPublic: boolean;
500
500
  storeSlug: string;
501
501
  ownerId: string;
502
- returnPolicy?: string | undefined;
503
502
  location?: string | undefined;
503
+ returnPolicy?: string | undefined;
504
504
  stats?: {
505
505
  itemsSold: number;
506
506
  totalProducts: number;
@@ -606,8 +606,8 @@ export declare const storeListItemSchema: z.ZodObject<{
606
606
  createdAt: z.ZodOptional<z.ZodString>;
607
607
  }, "strip", z.ZodTypeAny, {
608
608
  status: string;
609
- storeName: string;
610
609
  id: string;
610
+ storeName: string;
611
611
  isPublic: boolean;
612
612
  storeSlug: string;
613
613
  ownerId: string;
@@ -622,8 +622,8 @@ export declare const storeListItemSchema: z.ZodObject<{
622
622
  averageRating?: number | undefined;
623
623
  }, {
624
624
  status: string;
625
- storeName: string;
626
625
  id: string;
626
+ storeName: string;
627
627
  isPublic: boolean;
628
628
  storeSlug: string;
629
629
  ownerId: string;
@@ -645,14 +645,14 @@ export declare const storeListParamsSchema: z.ZodObject<{
645
645
  filters: z.ZodOptional<z.ZodString>;
646
646
  }, "strip", z.ZodTypeAny, {
647
647
  sort?: string | undefined;
648
- category?: string | undefined;
649
648
  page?: number | undefined;
650
649
  pageSize?: number | undefined;
650
+ category?: string | undefined;
651
651
  filters?: string | undefined;
652
652
  }, {
653
653
  sort?: string | undefined;
654
- category?: string | undefined;
655
654
  page?: number | undefined;
656
655
  pageSize?: number | undefined;
656
+ category?: string | undefined;
657
657
  filters?: string | undefined;
658
658
  }>;
@@ -18,20 +18,20 @@ export declare const ticketMessageSchema: z.ZodObject<{
18
18
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
19
19
  }, z.ZodTypeAny, "passthrough">>]>;
20
20
  }, "strip", z.ZodTypeAny, {
21
+ id: string;
22
+ body: string;
21
23
  createdAt: string | Date | z.objectOutputType<{
22
24
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
23
25
  }, z.ZodTypeAny, "passthrough">;
24
- id: string;
25
- body: string;
26
26
  authorId: string;
27
27
  authorRole: "user" | "admin" | "support";
28
28
  attachments?: string[] | undefined;
29
29
  }, {
30
+ id: string;
31
+ body: string;
30
32
  createdAt: string | Date | z.objectInputType<{
31
33
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
32
34
  }, z.ZodTypeAny, "passthrough">;
33
- id: string;
34
- body: string;
35
35
  authorId: string;
36
36
  authorRole: "user" | "admin" | "support";
37
37
  attachments?: string[] | undefined;
@@ -116,20 +116,20 @@ export declare const supportTicketFirestoreSchema: z.ZodObject<{
116
116
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
117
117
  }, z.ZodTypeAny, "passthrough">>]>;
118
118
  }, "strip", z.ZodTypeAny, {
119
+ id: string;
120
+ body: string;
119
121
  createdAt: string | Date | z.objectOutputType<{
120
122
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
121
123
  }, z.ZodTypeAny, "passthrough">;
122
- id: string;
123
- body: string;
124
124
  authorId: string;
125
125
  authorRole: "user" | "admin" | "support";
126
126
  attachments?: string[] | undefined;
127
127
  }, {
128
+ id: string;
129
+ body: string;
128
130
  createdAt: string | Date | z.objectInputType<{
129
131
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
130
132
  }, z.ZodTypeAny, "passthrough">;
131
- id: string;
132
- body: string;
133
133
  authorId: string;
134
134
  authorRole: "user" | "admin" | "support";
135
135
  attachments?: string[] | undefined;
@@ -149,24 +149,24 @@ export declare const supportTicketFirestoreSchema: z.ZodObject<{
149
149
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
150
150
  }, z.ZodTypeAny, "passthrough">>]>>;
151
151
  }, "strip", z.ZodTypeAny, {
152
- status: "open" | "closed" | "in_progress" | "resolved" | "waiting_on_user";
153
- category: "account" | "general" | "order_issue" | "billing_payment" | "listing_dispute" | "scam_report" | "refund_request" | "auction_dispute" | "store_change_request" | "order_modification_request" | "unban_request";
152
+ status: "closed" | "open" | "in_progress" | "resolved" | "waiting_on_user";
153
+ id: string;
154
154
  createdAt: string | Date | z.objectOutputType<{
155
155
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
156
156
  }, z.ZodTypeAny, "passthrough">;
157
- description: string;
158
- id: string;
159
157
  updatedAt: string | Date | z.objectOutputType<{
160
158
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
161
159
  }, z.ZodTypeAny, "passthrough">;
162
- priority: "high" | "low" | "normal" | "urgent";
163
160
  userId: string;
161
+ category: "account" | "general" | "order_issue" | "billing_payment" | "listing_dispute" | "scam_report" | "refund_request" | "auction_dispute" | "store_change_request" | "order_modification_request" | "unban_request";
162
+ description: string;
163
+ priority: "normal" | "high" | "low" | "urgent";
164
164
  messages: {
165
+ id: string;
166
+ body: string;
165
167
  createdAt: string | Date | z.objectOutputType<{
166
168
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
167
169
  }, z.ZodTypeAny, "passthrough">;
168
- id: string;
169
- body: string;
170
170
  authorId: string;
171
171
  authorRole: "user" | "admin" | "support";
172
172
  attachments?: string[] | undefined;
@@ -192,24 +192,24 @@ export declare const supportTicketFirestoreSchema: z.ZodObject<{
192
192
  assignedToName?: string | undefined;
193
193
  internalNotes?: string | undefined;
194
194
  }, {
195
- status: "open" | "closed" | "in_progress" | "resolved" | "waiting_on_user";
196
- category: "account" | "general" | "order_issue" | "billing_payment" | "listing_dispute" | "scam_report" | "refund_request" | "auction_dispute" | "store_change_request" | "order_modification_request" | "unban_request";
195
+ status: "closed" | "open" | "in_progress" | "resolved" | "waiting_on_user";
196
+ id: string;
197
197
  createdAt: string | Date | z.objectInputType<{
198
198
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
199
199
  }, z.ZodTypeAny, "passthrough">;
200
- description: string;
201
- id: string;
202
200
  updatedAt: string | Date | z.objectInputType<{
203
201
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
204
202
  }, z.ZodTypeAny, "passthrough">;
205
- priority: "high" | "low" | "normal" | "urgent";
206
203
  userId: string;
204
+ category: "account" | "general" | "order_issue" | "billing_payment" | "listing_dispute" | "scam_report" | "refund_request" | "auction_dispute" | "store_change_request" | "order_modification_request" | "unban_request";
205
+ description: string;
206
+ priority: "normal" | "high" | "low" | "urgent";
207
207
  messages: {
208
+ id: string;
209
+ body: string;
208
210
  createdAt: string | Date | z.objectInputType<{
209
211
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
210
212
  }, z.ZodTypeAny, "passthrough">;
211
- id: string;
212
- body: string;
213
213
  authorId: string;
214
214
  authorRole: "user" | "admin" | "support";
215
215
  attachments?: string[] | undefined;
@@ -3,12 +3,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useApiMutation } from "@mohasinac/appkit/client";
4
4
  import React from "react";
5
5
  const __P = {
6
- p3: "p-3",
6
+ p3: "p-[var(--appkit-space-3)]",
7
7
  };
8
8
  const __O = {
9
9
  hidden: "overflow-hidden",
10
10
  };
11
- const CLS_SECTION_CARD = "border border-[var(--appkit-color-border)] rounded-xl p-5";
11
+ const CLS_SECTION_CARD = "border border-[var(--appkit-color-border)] rounded-xl p-[var(--appkit-space-5)]";
12
12
  import { useQuery, useQueryClient } from "@tanstack/react-query";
13
13
  import { Alert, Badge, Button, Div, Form, FormActions, Heading, Input, Row, Section, Span, Stack, Text, Toggle, useToast } from "../../../ui";
14
14
  import { apiClient } from "../../../http";
@@ -20,7 +20,7 @@ import { buildPurchaseAnnouncementMessage } from "../helpers/whatsapp";
20
20
  // ---------------------------------------------------------------------------
21
21
  function MaskedTokenInput({ label, value, onChange, placeholder, helperText, }) {
22
22
  const [revealed, setRevealed] = React.useState(false);
23
- return (_jsxs(Div, { className: "relative", children: [_jsx(Input, { label: label, value: value, onChange: (e) => onChange(e.target.value), type: revealed ? "text" : "password", placeholder: placeholder, helperText: helperText }), _jsx(Button, { type: "button", variant: "ghost", size: "sm", onClick: () => setRevealed((r) => !r), className: "absolute right-3 top-8 text-xs", children: revealed ? "Hide" : "Reveal" })] }));
23
+ return (_jsxs(Div, { className: "relative", children: [_jsx(Input, { label: label, value: value, onChange: (e) => onChange(e.target.value), type: revealed ? "text" : "password", placeholder: placeholder, helperText: helperText }), _jsx(Button, { type: "button", variant: "ghost", size: "sm", onClick: () => setRevealed((r) => !r), className: "absolute right-3 top-8 text-[length:var(--appkit-text-xs)]", children: revealed ? "Hide" : "Reveal" })] }));
24
24
  }
25
25
  const STEPS = [
26
26
  {
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Link from "next/link";
3
- const CLS_WA_BTN = "inline-flex items-center gap-2 rounded-lg bg-success-surface px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-success-surface";
3
+ const CLS_WA_BTN = "inline-flex items-center gap-[var(--appkit-space-2)] rounded-lg bg-success-surface px-[var(--appkit-space-4)] py-[var(--appkit-space-2)] text-[length:var(--appkit-text-sm)] font-semibold text-white transition-colors hover:bg-success-surface";
4
4
  export function WhatsAppChatButton({ waNumber, message = "Hi! I have a question.", label = "Chat on WhatsApp", className, }) {
5
5
  const href = `https://wa.me/${waNumber}?text=${encodeURIComponent(message)}`;
6
6
  return (_jsxs(Link, { href: href, target: "_blank", rel: "noopener noreferrer", className: `${CLS_WA_BTN} ${className ?? ""}`, children: [_jsx("svg", { className: "h-4 w-4", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: _jsx("path", { d: "M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z" }) }), label] }));
@@ -8,7 +8,6 @@ import { useGuestWishlist } from "./useGuestWishlist";
8
8
  import { clearGuestWishlist, getGuestWishlistItems, } from "../utils/guest-wishlist";
9
9
  import { WISHLIST_MAX } from "../../../constants/limits";
10
10
  import { WISHLIST_ENDPOINTS } from "../../../constants/api-endpoints";
11
- const WISHLIST_MERGE_API = "/api/wishlist/merge";
12
11
  /** Custom event fired when the server reports the wishlist is full during a merge. */
13
12
  export const WISHLIST_CAP_EVENT = "appkit/wishlist/full";
14
13
  function dispatchCapEvent(detail) {
@@ -59,7 +58,7 @@ export function useWishlistCount(userId) {
59
58
  return;
60
59
  }
61
60
  apiClient
62
- .post(WISHLIST_MERGE_API, { items: items.map((i) => ({ productId: i.itemId })) })
61
+ .post(WISHLIST_ENDPOINTS.MERGE, { items: items.map((i) => ({ productId: i.itemId })) })
63
62
  .then((data) => {
64
63
  if (data?.capReached) {
65
64
  dispatchCapEvent({
package/dist/index.d.ts CHANGED
@@ -558,11 +558,14 @@ export { eventEntryRepository } from "./repositories/index";
558
558
  export { eventRepository } from "./repositories/index";
559
559
  export { faqsRepository } from "./repositories/index";
560
560
  export { homepageSectionsRepository } from "./repositories/index";
561
+ export { jobsRepository, JobsRepository } from "./repositories/index";
561
562
  export { notificationRepository } from "./repositories/index";
562
563
  export { offerRepository } from "./repositories/index";
563
564
  export { orderRepository } from "./repositories/index";
564
565
  export { passwordResetTokenRepository } from "./repositories/index";
565
566
  export { payoutRepository } from "./repositories/index";
567
+ export { shipmentsRepository, shipmentLotsRepository, shipmentItemsRepository } from "./repositories/index";
568
+ export { catalogueRepository } from "./repositories/index";
566
569
  export { savedPaymentMethodsRepository, SavedPaymentMethodsRepository } from "./repositories/index";
567
570
  export { productRepository } from "./repositories/index";
568
571
  export { reviewRepository } from "./repositories/index";
@@ -655,6 +658,8 @@ export { makeWinningBid } from "./seed/index";
655
658
  export { notificationsSeedData } from "./seed/index";
656
659
  export { ordersSeedData } from "./seed/index";
657
660
  export { payoutsSeedData } from "./seed/index";
661
+ export { shipmentsSeedData, shipmentLotsSeedData, shipmentItemsSeedData } from "./seed/index";
662
+ export { catalogueSeedData } from "./seed/index";
658
663
  export { productsStandardSeedData } from "./seed/index";
659
664
  export { productsAuctionsSeedData } from "./seed/index";
660
665
  export { productsPreordersSeedData } from "./seed/index";
@@ -2227,12 +2232,17 @@ export { OrderStatusValues } from "./features/orders/index";
2227
2232
  export { OrdersList } from "./features/orders/index";
2228
2233
  export { OrderSiblingPayments } from "./features/orders/index";
2229
2234
  export type { OrderSiblingPaymentsProps } from "./features/orders/index";
2235
+ export { OrderPaymentSummary } from "./features/orders/index";
2236
+ export type { OrderPaymentSummaryProps } from "./features/orders/index";
2237
+ export type { OrderPaymentRecord, OrderPaymentRecordMethod, OrderPaymentVerificationMethod, } from "./features/orders/index";
2230
2238
  export { RefundHistoryTable } from "./features/orders/index";
2231
2239
  export type { RefundHistoryTableProps } from "./features/orders/index";
2232
2240
  export { RefundRequestView } from "./features/orders/index";
2233
2241
  export type { RefundRequestViewProps } from "./features/orders/index";
2234
2242
  export { PaymentGatewayValues } from "./features/orders/index";
2235
2243
  export { PaymentMethodValues } from "./features/orders/index";
2244
+ export { OutOfStockPolicyValues } from "./features/orders/index";
2245
+ export type { OutOfStockPolicy } from "./features/orders/index";
2236
2246
  export { PaymentStatusValues } from "./features/orders/index";
2237
2247
  export { RefundStatusValues } from "./features/orders/index";
2238
2248
  export { ShippingMethodValues } from "./features/orders/index";
@@ -2283,6 +2293,34 @@ export { DEFAULT_PAYOUT_DATA } from "./features/payments/index";
2283
2293
  export { DEFAULT_PLATFORM_FEE_RATE } from "./features/payments/index";
2284
2294
  export { PAYOUT_ADMIN_UPDATEABLE_FIELDS } from "./features/payments/index";
2285
2295
  export { PAYOUT_COLLECTION } from "./features/payments/index";
2296
+ export { SHIPMENT_COLLECTION, SHIPMENT_LOT_COLLECTION, SHIPMENT_ITEM_COLLECTION, SHIPMENT_FIELDS, SHIPMENT_LOT_FIELDS, SHIPMENT_ITEM_FIELDS, SHIPMENT_STATUS_VALUES, DEFAULT_SHIPMENT_TOTALS, MAX_ITEMS_PER_LOT, MAX_LOTS_PER_SHIPMENT, createShipmentId, shipmentQueryHelpers, } from "./features/shipments/index";
2297
+ export type { ShipmentDocument, ShipmentLot, ShipmentItem, ShipmentStatus, ShipmentTotals, ShipmentCreateInput, ShipmentUpdateInput, ShipmentLotCreateInput, ShipmentLotUpdateInput, ShipmentItemCreateInput, ShipmentItemUpdateInput, ProductDraftFields, } from "./features/shipments/index";
2298
+ export { createShipmentSchema, updateShipmentSchema, createShipmentLotSchema, updateShipmentLotSchema, createShipmentItemSchema, updateShipmentItemSchema, bulkShipmentItemsSchema, } from "./features/shipments/index";
2299
+ export { allocateShipmentCosts } from "./features/shipments/index";
2300
+ export type { AllocateShipmentCostsInput, AllocateShipmentCostsResult, LotAllocationInput, LotAllocationResult } from "./features/shipments/index";
2301
+ export { AdminShipmentsView } from "./features/shipments/index";
2302
+ export type { AdminShipmentsViewProps } from "./features/shipments/index";
2303
+ export { AdminShipmentEditorView } from "./features/shipments/index";
2304
+ export type { AdminShipmentEditorViewProps } from "./features/shipments/index";
2305
+ export { AdminShipmentLotItemsView } from "./features/shipments/index";
2306
+ export type { AdminShipmentLotItemsViewProps } from "./features/shipments/index";
2307
+ export { AdminShipmentProjectionsView } from "./features/shipments/index";
2308
+ export { useShipments, useShipment, useShipmentItems, useShipmentProjections, } from "./features/shipments/index";
2309
+ export type { UseShipmentsParams, UseShipmentItemsParams, UseShipmentProjectionsParams, } from "./features/shipments/index";
2310
+ export { CATALOGUE_COLLECTION, CATALOGUE_FIELDS, CATALOGUE_IMAGE_FRESHNESS_DAYS, createCatalogueItemId, } from "./features/catalogue/index";
2311
+ export type { CatalogueItemDocument, CatalogueVisibility, CatalogueOwnerRole, CatalogueListingStatus, CatalogueItemCreateInput, CatalogueItemUpdateInput, } from "./features/catalogue/index";
2312
+ export { createCatalogueItemSchema, updateCatalogueItemSchema, } from "./features/catalogue/index";
2313
+ export { assertCatalogueImagesFresh } from "./features/catalogue/index";
2314
+ export { listFromCatalogueAction } from "./features/catalogue/index";
2315
+ export { submitCatalogueItemForApprovalAction } from "./features/catalogue/index";
2316
+ export { approveCatalogueListingAction, rejectCatalogueListingAction, } from "./features/catalogue/index";
2317
+ export { UserCatalogueView } from "./features/catalogue/index";
2318
+ export type { UserCatalogueViewProps } from "./features/catalogue/index";
2319
+ export { CatalogueItemEditorView } from "./features/catalogue/index";
2320
+ export type { CatalogueItemEditorViewProps } from "./features/catalogue/index";
2321
+ export { PublicCatalogueView } from "./features/catalogue/index";
2322
+ export type { PublicCatalogueViewProps } from "./features/catalogue/index";
2323
+ export { AdminCatalogueApprovalsView } from "./features/catalogue/index";
2286
2324
  export { PAYOUT_FIELDS } from "./features/payments/index";
2287
2325
  export { PAYOUT_INDEXED_FIELDS } from "./features/payments/index";
2288
2326
  export { PAYOUT_PUBLIC_FIELDS } from "./features/payments/index";
@@ -2381,6 +2419,8 @@ export type { MarketplacePrizeDrawCardProps, MarketplacePrizeDrawCardData, Marke
2381
2419
  export type { PrizeDrawDetailPageViewProps } from "./features/products/components/PrizeDrawDetailPageView";
2382
2420
  export { PrizeDrawEntryActions } from "./features/products/index";
2383
2421
  export type { PrizeDrawEntryActionsProps } from "./features/products/index";
2422
+ export { PrizeRevealModal } from "./features/products/components/PrizeRevealModal";
2423
+ export type { PrizeRevealModalProps, PrizeRevealResponse } from "./features/products/components/PrizeRevealModal";
2384
2424
  export { ProductCard } from "./features/products/index";
2385
2425
  export { ProductDetailView } from "./features/products/index";
2386
2426
  export type { ProductDetailPageViewProps } from "./features/products/components/ProductDetailPageView";
@@ -3056,9 +3096,10 @@ export { SUCCESS_MESSAGES } from "./values/index";
3056
3096
  export { splitCartIntoOrderGroups } from "./features/orders/index";
3057
3097
  export { groupOrderItemsByBundle, type BundleOrderGroup, type OrderItemForBundleGrouping, } from "./features/orders/index";
3058
3098
  export { buildSieveFilters } from "./utils/filter.helper";
3059
- export { formatFileSize } from "./utils/number.formatter";
3099
+ export { formatFileSize, formatPaise } from "./utils/number.formatter";
3060
3100
  export { formatMonthYear } from "./utils/date.formatter";
3061
3101
  export { generateMediaFilename } from "./utils/id-generators";
3102
+ export { deriveContextTypeFromFilename } from "./utils/id-generators";
3062
3103
  export type { MediaFilenameContext } from "./utils/id-generators";
3063
3104
  export { resolveMediaUrl, FIREBASE_STORAGE_HOST, GCS_HOST } from "./utils/media-url";
3064
3105
  export { generateFAQId } from "./utils/id-generators";
@@ -3125,6 +3166,8 @@ export { AddressInlineSelect } from "./features/account/components/AddressInline
3125
3166
  export type { AddressInlineSelectProps } from "./features/account/components/AddressInlineSelect";
3126
3167
  export { FormShell, useFormShell } from "./features/shell/index";
3127
3168
  export type { FormShellSection, FormShellProps, UseFormShellResult } from "./features/shell/index";
3169
+ export { CommandPalette, useCommandPaletteHotkey } from "./features/shell/index";
3170
+ export type { CommandPaletteGroup, CommandPaletteProps } from "./features/shell/index";
3128
3171
  export { QuickFormDrawer } from "./features/shell/index";
3129
3172
  export type { QuickFieldType, QuickFieldDef, QuickFormDrawerProps } from "./features/shell/index";
3130
3173
  export { StepForm, StepFormActions, StepIndicator } from "./features/shell/index";
package/dist/index.js CHANGED
@@ -1103,6 +1103,9 @@ export { faqsRepository } from "./repositories/index";
1103
1103
  // homepageSectionsRepository - Shared export for homepage sections repository.
1104
1104
  export { homepageSectionsRepository } from "./repositories/index";
1105
1105
  // [DB]-Database layer â€" uses firebase-admin or another server-side DB SDK; can only run in a trusted server environment.
1106
+ // jobsRepository - Shared export for the async-job (jobs collection) repository.
1107
+ export { jobsRepository, JobsRepository } from "./repositories/index";
1108
+ // [DB]-Database layer â€" uses firebase-admin or another server-side DB SDK; can only run in a trusted server environment.
1106
1109
  // notificationRepository - Shared export for notification repository.
1107
1110
  export { notificationRepository } from "./repositories/index";
1108
1111
  // [DB]-Database layer â€" uses firebase-admin or another server-side DB SDK; can only run in a trusted server environment.
@@ -1117,6 +1120,9 @@ export { passwordResetTokenRepository } from "./repositories/index";
1117
1120
  // [DB]-Database layer â€" uses firebase-admin or another server-side DB SDK; can only run in a trusted server environment.
1118
1121
  // payoutRepository - Shared export for payout repository.
1119
1122
  export { payoutRepository } from "./repositories/index";
1123
+ // shipmentsRepository / shipmentLotsRepository / shipmentItemsRepository - procurement shipments repositories.
1124
+ export { shipmentsRepository, shipmentLotsRepository, shipmentItemsRepository } from "./repositories/index";
1125
+ export { catalogueRepository } from "./repositories/index";
1120
1126
  // savedPaymentMethodsRepository - user saved payment methods (UPI, card, bank) with PII encryption + ban system.
1121
1127
  export { savedPaymentMethodsRepository, SavedPaymentMethodsRepository } from "./repositories/index";
1122
1128
  // [DB]-Database layer â€" uses firebase-admin or another server-side DB SDK; can only run in a trusted server environment.
@@ -1365,6 +1371,9 @@ export { ordersSeedData } from "./seed/index";
1365
1371
  // [SERVER-ONLY]-Server-only â€" uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
1366
1372
  // payoutsSeedData - Model for payouts seed data.
1367
1373
  export { payoutsSeedData } from "./seed/index";
1374
+ // shipmentsSeedData / shipmentLotsSeedData / shipmentItemsSeedData - procurement shipments seed data.
1375
+ export { shipmentsSeedData, shipmentLotsSeedData, shipmentItemsSeedData } from "./seed/index";
1376
+ export { catalogueSeedData } from "./seed/index";
1368
1377
  // [SERVER-ONLY]-Server-only â€" uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
1369
1378
  // productsStandardSeedData - Seed data for standard (buy-now) product listings.
1370
1379
  export { productsStandardSeedData } from "./seed/index";
@@ -4148,6 +4157,7 @@ export { OrderStatusValues } from "./features/orders/index";
4148
4157
  // OrdersList - Shared export for orders list.
4149
4158
  export { OrdersList } from "./features/orders/index";
4150
4159
  export { OrderSiblingPayments } from "./features/orders/index";
4160
+ export { OrderPaymentSummary } from "./features/orders/index";
4151
4161
  export { RefundHistoryTable } from "./features/orders/index";
4152
4162
  export { RefundRequestView } from "./features/orders/index";
4153
4163
  // [CLIENT-SSR]-Runs in both SSR and browser â€" React component or hook that does not depend on browser-only APIs.
@@ -4157,6 +4167,9 @@ export { PaymentGatewayValues } from "./features/orders/index";
4157
4167
  // PaymentMethodValues - Model for payment method values.
4158
4168
  export { PaymentMethodValues } from "./features/orders/index";
4159
4169
  // [CLIENT-SSR]-Runs in both SSR and browser â€" React component or hook that does not depend on browser-only APIs.
4170
+ // OutOfStockPolicyValues - Model for the buyer-chosen out-of-stock checkout policy values.
4171
+ export { OutOfStockPolicyValues } from "./features/orders/index";
4172
+ // [CLIENT-SSR]-Runs in both SSR and browser â€" React component or hook that does not depend on browser-only APIs.
4160
4173
  // PaymentStatusValues - Model for payment status values.
4161
4174
  export { PaymentStatusValues } from "./features/orders/index";
4162
4175
  // [CLIENT-SSR]-Runs in both SSR and browser â€" React component or hook that does not depend on browser-only APIs.
@@ -4242,6 +4255,25 @@ export { PAYOUT_ADMIN_UPDATEABLE_FIELDS } from "./features/payments/index";
4242
4255
  // [SCHEMA]-Schema / data-shape constant â€" Zod validator, default-value object, or Firestore collection/field name constant.
4243
4256
  // PAYOUT_COLLECTION - Constant used across modules.
4244
4257
  export { PAYOUT_COLLECTION } from "./features/payments/index";
4258
+ // SHIPMENT_COLLECTION / SHIPMENT_LOT_COLLECTION / SHIPMENT_ITEM_COLLECTION - procurement shipments collections.
4259
+ export { SHIPMENT_COLLECTION, SHIPMENT_LOT_COLLECTION, SHIPMENT_ITEM_COLLECTION, SHIPMENT_FIELDS, SHIPMENT_LOT_FIELDS, SHIPMENT_ITEM_FIELDS, SHIPMENT_STATUS_VALUES, DEFAULT_SHIPMENT_TOTALS, MAX_ITEMS_PER_LOT, MAX_LOTS_PER_SHIPMENT, createShipmentId, shipmentQueryHelpers, } from "./features/shipments/index";
4260
+ export { createShipmentSchema, updateShipmentSchema, createShipmentLotSchema, updateShipmentLotSchema, createShipmentItemSchema, updateShipmentItemSchema, bulkShipmentItemsSchema, } from "./features/shipments/index";
4261
+ export { allocateShipmentCosts } from "./features/shipments/index";
4262
+ export { AdminShipmentsView } from "./features/shipments/index";
4263
+ export { AdminShipmentEditorView } from "./features/shipments/index";
4264
+ export { AdminShipmentLotItemsView } from "./features/shipments/index";
4265
+ export { AdminShipmentProjectionsView } from "./features/shipments/index";
4266
+ export { useShipments, useShipment, useShipmentItems, useShipmentProjections, } from "./features/shipments/index";
4267
+ export { CATALOGUE_COLLECTION, CATALOGUE_FIELDS, CATALOGUE_IMAGE_FRESHNESS_DAYS, createCatalogueItemId, } from "./features/catalogue/index";
4268
+ export { createCatalogueItemSchema, updateCatalogueItemSchema, } from "./features/catalogue/index";
4269
+ export { assertCatalogueImagesFresh } from "./features/catalogue/index";
4270
+ export { listFromCatalogueAction } from "./features/catalogue/index";
4271
+ export { submitCatalogueItemForApprovalAction } from "./features/catalogue/index";
4272
+ export { approveCatalogueListingAction, rejectCatalogueListingAction, } from "./features/catalogue/index";
4273
+ export { UserCatalogueView } from "./features/catalogue/index";
4274
+ export { CatalogueItemEditorView } from "./features/catalogue/index";
4275
+ export { PublicCatalogueView } from "./features/catalogue/index";
4276
+ export { AdminCatalogueApprovalsView } from "./features/catalogue/index";
4245
4277
  // [SCHEMA]-Schema / data-shape constant â€" Zod validator, default-value object, or Firestore collection/field name constant.
4246
4278
  // PAYOUT_FIELDS - Constant used across modules.
4247
4279
  export { PAYOUT_FIELDS } from "./features/payments/index";
@@ -4408,6 +4440,8 @@ export { PrizeDrawsIndexListing } from "./features/products/index";
4408
4440
  export { MarketplacePrizeDrawCard } from "./features/products/index";
4409
4441
  // [CLIENT]-Buy panel client for prize-draw detail (consent + add-to-cart) (SB4-G).
4410
4442
  export { PrizeDrawEntryActions } from "./features/products/index";
4443
+ // [CLIENT]-Theatrical reveal-mode prize-draw modal (SB4-I) — call POST /api/prize-draws/[id]/reveal and animate to the winning slot.
4444
+ export { PrizeRevealModal } from "./features/products/components/PrizeRevealModal";
4411
4445
  // [CLIENT-SSR]-Runs in both SSR and browser â€" React component or hook that does not depend on browser-only APIs.
4412
4446
  // ProductCard - Component for product card.
4413
4447
  export { ProductCard } from "./features/products/index";
@@ -5510,9 +5544,10 @@ export { splitCartIntoOrderGroups } from "./features/orders/index";
5510
5544
  export { groupOrderItemsByBundle, } from "./features/orders/index";
5511
5545
  // -- Missing utils
5512
5546
  export { buildSieveFilters } from "./utils/filter.helper";
5513
- export { formatFileSize } from "./utils/number.formatter";
5547
+ export { formatFileSize, formatPaise } from "./utils/number.formatter";
5514
5548
  export { formatMonthYear } from "./utils/date.formatter";
5515
5549
  export { generateMediaFilename } from "./utils/id-generators"; // generateProductImageFilename already exported from "./utils/id-generators";
5550
+ export { deriveContextTypeFromFilename } from "./utils/id-generators";
5516
5551
  export { resolveMediaUrl, FIREBASE_STORAGE_HOST, GCS_HOST } from "./utils/media-url";
5517
5552
  export { generateFAQId } from "./utils/id-generators";
5518
5553
  export { generateCroppedImageFilename } from "./utils/id-generators";
@@ -5585,6 +5620,7 @@ export { AddressInlineSelect } from "./features/account/components/AddressInline
5585
5620
  // --- Shell primitives (UX1/UX2/UX3) -------------------------------------------
5586
5621
  // [CLIENT] FormShell â€" full-viewport edit overlay with sticky top/bottom bars, left section nav, and dirty-state hook.
5587
5622
  export { FormShell, useFormShell } from "./features/shell/index";
5623
+ export { CommandPalette, useCommandPaletteHotkey } from "./features/shell/index";
5588
5624
  // [CLIENT] QuickFormDrawer â€" 40% desktop / 100% mobile auto-rendered field drawer.
5589
5625
  export { QuickFormDrawer } from "./features/shell/index";
5590
5626
  // [CLIENT] StepForm â€" multi-step wizard with step indicator, prev/next, localStorage persistence.
@@ -148,6 +148,9 @@ export declare const DEFAULT_ROUTE_MAP: {
148
148
  readonly DIGITAL_CODES: "/user/digital-codes";
149
149
  readonly PRIZE_DRAWS: "/user/prize-draws";
150
150
  readonly EVENTS: "/user/events";
151
+ readonly CATALOGUE: "/user/catalogue";
152
+ readonly CATALOGUE_NEW: "/user/catalogue/new";
153
+ readonly CATALOGUE_EDIT: (id: string) => string;
151
154
  };
152
155
  readonly STORE: {
153
156
  readonly DASHBOARD: "/store";
@@ -238,6 +241,12 @@ export declare const DEFAULT_ROUTE_MAP: {
238
241
  };
239
242
  readonly ADMIN: {
240
243
  readonly DASHBOARD: "/admin/dashboard";
244
+ readonly SHIPMENTS: "/admin/shipments";
245
+ readonly SHIPMENTS_NEW: "/admin/shipments/new";
246
+ readonly SHIPMENTS_EDIT: (id: string) => string;
247
+ readonly SHIPMENT_LOT_ITEMS: (id: string, lotId: string) => string;
248
+ readonly SHIPMENTS_PROJECTIONS: "/admin/shipments/projections";
249
+ readonly CATALOGUE_APPROVALS: "/admin/catalogue-approvals";
241
250
  readonly USERS: "/admin/users";
242
251
  readonly SITE: "/admin/site";
243
252
  readonly CAROUSEL: "/admin/carousel";
@@ -498,6 +507,9 @@ export declare const ROUTES: {
498
507
  readonly DIGITAL_CODES: "/user/digital-codes";
499
508
  readonly PRIZE_DRAWS: "/user/prize-draws";
500
509
  readonly EVENTS: "/user/events";
510
+ readonly CATALOGUE: "/user/catalogue";
511
+ readonly CATALOGUE_NEW: "/user/catalogue/new";
512
+ readonly CATALOGUE_EDIT: (id: string) => string;
501
513
  };
502
514
  readonly STORE: {
503
515
  readonly DASHBOARD: "/store";
@@ -588,6 +600,12 @@ export declare const ROUTES: {
588
600
  };
589
601
  readonly ADMIN: {
590
602
  readonly DASHBOARD: "/admin/dashboard";
603
+ readonly SHIPMENTS: "/admin/shipments";
604
+ readonly SHIPMENTS_NEW: "/admin/shipments/new";
605
+ readonly SHIPMENTS_EDIT: (id: string) => string;
606
+ readonly SHIPMENT_LOT_ITEMS: (id: string, lotId: string) => string;
607
+ readonly SHIPMENTS_PROJECTIONS: "/admin/shipments/projections";
608
+ readonly CATALOGUE_APPROVALS: "/admin/catalogue-approvals";
591
609
  readonly USERS: "/admin/users";
592
610
  readonly SITE: "/admin/site";
593
611
  readonly CAROUSEL: "/admin/carousel";
@@ -136,6 +136,9 @@ export const DEFAULT_ROUTE_MAP = {
136
136
  DIGITAL_CODES: "/user/digital-codes",
137
137
  PRIZE_DRAWS: "/user/prize-draws",
138
138
  EVENTS: "/user/events",
139
+ CATALOGUE: "/user/catalogue",
140
+ CATALOGUE_NEW: "/user/catalogue/new",
141
+ CATALOGUE_EDIT: (id) => `/user/catalogue/${id}/edit`,
139
142
  },
140
143
  STORE: {
141
144
  DASHBOARD: "/store",
@@ -231,6 +234,12 @@ export const DEFAULT_ROUTE_MAP = {
231
234
  },
232
235
  ADMIN: {
233
236
  DASHBOARD: "/admin/dashboard",
237
+ SHIPMENTS: "/admin/shipments",
238
+ SHIPMENTS_NEW: "/admin/shipments/new",
239
+ SHIPMENTS_EDIT: (id) => `/admin/shipments/${id}/edit`,
240
+ SHIPMENT_LOT_ITEMS: (id, lotId) => `/admin/shipments/${id}/lots/${lotId}/items`,
241
+ SHIPMENTS_PROJECTIONS: "/admin/shipments/projections",
242
+ CATALOGUE_APPROVALS: "/admin/catalogue-approvals",
234
243
  USERS: "/admin/users",
235
244
  SITE: "/admin/site",
236
245
  CAROUSEL: "/admin/carousel",
@@ -0,0 +1 @@
1
+ export declare function useVisualViewportInset(): boolean;