@mohasinac/appkit 4.12.0 → 4.12.2

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 (68) hide show
  1. package/dist/_internal/server/features/auctions/service.d.ts +7 -1
  2. package/dist/_internal/server/features/auctions/service.js +13 -5
  3. package/dist/_internal/server/features/checkout/actions.d.ts +0 -15
  4. package/dist/_internal/server/features/checkout/actions.js +7 -3
  5. package/dist/_internal/server/features/orders/actions.js +5 -3
  6. package/dist/_internal/server/functions/firestore.d.ts +1 -2
  7. package/dist/_internal/server/functions/firestore.js +1 -9
  8. package/dist/_internal/server/jobs/core/index.d.ts +0 -1
  9. package/dist/_internal/server/jobs/core/index.js +0 -1
  10. package/dist/_internal/server/jobs/core/offerExpiry.js +33 -1
  11. package/dist/_internal/server/jobs/handlers/index.d.ts +1 -2
  12. package/dist/_internal/server/jobs/handlers/index.js +1 -2
  13. package/dist/_internal/shared/features/auctions/config.d.ts +34 -0
  14. package/dist/_internal/shared/features/auctions/config.js +47 -3
  15. package/dist/_internal/shared/listing-types/auction/config.js +1 -1
  16. package/dist/_internal/shared/listing-types/digital-code/config.js +1 -1
  17. package/dist/_internal/shared/listing-types/live/config.js +1 -1
  18. package/dist/_internal/shared/listing-types/pre-order/config.js +1 -1
  19. package/dist/features/account/components/NotificationBell.js +1 -1
  20. package/dist/features/admin/components/AdminNotificationsView.js +4 -1
  21. package/dist/features/admin/components/AdminOrderEditorView.d.ts +7 -1
  22. package/dist/features/admin/components/AdminOrderEditorView.js +16 -4
  23. package/dist/features/admin/components/AdminOrdersView.js +2 -1
  24. package/dist/features/auctions/actions/bid-actions.js +71 -9
  25. package/dist/features/auctions/components/AuctionDetailPageView.js +8 -2
  26. package/dist/features/auctions/components/MarketplaceAuctionCard.js +3 -3
  27. package/dist/features/auctions/components/PlaceBidFormClient.js +89 -14
  28. package/dist/features/auctions/schemas/bid-input.d.ts +19 -6
  29. package/dist/features/auctions/schemas/bid-input.js +19 -7
  30. package/dist/features/auth/repository/user.repository.js +6 -0
  31. package/dist/features/faq/components/FAQHelpfulButtons.js +2 -2
  32. package/dist/features/filters/FilterFacetSection.js +1 -1
  33. package/dist/features/homepage/components/WhatsAppCommunitySection.js +1 -1
  34. package/dist/features/layout/BackToTop.js +1 -1
  35. package/dist/features/layout/BottomActions.js +1 -1
  36. package/dist/features/layout/FooterLayout.js +2 -2
  37. package/dist/features/layout/TitleBarLayout.js +1 -1
  38. package/dist/features/pre-orders/components/MarketplacePreorderCard.js +3 -3
  39. package/dist/features/products/components/MarketplaceBundleCard.js +2 -2
  40. package/dist/features/products/components/MarketplacePrizeDrawCard.js +2 -2
  41. package/dist/features/products/components/PrizeDrawCollage.js +1 -1
  42. package/dist/features/products/components/PrizeDrawItemsEditor.js +1 -1
  43. package/dist/features/products/components/ProductDetailPageView.js +1 -1
  44. package/dist/features/products/components/ProductGrid.js +3 -3
  45. package/dist/features/products/repository/products.repository.d.ts +0 -4
  46. package/dist/features/products/repository/products.repository.js +0 -15
  47. package/dist/features/promotions/repository/coupons.repository.d.ts +12 -0
  48. package/dist/features/promotions/repository/coupons.repository.js +12 -0
  49. package/dist/features/seller/components/SellerSidebar.js +1 -1
  50. package/dist/features/tester/seed-data/tester-checklist-seed-data.js +279 -0
  51. package/dist/features/whatsapp-bot/components/WhatsAppChatButton.js +1 -1
  52. package/dist/jobs.d.ts +1 -1
  53. package/dist/jobs.js +1 -1
  54. package/dist/seed/homepage-sections-seed-data.js +5 -1
  55. package/dist/seed/site-settings-seed-data.js +18 -0
  56. package/dist/styles.css +55 -1
  57. package/dist/tailwind-utilities.css +1 -1
  58. package/dist/tokens/color-pairs.js +1 -0
  59. package/dist/tokens/tokens.css +33 -0
  60. package/dist/ui/components/Button.style.css +21 -0
  61. package/dist/ui/components/ImageLightbox.js +7 -4
  62. package/dist/ui/components/surface-tokens.d.ts +7 -0
  63. package/dist/ui/components/surface-tokens.js +7 -0
  64. package/package.json +1 -1
  65. package/dist/_internal/server/jobs/core/onBidPlaced.d.ts +0 -15
  66. package/dist/_internal/server/jobs/core/onBidPlaced.js +0 -63
  67. package/dist/_internal/server/jobs/handlers/onBidPlaced.d.ts +0 -3
  68. package/dist/_internal/server/jobs/handlers/onBidPlaced.js +0 -9
@@ -279,7 +279,11 @@ export const homepageSectionsSeedData = [
279
279
  config: {
280
280
  title: "Join the LetItRip Collectors Community",
281
281
  description: "Connect with Indian collectors on WhatsApp. Share pulls, get authentication help, and be first to know about new drops.",
282
- groupLink: "https://chat.whatsapp.com/letitrip-collectors",
282
+ // Real invite. The previous value ("…/letitrip-collectors") was not a valid
283
+ // WhatsApp invite code, so the homepage CTA opened a dead link. Stored
284
+ // canonical — the ?s=/&p=/&mlu= params on a shared link are share-sheet
285
+ // attribution from the copying device, not part of the invite.
286
+ groupLink: "https://chat.whatsapp.com/JOlbdSwhVWYDKujolcBZDr",
283
287
  memberCount: 1200,
284
288
  benefits: [
285
289
  "First look at rare listings before they go live",
@@ -14,6 +14,7 @@
14
14
  */
15
15
  import { seedExtMedia } from "./_helpers/media";
16
16
  import { ROUTES } from "../next/routing/route-map";
17
+ import { DEFAULT_AUCTION_BID_INCREMENT_TIERS } from "../_internal/shared/features/auctions/config";
17
18
  const NOW = new Date();
18
19
  const daysAgo = (n) => new Date(NOW.getTime() - n * 86400000);
19
20
  const adPlacementsSeed = [
@@ -440,6 +441,23 @@ export const siteSettingsSeedData = {
440
441
  },
441
442
  ],
442
443
  },
444
+ // This block was missing entirely until 2026-08-21, and it is the data-layer
445
+ // half of the "+₹1 / +₹5 / +₹10 quick-bid buttons" bug. `DEFAULT_SITE_SETTINGS_DATA`
446
+ // (features/admin/schemas/firestore.ts) has always carried an `auctionConfig`,
447
+ // but that object is not what writes Firestore — this seed file is, and it
448
+ // declared no `auctionConfig` at all. The seed CLI runs the payload through
449
+ // `stripUndefined()` and writes with `{ merge: true }`, so an absent key is
450
+ // simply skipped: no `appkit-seed load`, however many times it ran, could ever
451
+ // create `auctionConfig.bidIncrementTiers`. Every caller then read
452
+ // `settings.auctionConfig?.bidIncrementTiers ?? []` and resolved the ₹1
453
+ // last-resort increment. Sourced from the shared constant so the seed, the
454
+ // schema default and the admin editor's initial state cannot drift apart —
455
+ // which is exactly what that constant's docstring already claimed.
456
+ auctionConfig: {
457
+ bidIncrementTiers: DEFAULT_AUCTION_BID_INCREMENT_TIERS,
458
+ autoExtendWindowMinutes: 5,
459
+ settlementGracePeriodHours: 24,
460
+ },
443
461
  commissions: {
444
462
  platformFeePercent: 5,
445
463
  gstPercent: 18,