@mohasinac/appkit 2.7.26 → 2.7.30

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 (363) hide show
  1. package/dist/_internal/client/features/classified/ClassifiedDetailView.js +2 -2
  2. package/dist/_internal/client/features/digital-code/CodeRevealPanel.js +2 -2
  3. package/dist/_internal/client/features/layout/DashboardLayoutClient.js +1 -1
  4. package/dist/_internal/server/features/checkout/actions.js +42 -35
  5. package/dist/_internal/server/features/classified/adapters.d.ts +21 -0
  6. package/dist/_internal/server/features/classified/adapters.js +24 -0
  7. package/dist/_internal/server/features/classified/index.d.ts +3 -0
  8. package/dist/_internal/server/features/classified/index.js +3 -0
  9. package/dist/_internal/server/features/classified/metadata.d.ts +8 -0
  10. package/dist/_internal/server/features/classified/metadata.js +43 -0
  11. package/dist/_internal/server/features/classified/og.d.ts +30 -0
  12. package/dist/_internal/server/features/classified/og.js +76 -0
  13. package/dist/_internal/server/features/digital-code/adapters.d.ts +21 -0
  14. package/dist/_internal/server/features/digital-code/adapters.js +29 -0
  15. package/dist/_internal/server/features/digital-code/index.d.ts +3 -0
  16. package/dist/_internal/server/features/digital-code/index.js +3 -0
  17. package/dist/_internal/server/features/digital-code/metadata.d.ts +8 -0
  18. package/dist/_internal/server/features/digital-code/metadata.js +36 -0
  19. package/dist/_internal/server/features/digital-code/og.d.ts +27 -0
  20. package/dist/_internal/server/features/digital-code/og.js +77 -0
  21. package/dist/_internal/server/features/live/adapters.d.ts +21 -0
  22. package/dist/_internal/server/features/live/adapters.js +34 -0
  23. package/dist/_internal/server/features/live/index.d.ts +3 -0
  24. package/dist/_internal/server/features/live/index.js +3 -0
  25. package/dist/_internal/server/features/live/metadata.d.ts +8 -0
  26. package/dist/_internal/server/features/live/metadata.js +39 -0
  27. package/dist/_internal/server/features/live/og.d.ts +27 -0
  28. package/dist/_internal/server/features/live/og.js +72 -0
  29. package/dist/_internal/server/features/promotions/actions.js +4 -3
  30. package/dist/_internal/server/jobs/core/onOrderCreate.js +19 -16
  31. package/dist/_internal/server/jobs/core/onOrderStatusChange.js +25 -22
  32. package/dist/_internal/server/jobs/core/onProductWrite.js +48 -58
  33. package/dist/_internal/shared/actions/action-registry.js +310 -8
  34. package/dist/_internal/shared/features/blog/schema.d.ts +4 -4
  35. package/dist/_internal/shared/features/brands/schema.d.ts +5 -5
  36. package/dist/_internal/shared/features/cart/schema.d.ts +18 -18
  37. package/dist/_internal/shared/features/categories/bundle-copy.d.ts +1 -1
  38. package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +38 -38
  39. package/dist/_internal/shared/features/events/schema.d.ts +8 -8
  40. package/dist/_internal/shared/features/orders/schema.d.ts +8 -8
  41. package/dist/_internal/shared/features/products/schema.d.ts +42 -42
  42. package/dist/_internal/shared/features/promotions/schema.d.ts +4 -4
  43. package/dist/_internal/shared/features/reviews/schema.d.ts +1 -1
  44. package/dist/_internal/shared/media/limits.js +4 -3
  45. package/dist/client.d.ts +2 -0
  46. package/dist/client.js +1 -0
  47. package/dist/configs/next.js +4 -0
  48. package/dist/constants/table-keys.d.ts +6 -0
  49. package/dist/constants/table-keys.js +9 -0
  50. package/dist/core/hooks/useSyncManager.js +9 -8
  51. package/dist/features/about/components/FeesView.js +10 -7
  52. package/dist/features/about/components/HelpPageView.js +10 -1
  53. package/dist/features/about/components/HowAuctionsWorkView.js +10 -1
  54. package/dist/features/about/components/HowCheckoutWorksView.js +10 -1
  55. package/dist/features/about/components/HowOffersWorkView.js +10 -1
  56. package/dist/features/about/components/HowOrdersWorkView.js +10 -1
  57. package/dist/features/about/components/HowPayoutsWorkView.js +10 -1
  58. package/dist/features/about/components/HowPreOrdersWorkView.js +10 -1
  59. package/dist/features/about/components/HowReviewsWorkView.js +10 -1
  60. package/dist/features/about/components/PublicProfileView.js +44 -14
  61. package/dist/features/about/components/SecurityPrivacyView.js +7 -1
  62. package/dist/features/account/components/AddressesIndexListing.js +2 -2
  63. package/dist/features/account/components/NotificationBell.js +27 -16
  64. package/dist/features/account/components/NotificationPreferencesPanel.d.ts +9 -0
  65. package/dist/features/account/components/NotificationPreferencesPanel.js +91 -0
  66. package/dist/features/account/components/UserSidebar.js +4 -4
  67. package/dist/features/account/components/UserSupportView.js +16 -6
  68. package/dist/features/account/components/index.d.ts +2 -0
  69. package/dist/features/account/components/index.js +1 -0
  70. package/dist/features/account/schemas/index.d.ts +4 -4
  71. package/dist/features/account/types/index.d.ts +34 -0
  72. package/dist/features/admin/actions/admin-actions.js +4 -3
  73. package/dist/features/admin/actions/notification-actions.d.ts +24 -22
  74. package/dist/features/admin/actions/notification-actions.js +122 -22
  75. package/dist/features/admin/components/AdminAdEditorView.js +29 -15
  76. package/dist/features/admin/components/AdminAdsView.js +22 -28
  77. package/dist/features/admin/components/AdminAllEventEntriesView.js +6 -1
  78. package/dist/features/admin/components/AdminBidsView.js +10 -3
  79. package/dist/features/admin/components/AdminBlogEditorView.js +2 -2
  80. package/dist/features/admin/components/AdminBlogView.js +8 -3
  81. package/dist/features/admin/components/AdminBrandsView.js +7 -2
  82. package/dist/features/admin/components/AdminBundleEditorView.js +5 -2
  83. package/dist/features/admin/components/AdminCarouselEditorView.js +6 -3
  84. package/dist/features/admin/components/AdminCarouselView.js +13 -7
  85. package/dist/features/admin/components/AdminCategoriesView.js +8 -3
  86. package/dist/features/admin/components/AdminCategoryEditorView.js +2 -2
  87. package/dist/features/admin/components/AdminContactView.js +6 -1
  88. package/dist/features/admin/components/AdminCouponEditorView.js +8 -2
  89. package/dist/features/admin/components/AdminCouponsView.js +6 -1
  90. package/dist/features/admin/components/AdminEmployeeEditorView.js +12 -9
  91. package/dist/features/admin/components/AdminFaqEditorView.js +2 -2
  92. package/dist/features/admin/components/AdminFaqsView.js +7 -2
  93. package/dist/features/admin/components/AdminFeaturesView.js +4 -3
  94. package/dist/features/admin/components/AdminMediaView.js +9 -8
  95. package/dist/features/admin/components/AdminNavigationView.js +10 -17
  96. package/dist/features/admin/components/AdminNewsletterView.js +6 -1
  97. package/dist/features/admin/components/AdminNotificationsView.js +11 -3
  98. package/dist/features/admin/components/AdminOrdersView.js +6 -1
  99. package/dist/features/admin/components/AdminPayoutsView.js +10 -3
  100. package/dist/features/admin/components/AdminPrizeDrawsView.js +10 -3
  101. package/dist/features/admin/components/AdminProductsView.js +18 -12
  102. package/dist/features/admin/components/AdminReviewsView.js +33 -24
  103. package/dist/features/admin/components/AdminScammerEditorView.js +3 -2
  104. package/dist/features/admin/components/AdminScammersView.js +28 -26
  105. package/dist/features/admin/components/AdminSectionsView.js +112 -99
  106. package/dist/features/admin/components/AdminSessionsView.js +10 -3
  107. package/dist/features/admin/components/AdminSidebar.js +4 -4
  108. package/dist/features/admin/components/AdminSiteSettingsView.js +45 -4
  109. package/dist/features/admin/components/AdminStoresView.js +6 -1
  110. package/dist/features/admin/components/AdminSublistingCategoriesView.js +0 -1
  111. package/dist/features/admin/components/AdminSupportTicketDetailView.js +1 -1
  112. package/dist/features/admin/components/AdminSupportTicketsView.js +32 -34
  113. package/dist/features/admin/components/AdminTeamView.js +6 -1
  114. package/dist/features/admin/components/AdminUserEditorView.js +8 -15
  115. package/dist/features/admin/components/AdminUsersView.js +6 -1
  116. package/dist/features/admin/components/AdminViewCards.js +4 -3
  117. package/dist/features/admin/components/DashboardStats.js +2 -2
  118. package/dist/features/admin/components/DataTable.js +2 -2
  119. package/dist/features/admin/components/sections/adminSectionsTypes.js +4 -3
  120. package/dist/features/admin/repository/chat.repository.js +8 -8
  121. package/dist/features/admin/repository/site-settings.repository.d.ts +1 -0
  122. package/dist/features/admin/repository/site-settings.repository.js +11 -9
  123. package/dist/features/admin/schemas/firestore.d.ts +38 -0
  124. package/dist/features/admin/schemas/firestore.js +15 -0
  125. package/dist/features/auctions/components/AuctionDetailPageView.js +13 -19
  126. package/dist/features/auctions/components/MarketplaceAuctionCard.js +18 -9
  127. package/dist/features/auctions/components/MarketplaceAuctionGrid.js +3 -2
  128. package/dist/features/auctions/components/index.d.ts +0 -1
  129. package/dist/features/auctions/components/index.js +0 -1
  130. package/dist/features/auctions/schemas/index.d.ts +14 -14
  131. package/dist/features/auth/actions/realtime-token-actions.js +19 -4
  132. package/dist/features/auth/components/RegisterForm.js +8 -4
  133. package/dist/features/auth/consent-otp.d.ts +2 -0
  134. package/dist/features/auth/consent-otp.js +8 -0
  135. package/dist/features/auth/schemas/firestore.d.ts +2 -0
  136. package/dist/features/auth/schemas/firestore.js +18 -25
  137. package/dist/features/auth/schemas/index.d.ts +2 -2
  138. package/dist/features/before-after/api/[id]/route.js +8 -6
  139. package/dist/features/before-after/schemas/index.d.ts +2 -2
  140. package/dist/features/blog/actions/blog-actions.d.ts +3 -3
  141. package/dist/features/blog/components/BlogIndexListing.js +21 -2
  142. package/dist/features/blog/components/BlogPostForm.js +11 -5
  143. package/dist/features/blog/components/BlogPostView.js +10 -2
  144. package/dist/features/blog/schemas/index.d.ts +18 -18
  145. package/dist/features/cart/components/CartDrawer.js +3 -2
  146. package/dist/features/cart/repository/cart.repository.js +4 -3
  147. package/dist/features/cart/utils/pending-ops.d.ts +1 -1
  148. package/dist/features/categories/api/[id]/route.js +4 -3
  149. package/dist/features/categories/api/route.js +4 -3
  150. package/dist/features/categories/components/BrandDetailPageView.js +2 -2
  151. package/dist/features/categories/components/BrandDetailTabs.js +2 -2
  152. package/dist/features/categories/components/BundleCollage.d.ts +8 -0
  153. package/dist/features/categories/components/BundleCollage.js +50 -0
  154. package/dist/features/categories/components/BundleDetailView.js +2 -10
  155. package/dist/features/categories/components/BundleItemsPicker.js +20 -13
  156. package/dist/features/categories/components/CategoriesIndexListing.js +28 -9
  157. package/dist/features/categories/components/CategoryDetailPageView.js +2 -2
  158. package/dist/features/categories/components/CategoryDetailTabs.js +2 -2
  159. package/dist/features/categories/components/CategoryProductsListing.js +52 -13
  160. package/dist/features/categories/components/index.d.ts +2 -0
  161. package/dist/features/categories/components/index.js +1 -0
  162. package/dist/features/categories/schemas/index.d.ts +6 -6
  163. package/dist/features/checkout/actions/checkout-actions.js +4 -3
  164. package/dist/features/checkout/hooks/usePaymentCheckout.js +31 -22
  165. package/dist/features/classified/components/ClassifiedFilters.d.ts +8 -0
  166. package/dist/features/classified/components/ClassifiedFilters.js +19 -0
  167. package/dist/features/classified/components/ClassifiedIndexListing.d.ts +4 -0
  168. package/dist/features/classified/components/ClassifiedIndexListing.js +110 -0
  169. package/dist/features/classified/components/ClassifiedListView.d.ts +6 -0
  170. package/dist/features/classified/components/ClassifiedListView.js +43 -0
  171. package/dist/features/classified/components/index.d.ts +6 -0
  172. package/dist/features/classified/components/index.js +3 -0
  173. package/dist/features/collections/api/[slug]/route.js +16 -12
  174. package/dist/features/collections/schemas/index.d.ts +5 -5
  175. package/dist/features/consultation/api/[id]/route.js +12 -9
  176. package/dist/features/consultation/components/ConsultationForm.js +3 -2
  177. package/dist/features/consultation/schemas/index.d.ts +6 -6
  178. package/dist/features/contact/email.js +77 -116
  179. package/dist/features/copilot/components/AdminCopilotView.js +12 -2
  180. package/dist/features/corporate/api/[id]/route.js +12 -9
  181. package/dist/features/corporate/components/CorporateInquiryForm.js +2 -1
  182. package/dist/features/digital-codes/components/DigitalCodeFilters.d.ts +8 -0
  183. package/dist/features/digital-codes/components/DigitalCodeFilters.js +16 -0
  184. package/dist/features/digital-codes/components/DigitalCodesIndexListing.d.ts +4 -0
  185. package/dist/features/digital-codes/components/DigitalCodesIndexListing.js +107 -0
  186. package/dist/features/digital-codes/components/DigitalCodesListView.d.ts +6 -0
  187. package/dist/features/digital-codes/components/DigitalCodesListView.js +37 -0
  188. package/dist/features/digital-codes/components/index.d.ts +6 -0
  189. package/dist/features/digital-codes/components/index.js +3 -0
  190. package/dist/features/events/actions/event-actions.js +4 -3
  191. package/dist/features/events/components/AdminEventEditorView.js +3 -2
  192. package/dist/features/events/components/AdminEventsView.js +4 -2
  193. package/dist/features/events/components/EventPollWidget.js +5 -5
  194. package/dist/features/events/components/EventsIndexListing.js +2 -2
  195. package/dist/features/events/schemas/index.d.ts +20 -20
  196. package/dist/features/faq/actions/faq-actions.d.ts +8 -8
  197. package/dist/features/faq/components/ContactCTA.js +3 -1
  198. package/dist/features/faq/components/FAQAccordion.js +1 -1
  199. package/dist/features/faq/schemas/index.d.ts +4 -4
  200. package/dist/features/filters/AsyncFacetSection.d.ts +18 -0
  201. package/dist/features/filters/AsyncFacetSection.js +65 -0
  202. package/dist/features/forms/Checkbox.js +2 -2
  203. package/dist/features/forms/Input.js +2 -2
  204. package/dist/features/forms/Radio.js +5 -5
  205. package/dist/features/forms/Select.js +2 -2
  206. package/dist/features/forms/Slider.js +2 -2
  207. package/dist/features/forms/Textarea.js +2 -2
  208. package/dist/features/homepage/api/[id]/route.js +4 -3
  209. package/dist/features/homepage/api/sections/[id]/route.js +12 -9
  210. package/dist/features/homepage/components/AdSlot.js +2 -1
  211. package/dist/features/homepage/components/AdvertisementBanner.js +5 -3
  212. package/dist/features/homepage/components/BrandsSection.js +2 -2
  213. package/dist/features/homepage/components/CTABannerSection.js +2 -2
  214. package/dist/features/homepage/components/CharacterHotspot.d.ts +2 -2
  215. package/dist/features/homepage/components/CharacterHotspot.js +119 -157
  216. package/dist/features/homepage/components/CharacterHotspotForm.js +25 -20
  217. package/dist/features/homepage/components/CustomCardsSection.js +8 -6
  218. package/dist/features/homepage/components/FeaturedProductsSection.js +2 -2
  219. package/dist/features/homepage/components/GoogleReviewsSection.js +3 -3
  220. package/dist/features/homepage/components/HeroBanner.js +5 -4
  221. package/dist/features/homepage/components/HeroCarousel.js +13 -26
  222. package/dist/features/homepage/components/HowItWorksSection.js +4 -2
  223. package/dist/features/homepage/components/SocialFeedSection.js +2 -2
  224. package/dist/features/homepage/components/SocialPostCard.js +3 -2
  225. package/dist/features/homepage/lib/social-feed-fetcher.js +6 -3
  226. package/dist/features/layout/AppLayoutShell.d.ts +8 -2
  227. package/dist/features/layout/AppLayoutShell.js +55 -84
  228. package/dist/features/layout/BottomActions.js +43 -48
  229. package/dist/features/layout/NavbarWithSettings.d.ts +6 -0
  230. package/dist/features/layout/NavbarWithSettings.js +11 -0
  231. package/dist/features/live/components/LiveItemFilters.d.ts +8 -0
  232. package/dist/features/live/components/LiveItemFilters.js +23 -0
  233. package/dist/features/live/components/LiveItemsIndexListing.d.ts +4 -0
  234. package/dist/features/live/components/LiveItemsIndexListing.js +108 -0
  235. package/dist/features/live/components/LiveItemsListView.d.ts +6 -0
  236. package/dist/features/live/components/LiveItemsListView.js +43 -0
  237. package/dist/features/live/components/index.d.ts +6 -0
  238. package/dist/features/live/components/index.js +3 -0
  239. package/dist/features/media/MediaLightbox.js +8 -14
  240. package/dist/features/media/types/index.d.ts +2 -2
  241. package/dist/features/media/upload/CameraCapture.js +2 -2
  242. package/dist/features/media/upload/ImageUpload.js +4 -2
  243. package/dist/features/media/upload/MediaUploadField.js +24 -8
  244. package/dist/features/media/upload/MediaUploadList.js +1 -1
  245. package/dist/features/orders/actions/order-actions.js +4 -3
  246. package/dist/features/orders/components/MarketplaceOrderCard.js +2 -1
  247. package/dist/features/orders/components/OrderFilters.js +12 -9
  248. package/dist/features/orders/schemas/index.d.ts +6 -6
  249. package/dist/features/pre-orders/api/[id]/route.js +12 -9
  250. package/dist/features/pre-orders/components/MarketplacePreorderCard.js +5 -4
  251. package/dist/features/pre-orders/components/PreOrderDetailPageView.js +27 -20
  252. package/dist/features/pre-orders/components/PreOrdersIndexListing.js +17 -52
  253. package/dist/features/pre-orders/components/PreorderCard.d.ts +0 -9
  254. package/dist/features/pre-orders/components/PreorderCard.js +2 -13
  255. package/dist/features/pre-orders/components/index.d.ts +1 -1
  256. package/dist/features/pre-orders/components/index.js +1 -1
  257. package/dist/features/pre-orders/schemas/index.d.ts +10 -10
  258. package/dist/features/products/api/[id]/route.js +9 -7
  259. package/dist/features/products/api/route.js +1 -1
  260. package/dist/features/products/columns/productTableColumns.js +2 -2
  261. package/dist/features/products/components/AuctionsIndexListing.js +15 -51
  262. package/dist/features/products/components/BidHistory.js +2 -2
  263. package/dist/features/products/components/CompareOverlay.js +3 -2
  264. package/dist/features/products/components/MakeOfferButton.js +20 -14
  265. package/dist/features/products/components/MarketplacePrizeDrawCard.js +2 -1
  266. package/dist/features/products/components/PrizeDrawCollage.d.ts +1 -15
  267. package/dist/features/products/components/PrizeDrawCollage.js +54 -14
  268. package/dist/features/products/components/PrizeDrawDetailPageView.js +2 -1
  269. package/dist/features/products/components/PrizeDrawEntryActions.js +2 -1
  270. package/dist/features/products/components/PrizeDrawItemsEditor.js +9 -7
  271. package/dist/features/products/components/PrizeDrawsIndexListing.js +18 -51
  272. package/dist/features/products/components/PrizeRevealModal.js +24 -14
  273. package/dist/features/products/components/ProductDetailPageView.js +2 -1
  274. package/dist/features/products/components/ProductFilters.js +8 -6
  275. package/dist/features/products/components/ProductForm.js +12 -10
  276. package/dist/features/products/components/ProductGalleryClient.js +2 -1
  277. package/dist/features/products/components/ProductGrid.js +11 -14
  278. package/dist/features/products/components/ProductsIndexListing.js +16 -52
  279. package/dist/features/products/components/ProductsIndexPageView.js +2 -2
  280. package/dist/features/products/schemas/index.d.ts +56 -56
  281. package/dist/features/products/schemas/product-features.validators.d.ts +14 -14
  282. package/dist/features/promotions/components/CouponsIndexListing.js +1 -1
  283. package/dist/features/promotions/schemas/index.d.ts +6 -6
  284. package/dist/features/reviews/actions/review-actions.js +6 -5
  285. package/dist/features/reviews/api/[id]/route.js +4 -3
  286. package/dist/features/reviews/components/ReviewDetailPageView.js +2 -2
  287. package/dist/features/reviews/components/ReviewDetailShell.js +6 -3
  288. package/dist/features/reviews/components/ReviewsIndexListing.js +2 -2
  289. package/dist/features/reviews/schemas/index.d.ts +6 -6
  290. package/dist/features/scams/components/ScamProfileView.js +19 -10
  291. package/dist/features/scams/components/ScamRegistryView.js +2 -1
  292. package/dist/features/search/components/Search.d.ts +1 -1
  293. package/dist/features/search/components/Search.js +56 -49
  294. package/dist/features/search/schemas/index.d.ts +5 -5
  295. package/dist/features/seller/actions/offer-actions.js +11 -9
  296. package/dist/features/seller/components/SellerAddressesView.js +6 -4
  297. package/dist/features/seller/components/SellerBidsView.js +2 -2
  298. package/dist/features/seller/components/SellerCouponsView.js +1 -1
  299. package/dist/features/seller/components/SellerOffersPanel.js +6 -1
  300. package/dist/features/seller/components/SellerOrdersView.js +1 -1
  301. package/dist/features/seller/components/SellerPayoutSettingsView.js +3 -3
  302. package/dist/features/seller/components/SellerPreOrdersView.js +5 -4
  303. package/dist/features/seller/components/SellerPrizeDrawsView.js +5 -4
  304. package/dist/features/seller/components/SellerProductShell.d.ts +19 -1
  305. package/dist/features/seller/components/SellerProductShell.js +75 -9
  306. package/dist/features/seller/components/SellerProductsView.js +10 -11
  307. package/dist/features/seller/components/SellerShippingView.js +3 -3
  308. package/dist/features/seller/components/SellerSidebar.js +10 -7
  309. package/dist/features/seller/components/SellerStorefrontView.js +3 -3
  310. package/dist/features/seller/schemas/index.d.ts +4 -4
  311. package/dist/features/shell/FormShell.js +2 -1
  312. package/dist/features/shell/QuickFormDrawer.js +4 -3
  313. package/dist/features/shell/StepForm.js +4 -3
  314. package/dist/features/stores/actions/store-query-actions.js +4 -3
  315. package/dist/features/stores/components/StoreAboutView.js +2 -1
  316. package/dist/features/stores/components/StoreAuctionsListing.js +43 -64
  317. package/dist/features/stores/components/StoreDetailLayoutView.js +2 -2
  318. package/dist/features/stores/components/StorePreOrdersListing.js +33 -57
  319. package/dist/features/stores/components/StoreProductsListing.js +16 -49
  320. package/dist/features/stores/components/StoresIndexListing.js +2 -2
  321. package/dist/features/stores/schemas/index.d.ts +2 -2
  322. package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +8 -7
  323. package/dist/features/wishlist/hooks/useGuestWishlist.d.ts +5 -5
  324. package/dist/features/wishlist/hooks/useWishlistWithGuest.d.ts +6 -6
  325. package/dist/features/wishlist/utils/guest-wishlist.d.ts +5 -5
  326. package/dist/index.d.ts +21 -3
  327. package/dist/index.js +1737 -1725
  328. package/dist/monitoring/server-logger.js +5 -9
  329. package/dist/next/api/apiHandler.js +56 -37
  330. package/dist/next/components/GlobalError.js +2 -1
  331. package/dist/next/routing/route-map.d.ts +27 -0
  332. package/dist/next/routing/route-map.js +10 -0
  333. package/dist/react/ErrorBoundary.js +2 -1
  334. package/dist/react/contexts/SessionContext.js +38 -28
  335. package/dist/react/hooks/useCamera.d.ts +1 -1
  336. package/dist/react/hooks/useCamera.js +8 -7
  337. package/dist/seed/site-settings-seed-data.js +6 -0
  338. package/dist/server-entry.d.ts +3 -0
  339. package/dist/server-entry.js +3 -0
  340. package/dist/server.d.ts +12 -0
  341. package/dist/server.js +15 -0
  342. package/dist/tailwind-utilities.css +1 -1
  343. package/dist/ui/DataTable.js +28 -7
  344. package/dist/ui/components/Button.d.ts +8 -1
  345. package/dist/ui/components/Button.js +47 -8
  346. package/dist/ui/components/CollageLightbox.d.ts +18 -0
  347. package/dist/ui/components/CollageLightbox.js +41 -0
  348. package/dist/ui/components/Dropdown.js +7 -6
  349. package/dist/ui/components/ImageLightbox.d.ts +7 -1
  350. package/dist/ui/components/ImageLightbox.js +15 -5
  351. package/dist/ui/components/PageLoader.js +4 -3
  352. package/dist/ui/components/PaginatedMultiSelect.d.ts +28 -0
  353. package/dist/ui/components/PaginatedMultiSelect.js +141 -0
  354. package/dist/ui/components/PaginatedMultiSelect.style.css +272 -0
  355. package/dist/ui/components/Semantic.js +1 -1
  356. package/dist/ui/components/SideDrawer.js +17 -15
  357. package/dist/ui/components/index.style.css +1 -0
  358. package/dist/ui/index.d.ts +2 -0
  359. package/dist/ui/index.js +1 -0
  360. package/dist/utils/number.formatter.js +5 -13
  361. package/dist/utils/string.formatter.js +21 -18
  362. package/dist/validation/schemas.d.ts +2 -2
  363. package/package.json +2 -2
@@ -68,6 +68,7 @@ export const ACTIONS = {
68
68
  "add-to-cart": {
69
69
  id: "product.add-to-cart",
70
70
  label: "Add to cart",
71
+ ariaLabel: "Add to cart",
71
72
  description: "Add a standard listing to the buyer's cart.",
72
73
  kind: "primary",
73
74
  listingTypeScope: ["standard", "pre-order", "prize-draw", "digital-code", "live"],
@@ -79,6 +80,41 @@ export const ACTIONS = {
79
80
  kind: "primary",
80
81
  listingTypeScope: ["standard", "pre-order"],
81
82
  },
83
+ "add-to-wishlist": {
84
+ id: "product.add-to-wishlist",
85
+ label: "Save",
86
+ ariaLabel: "Add to wishlist",
87
+ description: "Bookmark this listing into the buyer's wishlist.",
88
+ kind: "ghost",
89
+ },
90
+ "remove-from-wishlist": {
91
+ id: "product.remove-from-wishlist",
92
+ label: "Saved",
93
+ ariaLabel: "Remove from wishlist",
94
+ description: "Remove this listing from the buyer's wishlist.",
95
+ kind: "ghost",
96
+ },
97
+ "share": {
98
+ id: "product.share",
99
+ label: "Share",
100
+ ariaLabel: "Share this listing",
101
+ description: "Open the native share sheet or copy the listing URL.",
102
+ kind: "ghost",
103
+ },
104
+ "compare": {
105
+ id: "product.compare",
106
+ label: "Compare",
107
+ ariaLabel: "Add to comparison",
108
+ description: "Add this listing to the side-by-side comparison panel.",
109
+ kind: "ghost",
110
+ },
111
+ "make-offer": {
112
+ id: "product.make-offer",
113
+ label: "Make an offer",
114
+ description: "Propose a price to the seller for a classified listing.",
115
+ kind: "secondary",
116
+ listingTypeScope: ["classified"],
117
+ },
82
118
  },
83
119
  AUCTION: {
84
120
  "place-bid": {
@@ -95,9 +131,61 @@ export const ACTIONS = {
95
131
  kind: "secondary",
96
132
  listingTypeScope: ["auction"],
97
133
  },
134
+ "watch": {
135
+ id: "auction.watch",
136
+ label: "Watch auction",
137
+ ariaLabel: "Watch this auction",
138
+ description: "Subscribe to bid activity and ending-soon alerts for this auction.",
139
+ kind: "ghost",
140
+ listingTypeScope: ["auction"],
141
+ },
142
+ "unwatch": {
143
+ id: "auction.unwatch",
144
+ label: "Watching",
145
+ ariaLabel: "Stop watching this auction",
146
+ description: "Unsubscribe from bid activity alerts for this auction.",
147
+ kind: "ghost",
148
+ listingTypeScope: ["auction"],
149
+ },
150
+ },
151
+ PRE_ORDER: {
152
+ "reserve-now": {
153
+ id: "pre-order.reserve-now",
154
+ label: "Reserve now",
155
+ description: "Lock in a pre-order reservation for this listing.",
156
+ kind: "primary",
157
+ listingTypeScope: ["pre-order"],
158
+ },
159
+ "cancel-reservation": {
160
+ id: "pre-order.cancel-reservation",
161
+ label: "Cancel reservation",
162
+ description: "Cancel the buyer's pre-order reservation.",
163
+ kind: "danger",
164
+ listingTypeScope: ["pre-order"],
165
+ confirmation: {
166
+ title: "Cancel reservation?",
167
+ body: "Your reservation will be released and the spot may be taken by another buyer.",
168
+ confirmLabel: "Cancel reservation",
169
+ confirmKind: "danger",
170
+ },
171
+ },
172
+ },
173
+ PRIZE_DRAW: {
174
+ "enter-draw": {
175
+ id: "prize-draw.enter-draw",
176
+ label: "Enter draw",
177
+ description: "Purchase an entry into the prize draw.",
178
+ kind: "primary",
179
+ listingTypeScope: ["prize-draw"],
180
+ },
181
+ "reveal-code": {
182
+ id: "prize-draw.reveal-code",
183
+ label: "Reveal code",
184
+ description: "Reveal the buyer's prize-draw redemption code.",
185
+ kind: "primary",
186
+ listingTypeScope: ["prize-draw"],
187
+ },
98
188
  },
99
- PRE_ORDER: {},
100
- PRIZE_DRAW: {},
101
189
  CLASSIFIED: {
102
190
  "contact-seller": {
103
191
  id: "classified.contact-seller",
@@ -107,8 +195,24 @@ export const ACTIONS = {
107
195
  listingTypeScope: ["classified"],
108
196
  },
109
197
  },
110
- DIGITAL_CODE: {},
111
- LIVE: {},
198
+ DIGITAL_CODE: {
199
+ "claim-code": {
200
+ id: "digital-code.claim-code",
201
+ label: "Claim code",
202
+ description: "Purchase and immediately reveal a digital code.",
203
+ kind: "primary",
204
+ listingTypeScope: ["digital-code"],
205
+ },
206
+ },
207
+ LIVE: {
208
+ "inquire": {
209
+ id: "live.inquire",
210
+ label: "Inquire",
211
+ description: "Open a conversation with the seller about a live-item listing.",
212
+ kind: "primary",
213
+ listingTypeScope: ["live"],
214
+ },
215
+ },
112
216
  BUNDLE: {
113
217
  "add-bundle-to-cart": {
114
218
  id: "bundle.add-to-cart",
@@ -122,10 +226,165 @@ export const ACTIONS = {
122
226
  CATEGORY: {},
123
227
  BRAND: {},
124
228
  SUBLISTING: {},
125
- STORE: {},
229
+ STORE: {
230
+ "follow": {
231
+ id: "store.follow",
232
+ label: "Follow",
233
+ ariaLabel: "Follow this store",
234
+ description: "Subscribe to new listing and sale notifications from this store.",
235
+ kind: "secondary",
236
+ },
237
+ "unfollow": {
238
+ id: "store.unfollow",
239
+ label: "Following",
240
+ ariaLabel: "Unfollow this store",
241
+ description: "Unsubscribe from this store's notifications.",
242
+ kind: "ghost",
243
+ },
244
+ "view-all": {
245
+ id: "store.view-all",
246
+ label: "View all",
247
+ ariaLabel: "View all listings from this store",
248
+ description: "Navigate to the full product listing for this store.",
249
+ kind: "link",
250
+ },
251
+ "edit-listing": {
252
+ id: "store.edit-listing",
253
+ label: "Edit",
254
+ ariaLabel: "Edit listing",
255
+ description: "Navigate to the edit form for this store listing.",
256
+ kind: "ghost",
257
+ permissions: ["seller", "admin"],
258
+ },
259
+ "delete-listing": {
260
+ id: "store.delete-listing",
261
+ label: "Delete",
262
+ ariaLabel: "Delete listing",
263
+ description: "Permanently delete this store listing.",
264
+ kind: "danger",
265
+ permissions: ["seller", "admin"],
266
+ confirmation: {
267
+ title: "Delete listing?",
268
+ body: "This listing will be permanently removed. This action cannot be undone.",
269
+ confirmLabel: "Delete listing",
270
+ confirmKind: "danger",
271
+ },
272
+ },
273
+ "publish-listing": {
274
+ id: "store.publish-listing",
275
+ label: "Publish",
276
+ description: "Make this listing visible to buyers.",
277
+ kind: "primary",
278
+ permissions: ["seller", "admin"],
279
+ },
280
+ "unpublish-listing": {
281
+ id: "store.unpublish-listing",
282
+ label: "Unpublish",
283
+ description: "Hide this listing from buyers.",
284
+ kind: "secondary",
285
+ permissions: ["seller", "admin"],
286
+ },
287
+ "mark-shipped": {
288
+ id: "store.mark-shipped",
289
+ label: "Mark as shipped",
290
+ description: "Update an order status to shipped and enter tracking info.",
291
+ kind: "primary",
292
+ permissions: ["seller", "admin"],
293
+ },
294
+ "request-payout": {
295
+ id: "store.request-payout",
296
+ label: "Request payout",
297
+ description: "Submit a payout request for available store earnings.",
298
+ kind: "primary",
299
+ permissions: ["seller"],
300
+ },
301
+ "save-changes": {
302
+ id: "store.save-changes",
303
+ label: "Save changes",
304
+ description: "Submit the store listing or settings form.",
305
+ kind: "primary",
306
+ permissions: ["seller", "admin"],
307
+ },
308
+ },
126
309
  BLOG: {},
127
- EVENT: {},
128
- USER: {},
310
+ EVENT: {
311
+ "register": {
312
+ id: "event.register",
313
+ label: "Register",
314
+ description: "Register to participate in this event.",
315
+ kind: "primary",
316
+ },
317
+ "cancel-registration": {
318
+ id: "event.cancel-registration",
319
+ label: "Cancel registration",
320
+ description: "Cancel participation in this event.",
321
+ kind: "danger",
322
+ confirmation: {
323
+ title: "Cancel registration?",
324
+ body: "Your spot will be released and you may not be able to re-register if it fills up.",
325
+ confirmLabel: "Yes, cancel",
326
+ confirmKind: "danger",
327
+ },
328
+ },
329
+ },
330
+ USER: {
331
+ "cancel-order": {
332
+ id: "user.cancel-order",
333
+ label: "Cancel Order",
334
+ description: "Cancel a pending or confirmed order.",
335
+ kind: "danger",
336
+ confirmation: {
337
+ title: "Cancel this order?",
338
+ body: "Your order will be cancelled. Refunds are processed within 5–7 business days.",
339
+ confirmLabel: "Cancel order",
340
+ confirmKind: "danger",
341
+ },
342
+ },
343
+ "request-return": {
344
+ id: "user.request-return",
345
+ label: "Request return",
346
+ description: "Raise a return request for a delivered order.",
347
+ kind: "secondary",
348
+ },
349
+ "save-settings": {
350
+ id: "user.save-settings",
351
+ label: "Save changes",
352
+ description: "Submit the user settings form.",
353
+ kind: "primary",
354
+ },
355
+ "send-verification-email": {
356
+ id: "user.send-verification-email",
357
+ label: "Send Verification Email",
358
+ description: "Send a verification link to the new email address.",
359
+ kind: "secondary",
360
+ },
361
+ "update-password": {
362
+ id: "user.update-password",
363
+ label: "Update Password",
364
+ description: "Submit the change-password form.",
365
+ kind: "secondary",
366
+ },
367
+ "delete-address": {
368
+ id: "user.delete-address",
369
+ label: "Delete address",
370
+ ariaLabel: "Delete address",
371
+ description: "Permanently remove a saved delivery address.",
372
+ kind: "danger",
373
+ confirmation: {
374
+ title: "Delete address?",
375
+ body: "This address will be removed and cannot be recovered.",
376
+ confirmLabel: "Delete",
377
+ confirmKind: "danger",
378
+ },
379
+ },
380
+ "set-default-address": {
381
+ id: "user.set-default-address",
382
+ label: "Set as default",
383
+ ariaLabel: "Set as default address",
384
+ description: "Mark this address as the default delivery address.",
385
+ kind: "ghost",
386
+ },
387
+ },
129
388
  SELLER: {},
130
389
  ADMIN: {},
131
390
  CART: {
@@ -141,6 +400,25 @@ export const ACTIONS = {
141
400
  confirmKind: "danger",
142
401
  },
143
402
  },
403
+ "remove-item": {
404
+ id: "cart.remove-item",
405
+ label: "Remove",
406
+ ariaLabel: "Remove item from cart",
407
+ description: "Remove a single line item from the cart.",
408
+ kind: "ghost",
409
+ },
410
+ "checkout": {
411
+ id: "cart.checkout",
412
+ label: "Proceed to checkout",
413
+ description: "Navigate from the cart page to the checkout flow.",
414
+ kind: "primary",
415
+ },
416
+ "continue-shopping": {
417
+ id: "cart.continue-shopping",
418
+ label: "Continue shopping",
419
+ description: "Navigate back from the cart to the product catalogue.",
420
+ kind: "ghost",
421
+ },
144
422
  },
145
423
  CHECKOUT: {
146
424
  "place-order": {
@@ -150,7 +428,31 @@ export const ACTIONS = {
150
428
  kind: "primary",
151
429
  },
152
430
  },
153
- NAV: {},
431
+ NAV: {
432
+ "sign-in": {
433
+ id: "nav.sign-in",
434
+ label: "Sign in",
435
+ description: "Navigate to the sign-in page.",
436
+ kind: "primary",
437
+ },
438
+ "sign-up": {
439
+ id: "nav.sign-up",
440
+ label: "Sign up",
441
+ description: "Navigate to the registration page.",
442
+ kind: "secondary",
443
+ },
444
+ "sign-out": {
445
+ id: "nav.sign-out",
446
+ label: "Sign out",
447
+ description: "End the current session.",
448
+ kind: "ghost",
449
+ confirmation: {
450
+ title: "Sign out?",
451
+ body: "You'll need to sign back in to access your account.",
452
+ confirmLabel: "Sign out",
453
+ },
454
+ },
455
+ },
154
456
  MEDIA: {},
155
457
  SUPPORT: {},
156
458
  };
@@ -17,9 +17,9 @@ export declare const blogPostInputSchema: z.ZodObject<{
17
17
  title: string;
18
18
  content: string;
19
19
  category: string;
20
+ slug: string;
20
21
  tags: string[];
21
22
  isFeatured: boolean;
22
- slug: string;
23
23
  youtubeId?: string | undefined;
24
24
  coverImage?: string | undefined;
25
25
  excerpt?: string | undefined;
@@ -31,9 +31,9 @@ export declare const blogPostInputSchema: z.ZodObject<{
31
31
  category: string;
32
32
  slug: string;
33
33
  status?: "draft" | "published" | undefined;
34
+ youtubeId?: string | undefined;
34
35
  tags?: string[] | undefined;
35
36
  isFeatured?: boolean | undefined;
36
- youtubeId?: string | undefined;
37
37
  coverImage?: string | undefined;
38
38
  excerpt?: string | undefined;
39
39
  metaTitle?: string | undefined;
@@ -56,10 +56,10 @@ export declare const blogPostUpdateSchema: z.ZodObject<Omit<{
56
56
  status?: "draft" | "published" | undefined;
57
57
  title?: string | undefined;
58
58
  content?: string | undefined;
59
+ youtubeId?: string | undefined;
59
60
  category?: string | undefined;
60
61
  tags?: string[] | undefined;
61
62
  isFeatured?: boolean | undefined;
62
- youtubeId?: string | undefined;
63
63
  coverImage?: string | undefined;
64
64
  excerpt?: string | undefined;
65
65
  metaTitle?: string | undefined;
@@ -68,10 +68,10 @@ export declare const blogPostUpdateSchema: z.ZodObject<Omit<{
68
68
  status?: "draft" | "published" | undefined;
69
69
  title?: string | undefined;
70
70
  content?: string | undefined;
71
+ youtubeId?: string | undefined;
71
72
  category?: string | undefined;
72
73
  tags?: string[] | undefined;
73
74
  isFeatured?: boolean | undefined;
74
- youtubeId?: string | undefined;
75
75
  coverImage?: string | undefined;
76
76
  excerpt?: string | undefined;
77
77
  metaTitle?: string | undefined;
@@ -11,9 +11,9 @@ export declare const brandInputSchema: z.ZodObject<{
11
11
  isActive: z.ZodDefault<z.ZodBoolean>;
12
12
  displayOrder: z.ZodDefault<z.ZodNumber>;
13
13
  }, "strip", z.ZodTypeAny, {
14
+ slug: string;
14
15
  name: string;
15
16
  isActive: boolean;
16
- slug: string;
17
17
  displayOrder: number;
18
18
  country?: string | undefined;
19
19
  description?: string | undefined;
@@ -22,11 +22,11 @@ export declare const brandInputSchema: z.ZodObject<{
22
22
  bannerURL?: string | undefined;
23
23
  founded?: number | undefined;
24
24
  }, {
25
- name: string;
26
25
  slug: string;
26
+ name: string;
27
27
  country?: string | undefined;
28
- isActive?: boolean | undefined;
29
28
  description?: string | undefined;
29
+ isActive?: boolean | undefined;
30
30
  website?: string | undefined;
31
31
  displayOrder?: number | undefined;
32
32
  logoURL?: string | undefined;
@@ -46,9 +46,9 @@ export declare const brandUpdateSchema: z.ZodObject<Omit<{
46
46
  displayOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
47
47
  }, "slug">, "strip", z.ZodTypeAny, {
48
48
  country?: string | undefined;
49
+ description?: string | undefined;
49
50
  name?: string | undefined;
50
51
  isActive?: boolean | undefined;
51
- description?: string | undefined;
52
52
  website?: string | undefined;
53
53
  displayOrder?: number | undefined;
54
54
  logoURL?: string | undefined;
@@ -56,9 +56,9 @@ export declare const brandUpdateSchema: z.ZodObject<Omit<{
56
56
  founded?: number | undefined;
57
57
  }, {
58
58
  country?: string | undefined;
59
+ description?: string | undefined;
59
60
  name?: string | undefined;
60
61
  isActive?: boolean | undefined;
61
- description?: string | undefined;
62
62
  website?: string | undefined;
63
63
  displayOrder?: number | undefined;
64
64
  logoURL?: string | undefined;
@@ -15,26 +15,26 @@ export declare const addToCartSchema: z.ZodObject<{
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  currency: string;
17
17
  storeId: string;
18
+ listingType: "standard" | "auction" | "pre-order" | "prize-draw";
19
+ price: number;
20
+ storeName: string;
18
21
  productId: string;
19
22
  quantity: number;
20
23
  productTitle: string;
21
24
  productImage: string;
22
- price: number;
23
- storeName: string;
24
- listingType: "auction" | "standard" | "pre-order" | "prize-draw";
25
25
  offerId?: string | undefined;
26
26
  lockedPrice?: number | undefined;
27
27
  isOffer?: boolean | undefined;
28
28
  }, {
29
29
  storeId: string;
30
+ listingType: "standard" | "auction" | "pre-order" | "prize-draw";
31
+ price: number;
30
32
  productId: string;
31
33
  productTitle: string;
32
- price: number;
33
- listingType: "auction" | "standard" | "pre-order" | "prize-draw";
34
34
  currency?: string | undefined;
35
+ storeName?: string | undefined;
35
36
  quantity?: number | undefined;
36
37
  productImage?: string | undefined;
37
- storeName?: string | undefined;
38
38
  offerId?: string | undefined;
39
39
  lockedPrice?: number | undefined;
40
40
  isOffer?: boolean | undefined;
@@ -73,26 +73,26 @@ export declare const mergeGuestCartSchema: z.ZodObject<{
73
73
  }, "strip", z.ZodTypeAny, {
74
74
  currency: string;
75
75
  storeId: string;
76
+ listingType: "standard" | "auction" | "pre-order" | "prize-draw";
77
+ price: number;
78
+ storeName: string;
76
79
  productId: string;
77
80
  quantity: number;
78
81
  productTitle: string;
79
82
  productImage: string;
80
- price: number;
81
- storeName: string;
82
- listingType: "auction" | "standard" | "pre-order" | "prize-draw";
83
83
  offerId?: string | undefined;
84
84
  lockedPrice?: number | undefined;
85
85
  isOffer?: boolean | undefined;
86
86
  }, {
87
87
  storeId: string;
88
+ listingType: "standard" | "auction" | "pre-order" | "prize-draw";
89
+ price: number;
88
90
  productId: string;
89
91
  productTitle: string;
90
- price: number;
91
- listingType: "auction" | "standard" | "pre-order" | "prize-draw";
92
92
  currency?: string | undefined;
93
+ storeName?: string | undefined;
93
94
  quantity?: number | undefined;
94
95
  productImage?: string | undefined;
95
- storeName?: string | undefined;
96
96
  offerId?: string | undefined;
97
97
  lockedPrice?: number | undefined;
98
98
  isOffer?: boolean | undefined;
@@ -101,13 +101,13 @@ export declare const mergeGuestCartSchema: z.ZodObject<{
101
101
  guestItems: {
102
102
  currency: string;
103
103
  storeId: string;
104
+ listingType: "standard" | "auction" | "pre-order" | "prize-draw";
105
+ price: number;
106
+ storeName: string;
104
107
  productId: string;
105
108
  quantity: number;
106
109
  productTitle: string;
107
110
  productImage: string;
108
- price: number;
109
- storeName: string;
110
- listingType: "auction" | "standard" | "pre-order" | "prize-draw";
111
111
  offerId?: string | undefined;
112
112
  lockedPrice?: number | undefined;
113
113
  isOffer?: boolean | undefined;
@@ -115,14 +115,14 @@ export declare const mergeGuestCartSchema: z.ZodObject<{
115
115
  }, {
116
116
  guestItems: {
117
117
  storeId: string;
118
+ listingType: "standard" | "auction" | "pre-order" | "prize-draw";
119
+ price: number;
118
120
  productId: string;
119
121
  productTitle: string;
120
- price: number;
121
- listingType: "auction" | "standard" | "pre-order" | "prize-draw";
122
122
  currency?: string | undefined;
123
+ storeName?: string | undefined;
123
124
  quantity?: number | undefined;
124
125
  productImage?: string | undefined;
125
- storeName?: string | undefined;
126
126
  offerId?: string | undefined;
127
127
  lockedPrice?: number | undefined;
128
128
  isOffer?: boolean | undefined;
@@ -69,7 +69,7 @@ export declare const BUNDLE_COPY: {
69
69
  };
70
70
  readonly adminEditor: {
71
71
  readonly loading: "Loading bundle…";
72
- readonly saveButton: (saving: boolean, isEdit: boolean) => "Saving…" | "Save changes" | "Create bundle";
72
+ readonly saveButton: (saving: boolean, isEdit: boolean) => "Save changes" | "Saving…" | "Create bundle";
73
73
  readonly deleteButton: (deleting: boolean) => "Deleting…" | "Delete bundle";
74
74
  readonly deleteConfirm: "Delete this bundle? This action cannot be undone.";
75
75
  readonly fields: {