@mohasinac/appkit 3.9.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/_internal/shared/actions/action-registry.js +8 -0
  2. package/dist/client.d.ts +2 -2
  3. package/dist/client.js +1 -4
  4. package/dist/constants/api-endpoints.d.ts +3 -0
  5. package/dist/constants/api-endpoints.js +1 -0
  6. package/dist/features/account/hooks/useDataViewMode.d.ts +17 -0
  7. package/dist/features/account/hooks/useDataViewMode.js +55 -0
  8. package/dist/features/account/hooks/useProfile.d.ts +2 -0
  9. package/dist/features/admin/components/AdminBundlesView.d.ts +3 -4
  10. package/dist/features/admin/components/AdminBundlesView.js +2 -2
  11. package/dist/features/admin/components/AdminCarouselView.js +1 -1
  12. package/dist/features/admin/components/AdminCategoriesView.d.ts +2 -6
  13. package/dist/features/admin/components/AdminCategoriesView.js +1 -1
  14. package/dist/features/admin/components/AdminFaqsView.d.ts +0 -2
  15. package/dist/features/admin/components/AdminPrizeDrawsView.js +1 -1
  16. package/dist/features/admin/components/AdminSectionsView.js +4 -4
  17. package/dist/features/admin/components/DataListingView.d.ts +8 -2
  18. package/dist/features/admin/components/DataListingView.js +7 -3
  19. package/dist/features/admin/components/DataTable.d.ts +10 -2
  20. package/dist/features/admin/components/DataTable.js +4 -2
  21. package/dist/features/admin/components/sections/adminSectionsBuildParse.js +13 -5
  22. package/dist/features/admin/components/sections/adminSectionsTypes.d.ts +4 -0
  23. package/dist/features/admin/components/sections/adminSectionsTypes.js +9 -5
  24. package/dist/features/admin/hooks/useAdminListing.d.ts +2 -2
  25. package/dist/features/admin/hooks/useAdminListing.js +6 -1
  26. package/dist/features/categories/components/BrandDetailTabs.js +2 -12
  27. package/dist/features/categories/components/CategoryDetailTabs.js +2 -12
  28. package/dist/features/events/components/AdminEventsView.d.ts +1 -5
  29. package/dist/features/faq/components/FAQAccordion.js +3 -2
  30. package/dist/features/faq/components/RelatedFAQs.js +1 -1
  31. package/dist/features/homepage/components/BrandsSection.d.ts +4 -1
  32. package/dist/features/homepage/components/BrandsSection.js +2 -2
  33. package/dist/features/homepage/components/CustomCardsSection.js +3 -3
  34. package/dist/features/homepage/components/CustomerReviewsSection.d.ts +4 -1
  35. package/dist/features/homepage/components/CustomerReviewsSection.js +2 -2
  36. package/dist/features/homepage/components/EventsSection.d.ts +4 -1
  37. package/dist/features/homepage/components/EventsSection.js +2 -2
  38. package/dist/features/homepage/components/FAQSection.js +3 -3
  39. package/dist/features/homepage/components/FeaturedAuctionsSection.d.ts +2 -1
  40. package/dist/features/homepage/components/FeaturedAuctionsSection.js +2 -2
  41. package/dist/features/homepage/components/FeaturedPreOrdersSection.d.ts +2 -1
  42. package/dist/features/homepage/components/FeaturedPreOrdersSection.js +2 -2
  43. package/dist/features/homepage/components/FeaturedProductsSection.d.ts +2 -1
  44. package/dist/features/homepage/components/FeaturedProductsSection.js +2 -2
  45. package/dist/features/homepage/components/FeaturedStoresSection.d.ts +4 -1
  46. package/dist/features/homepage/components/FeaturedStoresSection.js +2 -2
  47. package/dist/features/homepage/components/HomepageCustomerReviewsSection.d.ts +4 -1
  48. package/dist/features/homepage/components/HomepageCustomerReviewsSection.js +2 -2
  49. package/dist/features/homepage/components/SectionCarousel.d.ts +3 -1
  50. package/dist/features/homepage/components/SectionCarousel.js +2 -2
  51. package/dist/features/homepage/components/ShopByCategorySection.d.ts +4 -1
  52. package/dist/features/homepage/components/ShopByCategorySection.js +2 -2
  53. package/dist/features/homepage/lib/section-renderer.js +9 -9
  54. package/dist/features/homepage/schemas/firestore.d.ts +8 -0
  55. package/dist/features/layout/FooterLayout.js +2 -2
  56. package/dist/features/lottery/schemas/zod.d.ts +4 -4
  57. package/dist/features/payments/schemas/firestore.d.ts +6 -0
  58. package/dist/features/payments/schemas/firestore.js +2 -0
  59. package/dist/features/seller/components/SellerBundlesView.d.ts +3 -4
  60. package/dist/features/seller/components/SellerBundlesView.js +2 -2
  61. package/dist/features/seller/components/SellerPayoutsView.d.ts +2 -5
  62. package/dist/features/seller/components/SellerPayoutsView.js +100 -21
  63. package/dist/features/seller/components/SellerPreOrdersView.js +1 -1
  64. package/dist/features/seller/components/SellerPrizeDrawsView.js +1 -1
  65. package/dist/features/seller/components/SellerProductsView.js +6 -2
  66. package/dist/features/shipments/components/AdminShipmentsView.d.ts +1 -5
  67. package/dist/index.d.ts +3 -5
  68. package/dist/index.js +3 -3
  69. package/dist/react/index.d.ts +0 -2
  70. package/dist/react/index.js +0 -2
  71. package/dist/seed/faq-seed-data.js +11 -11
  72. package/dist/seed/homepage-sections-seed-data.js +11 -1
  73. package/dist/styles.css +30 -99
  74. package/dist/tailwind-utilities.css +1 -1
  75. package/dist/ui/DataTable.js +1 -1
  76. package/dist/ui/DataTable.style.css +10 -0
  77. package/dist/ui/components/DetailPageTabs.d.ts +1 -1
  78. package/dist/ui/components/DetailPageTabs.js +6 -30
  79. package/dist/ui/components/HorizontalScroller.js +3 -0
  80. package/dist/ui/components/Tabs.d.ts +9 -1
  81. package/dist/ui/components/Tabs.js +13 -8
  82. package/dist/ui/components/Tabs.style.css +19 -0
  83. package/dist/ui/components/index.style.css +0 -1
  84. package/dist/ui/index.d.ts +0 -2
  85. package/dist/ui/index.js +0 -1
  86. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * WHY: Seeds 61 FAQs for LetItRip collectibles marketplace — covers general platform, shipping,
2
+ * WHY: Seeds 63 FAQs for LetItRip collectibles marketplace — covers general platform, shipping,
3
3
  * returns, payments, auctions, pre-orders, product info, account/security, scam awareness.
4
4
  * WHAT: Mix of broad collectibles marketplace FAQs + category-specific FAQs (trading cards, action figures,
5
5
  * diecast, Beyblade, model kits, grading, authenticity, bundles, prize draws), plus (Phase 17,
@@ -86,7 +86,7 @@ export const faqSeedData = [
86
86
  question: "How do I become a seller on LetItRip?",
87
87
  answer: html(`<p>Go to your Account → Become a Seller. Fill in your store details, upload verification documents, and submit for review. Our team typically approves sellers within 48 hours. Once approved, you can start listing immediately.</p>`),
88
88
  category: "general",
89
- showOnHomepage: false,
89
+ showOnHomepage: true,
90
90
  showInFooter: true,
91
91
  isPinned: false,
92
92
  order: 4,
@@ -258,7 +258,7 @@ export const faqSeedData = [
258
258
  question: "Is free shipping available?",
259
259
  answer: html(`<p>Many sellers offer free shipping on orders above a certain amount. Look for the "Free Shipping" badge on product listings. You can also use the FREESHIP999 coupon for free shipping on orders ₹999+.</p>`),
260
260
  category: "shipping_delivery",
261
- showOnHomepage: false,
261
+ showOnHomepage: true,
262
262
  showInFooter: false,
263
263
  isPinned: false,
264
264
  order: 13,
@@ -296,7 +296,7 @@ export const faqSeedData = [
296
296
  question: "How do I track my order?",
297
297
  answer: html(`<p>Once your seller ships the order, you'll receive a carrier name and tracking number via email and in-app notification. Go to Account → My Orders → click the order to see it. Paste the tracking number into the carrier's own website (India Post, DTDC, BlueDart, Delhivery, etc.) for real-time updates — sellers ship manually, so tracking is via the carrier's site, not an in-app live map.</p>`),
298
298
  category: "shipping_delivery",
299
- showOnHomepage: false,
299
+ showOnHomepage: true,
300
300
  showInFooter: false,
301
301
  isPinned: false,
302
302
  order: 15,
@@ -373,7 +373,7 @@ export const faqSeedData = [
373
373
  question: "How do I request a refund?",
374
374
  answer: html(`<p>Go to Account → My Orders → select the order → Request Refund. Describe the issue and upload photos if the item is damaged or not as described. The seller has 48 hours to respond. If they don't, LetItRip support will step in.</p>`),
375
375
  category: "returns_refunds",
376
- showOnHomepage: false,
376
+ showOnHomepage: true,
377
377
  showInFooter: false,
378
378
  isPinned: false,
379
379
  order: 19,
@@ -449,7 +449,7 @@ export const faqSeedData = [
449
449
  question: "What if I receive a counterfeit item?",
450
450
  answer: html(`<p>LetItRip has a <strong>zero-tolerance counterfeit policy</strong>. If you receive a counterfeit item, open a dispute with photo evidence. You'll receive a full refund and the seller's account will be reviewed for suspension. For high-value items, we recommend buying graded/certified products which come with third-party authentication.</p>`),
451
451
  category: "returns_refunds",
452
- showOnHomepage: false,
452
+ showOnHomepage: true,
453
453
  showInFooter: true,
454
454
  isPinned: false,
455
455
  order: 23,
@@ -488,7 +488,7 @@ export const faqSeedData = [
488
488
  question: "What payment methods are accepted?",
489
489
  answer: html(`<p>LetItRip's default payment method is <strong>Manual UPI / Bank Transfer</strong> — you pay directly and submit your payment reference, which the seller or LetItRip confirms before shipping. Where enabled, you can also pay instantly via <strong>Razorpay</strong> (cards, UPI, net banking), choose <strong>Cash on Delivery</strong> (a small deposit online plus cash on arrival), or spread the cost with <strong>EMI</strong> on eligible orders. Sellers only receive payout funds after you confirm delivery (or after the dispute window closes).</p>`),
490
490
  category: "orders_payment",
491
- showOnHomepage: false,
491
+ showOnHomepage: true,
492
492
  showInFooter: true,
493
493
  isPinned: false,
494
494
  order: 25,
@@ -660,7 +660,7 @@ export const faqSeedData = [
660
660
  question: "How can I verify if a collectible is authentic?",
661
661
  answer: html(`<p>Look for these trust signals on LetItRip: <strong>Verified Seller</strong> badge (store has passed manual review), <strong>Graded</strong> badge (PSA/BGS/CGC certified with certificate number), <strong>Sealed</strong> badge (factory-sealed product). For ungraded items, check the seller's photo quality and description detail. If in doubt, message the seller before purchasing.</p>`),
662
662
  category: "product_information",
663
- showOnHomepage: false,
663
+ showOnHomepage: true,
664
664
  showInFooter: false,
665
665
  isPinned: false,
666
666
  order: 32,
@@ -717,7 +717,7 @@ export const faqSeedData = [
717
717
  question: "What do condition grades like NM, LP, MP mean?",
718
718
  answer: html(`<p>Sellers use standard condition grades for ungraded items: <strong>NM</strong> (Near Mint) — virtually perfect, minimal handling wear. <strong>LP</strong> (Lightly Played) — minor edge wear, small scratches. <strong>MP</strong> (Moderately Played) — visible wear, light creasing. <strong>HP</strong> (Heavily Played) — significant wear, creases, whitening. <strong>Sealed</strong> — factory sealed, never opened. Always check the seller's photos for the actual condition.</p>`),
719
719
  category: "product_information",
720
- showOnHomepage: false,
720
+ showOnHomepage: true,
721
721
  showInFooter: false,
722
722
  isPinned: false,
723
723
  order: 35,
@@ -813,7 +813,7 @@ export const faqSeedData = [
813
813
  question: "How does bidding work on LetItRip?",
814
814
  answer: html(`<p>Place a bid on any active auction listing. You'll be notified if you're outbid. When the auction ends, the highest bidder wins. Some auctions have a Buy It Now (BIN) price — you can skip bidding and purchase immediately at the BIN price. Auctions auto-extend by 2 minutes if a bid is placed in the final 2 minutes to prevent sniping.</p>`),
815
815
  category: "general",
816
- showOnHomepage: false,
816
+ showOnHomepage: true,
817
817
  showInFooter: true,
818
818
  isPinned: false,
819
819
  order: 40,
@@ -909,7 +909,7 @@ export const faqSeedData = [
909
909
  question: "How do pre-orders work?",
910
910
  answer: html(`<p>Pre-orders let you reserve upcoming products with a deposit (typically 20–30% of the retail price). When the product releases and ships, you pay the remaining balance. If the seller cancels the pre-order, you receive a full refund of your deposit. Pre-orders are available for upcoming trading card sets, action figure releases, and model kit drops.</p>`),
911
911
  category: "general",
912
- showOnHomepage: false,
912
+ showOnHomepage: true,
913
913
  showInFooter: false,
914
914
  isPinned: false,
915
915
  order: 45,
@@ -86,6 +86,7 @@ export const homepageSectionsSeedData = [
86
86
  maxCategories: 4,
87
87
  autoScroll: true,
88
88
  scrollInterval: 4000,
89
+ loop: true,
89
90
  },
90
91
  createdAt: daysAgo(90),
91
92
  updatedAt: daysAgo(2),
@@ -101,6 +102,7 @@ export const homepageSectionsSeedData = [
101
102
  maxBrands: 13,
102
103
  autoScroll: true,
103
104
  scrollInterval: 3000,
105
+ loop: true,
104
106
  },
105
107
  createdAt: daysAgo(90),
106
108
  updatedAt: daysAgo(2),
@@ -119,6 +121,7 @@ export const homepageSectionsSeedData = [
119
121
  mobileItemsPerRow: 2,
120
122
  autoScroll: true,
121
123
  scrollInterval: 5000,
124
+ loop: true,
122
125
  },
123
126
  createdAt: daysAgo(90),
124
127
  updatedAt: daysAgo(2),
@@ -137,6 +140,7 @@ export const homepageSectionsSeedData = [
137
140
  mobileItemsPerRow: 1,
138
141
  autoScroll: true,
139
142
  scrollInterval: 5000,
143
+ loop: true,
140
144
  },
141
145
  createdAt: daysAgo(90),
142
146
  updatedAt: daysAgo(2),
@@ -155,6 +159,7 @@ export const homepageSectionsSeedData = [
155
159
  mobileItemsPerRow: 2,
156
160
  autoScroll: true,
157
161
  scrollInterval: 5000,
162
+ loop: true,
158
163
  },
159
164
  createdAt: daysAgo(90),
160
165
  updatedAt: daysAgo(2),
@@ -214,6 +219,7 @@ export const homepageSectionsSeedData = [
214
219
  mobileItemsPerView: 1,
215
220
  autoScroll: true,
216
221
  scrollInterval: 4000,
222
+ loop: true,
217
223
  },
218
224
  createdAt: daysAgo(90),
219
225
  updatedAt: daysAgo(2),
@@ -229,6 +235,7 @@ export const homepageSectionsSeedData = [
229
235
  maxStores: 8,
230
236
  autoScroll: true,
231
237
  scrollInterval: 4000,
238
+ loop: true,
232
239
  },
233
240
  createdAt: daysAgo(90),
234
241
  updatedAt: daysAgo(2),
@@ -244,6 +251,7 @@ export const homepageSectionsSeedData = [
244
251
  maxEvents: 6,
245
252
  autoScroll: true,
246
253
  scrollInterval: 6000,
254
+ loop: true,
247
255
  },
248
256
  createdAt: daysAgo(60),
249
257
  updatedAt: daysAgo(2),
@@ -293,7 +301,7 @@ export const homepageSectionsSeedData = [
293
301
  title: "Frequently Asked Questions",
294
302
  subtitle: "Quick answers about buying, selling, and collecting on LetItRip",
295
303
  showOnHomepage: true,
296
- displayCount: 10,
304
+ displayCount: 16,
297
305
  linkToFullPage: true,
298
306
  showCategoryTabs: true,
299
307
  visibleTabs: ["general", "shipping_delivery", "returns_refunds", "orders_payment", "product_information", "account_security"],
@@ -374,6 +382,7 @@ export const homepageSectionsSeedData = [
374
382
  mobileItemsPerRow: 2,
375
383
  autoScroll: true,
376
384
  scrollInterval: 5000,
385
+ loop: true,
377
386
  filterByBrand: "brand-konami",
378
387
  sortBy: "featured",
379
388
  },
@@ -394,6 +403,7 @@ export const homepageSectionsSeedData = [
394
403
  mobileItemsPerRow: 2,
395
404
  autoScroll: true,
396
405
  scrollInterval: 5000,
406
+ loop: true,
397
407
  filterByBrand: "brand-upper-deck",
398
408
  sortBy: "featured",
399
409
  },