@mohasinac/appkit 2.7.17 → 2.7.18

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 (88) hide show
  1. package/dist/_internal/server/features/bundles/actions.d.ts +15 -0
  2. package/dist/_internal/server/features/bundles/actions.js +48 -0
  3. package/dist/_internal/server/features/bundles/index.d.ts +1 -0
  4. package/dist/_internal/server/features/bundles/index.js +1 -0
  5. package/dist/_internal/server/features/checkout/actions.d.ts +4 -0
  6. package/dist/_internal/server/features/checkout/actions.js +23 -12
  7. package/dist/_internal/server/features/payments/data.d.ts +5 -3
  8. package/dist/_internal/server/features/payments/data.js +13 -8
  9. package/dist/_internal/server/features/payments/index.d.ts +1 -1
  10. package/dist/_internal/server/features/payments/index.js +1 -1
  11. package/dist/_internal/shared/features/categories/bundle-config.d.ts +24 -0
  12. package/dist/_internal/shared/features/categories/bundle-config.js +28 -0
  13. package/dist/_internal/shared/features/categories/bundle-copy.d.ts +7 -0
  14. package/dist/_internal/shared/features/categories/bundle-copy.js +9 -0
  15. package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +69 -19
  16. package/dist/_internal/shared/features/categories/bundle-schemas.js +20 -2
  17. package/dist/_internal/shared/features/checkout/config.d.ts +1 -1
  18. package/dist/_internal/shared/features/checkout/config.js +1 -1
  19. package/dist/_internal/shared/features/payments/config.d.ts +2 -1
  20. package/dist/_internal/shared/features/payments/config.js +2 -1
  21. package/dist/_internal/shared/features/products/schema.d.ts +8 -8
  22. package/dist/constants/field-names.d.ts +8 -1
  23. package/dist/constants/field-names.js +9 -2
  24. package/dist/constants/table-keys.d.ts +3 -0
  25. package/dist/constants/table-keys.js +3 -0
  26. package/dist/features/admin/components/AdminSiteSettingsView.js +17 -15
  27. package/dist/features/admin/components/DashboardStats.js +20 -12
  28. package/dist/features/admin/components/analytics/AdminAnalyticsCharts.js +18 -2
  29. package/dist/features/admin/components/analytics/AdminStatCard.d.ts +7 -1
  30. package/dist/features/admin/components/analytics/AdminStatCard.js +13 -2
  31. package/dist/features/admin/schemas/firestore.d.ts +18 -4
  32. package/dist/features/admin/schemas/firestore.js +11 -1
  33. package/dist/features/categories/components/BundleBuyNowCta.d.ts +3 -1
  34. package/dist/features/categories/components/BundleBuyNowCta.js +3 -3
  35. package/dist/features/categories/components/BundleDynamicRuleEditor.d.ts +1 -1
  36. package/dist/features/categories/components/BundleDynamicRuleEditor.js +2 -1
  37. package/dist/features/categories/components/BundlesListView.d.ts +4 -1
  38. package/dist/features/categories/components/BundlesListView.js +2 -2
  39. package/dist/features/categories/components/CategoryBundlesListing.d.ts +4 -1
  40. package/dist/features/categories/components/CategoryBundlesListing.js +9 -8
  41. package/dist/features/categories/schemas/firestore.d.ts +29 -1
  42. package/dist/features/checkout/actions/checkout-actions.d.ts +11 -0
  43. package/dist/features/checkout/actions/checkout-actions.js +26 -0
  44. package/dist/features/filters/FilterFacetSection.d.ts +6 -1
  45. package/dist/features/filters/FilterFacetSection.js +25 -2
  46. package/dist/features/homepage/components/FeaturedBundlesSection.d.ts +4 -1
  47. package/dist/features/homepage/components/FeaturedBundlesSection.js +9 -8
  48. package/dist/features/orders/actions/refund-actions.js +10 -7
  49. package/dist/features/orders/schemas/firestore.d.ts +16 -13
  50. package/dist/features/orders/schemas/firestore.js +6 -5
  51. package/dist/features/pre-orders/components/MarketplacePreorderCard.js +1 -1
  52. package/dist/features/pre-orders/components/PreOrdersIndexListing.js +2 -1
  53. package/dist/features/products/components/AuctionsIndexListing.js +2 -1
  54. package/dist/features/products/components/ProductDetailPageView.js +3 -1
  55. package/dist/features/products/components/ProductDetailView.d.ts +3 -1
  56. package/dist/features/products/components/ProductDetailView.js +2 -2
  57. package/dist/features/products/components/ProductFilters.d.ts +10 -4
  58. package/dist/features/products/components/ProductFilters.js +20 -16
  59. package/dist/features/products/components/ProductGrid.js +2 -2
  60. package/dist/features/products/components/ProductsIndexListing.js +2 -1
  61. package/dist/features/products/constants/product-features.constants.js +5 -1
  62. package/dist/features/products/schemas/index.d.ts +2 -2
  63. package/dist/features/products/schemas/product-features.d.ts +1 -1
  64. package/dist/features/products/schemas/product-features.validators.d.ts +10 -10
  65. package/dist/features/products/schemas/product-features.validators.js +4 -0
  66. package/dist/features/seller/components/SellerCouponEditorView.js +2 -2
  67. package/dist/features/seller/components/analytics/SellerAnalyticsStats.js +10 -4
  68. package/dist/features/stores/components/StoreBundlesPageView.d.ts +4 -1
  69. package/dist/features/stores/components/StoreBundlesPageView.js +2 -2
  70. package/dist/features/stores/components/StoresIndexListing.js +2 -1
  71. package/dist/providers/db-firebase/admin-app-lite.js +8 -2
  72. package/dist/providers/db-firebase/admin.js +8 -2
  73. package/dist/seed/addresses-seed-data.js +24 -7
  74. package/dist/seed/cart-seed-data.d.ts +10 -10
  75. package/dist/seed/cart-seed-data.js +39 -2
  76. package/dist/seed/grouped-listings-seed-data.js +47 -0
  77. package/dist/seed/orders-seed-data.js +150 -0
  78. package/dist/seed/products-standard-seed-data.js +42 -0
  79. package/dist/seed/site-settings-seed-data.js +11 -4
  80. package/dist/seed/users-seed-data.js +1 -1
  81. package/dist/seed/wishlists-seed-data.js +7 -0
  82. package/dist/server-entry.d.ts +2 -1
  83. package/dist/server-entry.js +2 -1
  84. package/dist/server.d.ts +2 -1
  85. package/dist/server.js +3 -1
  86. package/dist/tailwind-utilities.css +1 -1
  87. package/dist/ui/components/SideDrawer.style.css +49 -11
  88. package/package.json +1 -1
@@ -342,15 +342,21 @@ export const siteSettingsSeedData = {
342
342
  ],
343
343
  },
344
344
  commissions: {
345
- razorpayFeePercent: 2,
345
+ platformFeePercent: 5,
346
+ gstPercent: 18,
347
+ minimumTransactionFee: 0,
348
+ gatewayFeePercent: 2,
346
349
  codDepositPercent: 10,
347
350
  sellerShippingFixed: 0,
348
351
  platformShippingPercent: 0,
349
352
  platformShippingFixedMin: 0,
350
- processingFeePercent: 0,
351
- gstPercent: 18,
352
- gatewayFeePercent: 2,
353
353
  autoPayoutWindowDays: 7,
354
+ payoutHoldDays: 2,
355
+ minPayoutAmount: 100,
356
+ auctionListingFee: 0,
357
+ preOrderListingFee: 0,
358
+ featuredSlotFee: 999,
359
+ promotedSlotFee: 499,
354
360
  },
355
361
  featureFlags: {
356
362
  chats: true,
@@ -366,6 +372,7 @@ export const siteSettingsSeedData = {
366
372
  sellerRegistration: true,
367
373
  preOrders: true,
368
374
  seedPanel: true,
375
+ adminCheckoutBypass: false,
369
376
  },
370
377
  // VA8 ⑧ Integrations — placeholder credentials (replace with real values in Firestore/admin panel)
371
378
  credentials: {
@@ -32,7 +32,7 @@ export const usersSeedData = [
32
32
  showWishlist: false,
33
33
  bio: "LetItRip platform administrator.",
34
34
  },
35
- stats: { totalOrders: 0, auctionsWon: 0, itemsSold: 0, reviewsCount: 0 },
35
+ stats: { totalOrders: 4, auctionsWon: 1, itemsSold: 142, reviewsCount: 0 },
36
36
  metadata: {
37
37
  lastSignInTime: daysAgo(1),
38
38
  creationTime: daysAgo(400).toISOString(),
@@ -56,4 +56,11 @@ export const wishlistsSeedData = [
56
56
  { productId: "preorder-beyblade-x-bx10-booster", productType: "preorder", addedAt: daysAgo(3) },
57
57
  { productId: "preorder-shf-broly-super-hero", productType: "preorder", addedAt: daysAgo(1) },
58
58
  ]),
59
+ // Admin's personal wishlist — rare high-value collectibles
60
+ makeDoc("user-admin-letitrip", [
61
+ { productId: "product-mafex-miles-morales-spiderman", productType: "product", addedAt: daysAgo(60) },
62
+ { productId: "product-figma-link-totk", productType: "product", addedAt: daysAgo(45) },
63
+ { productId: "auction-pokemon-mew-1st-edition-psa10", productType: "auction", addedAt: daysAgo(20) },
64
+ { productId: "product-alter-rem-wedding-scale", productType: "product", addedAt: daysAgo(8) },
65
+ ]),
59
66
  ];
@@ -57,8 +57,9 @@ export { getSearchResults, searchAction, type SearchQuery, } from "./_internal/s
57
57
  export { getCategoryForDetail, listRootCategories, listFeaturedCategories, listMenuCategories, getCategoryTree, listSitemapCategories, CATEGORIES_PAGE_SIZE, CATEGORIES_ROOT_TIER, CATEGORIES_MAX_DEPTH, CATEGORIES_SITEMAP_LIMIT, CATEGORIES_FEATURED_LIMIT, CATEGORIES_MENU_LIMIT, } from "./_internal/server/features/categories/index";
58
58
  export { getGroupedListingForDetail, getGroupedListingWithItems, listGroupedListings, listFeaturedGroupedListings, listSitemapGroupedListings, GROUPED_LISTINGS_PAGE_SIZE, GROUPED_LISTINGS_FEATURED_LIMIT, GROUPED_LISTINGS_SITEMAP_LIMIT, type GroupedListingWithItems, type ListGroupedListingsParams, type SitemapGroupedListing, } from "./_internal/server/features/grouped/index";
59
59
  export { createCheckoutOrderAction, attachPaymentAction, verifyAndPlaceRazorpayOrderAction, formatShippingAddress, CHECKOUT_DEFAULT_COMMISSIONS, CHECKOUT_PAYMENT_METHODS, type CreateCheckoutOrderInput, type VerifyAndPlaceRazorpayOrderInput, type CheckoutOrderResult, type CheckoutPaymentMethod, } from "./_internal/server/features/checkout/index";
60
+ export { grantAdminCheckoutBypass } from "./features/checkout/server";
60
61
  export { processRefundAction, type ProcessRefundInput, } from "./_internal/server/features/refunds/actions";
61
- export { createPaymentIntentAction, verifyPaymentSignatureAction, resolvePaymentFee, PAYMENTS_DEFAULT_RAZORPAY_FEE_PERCENT, PAYMENTS_RECEIPT_PREFIX, type CreatePaymentIntentInput, type CreatePaymentIntentResult, type VerifyPaymentSignatureInput, type ResolvedPaymentFee, } from "./_internal/server/features/payments/index";
62
+ export { createPaymentIntentAction, verifyPaymentSignatureAction, resolvePaymentFee, PAYMENTS_DEFAULT_PLATFORM_FEE_PERCENT, PAYMENTS_DEFAULT_GST_PERCENT, PAYMENTS_RECEIPT_PREFIX, type CreatePaymentIntentInput, type CreatePaymentIntentResult, type VerifyPaymentSignatureInput, type ResolvedPaymentFee, } from "./_internal/server/features/payments/index";
62
63
  export { getSublistingCategoryForDetail } from "./_internal/server/features/sublisting-categories/index";
63
64
  export { getStoreForDetail, listStoreProductsInitial, listStoreAuctionsInitial, listStorePreOrdersInitial, listSitemapStores, STORES_PAGE_SIZE, STORES_PRODUCTS_PAGE_SIZE, STORES_SITEMAP_LIMIT, STORES_FEATURED_LIMIT, } from "./_internal/server/features/stores/index";
64
65
  export { AppShell, DashboardScaffold } from "./_internal/client/scaffolds/index";
@@ -85,10 +85,11 @@ export { getGroupedListingForDetail, getGroupedListingWithItems, listGroupedList
85
85
  // `.listByType("bundle", opts)` / `.findById(id)` directly.
86
86
  // S4: checkout actions
87
87
  export { createCheckoutOrderAction, attachPaymentAction, verifyAndPlaceRazorpayOrderAction, formatShippingAddress, CHECKOUT_DEFAULT_COMMISSIONS, CHECKOUT_PAYMENT_METHODS, } from "./_internal/server/features/checkout/index";
88
+ export { grantAdminCheckoutBypass } from "./features/checkout/server";
88
89
  // S-SBUNI-RULES: refund action
89
90
  export { processRefundAction, } from "./_internal/server/features/refunds/actions";
90
91
  // S4: payments actions
91
- export { createPaymentIntentAction, verifyPaymentSignatureAction, resolvePaymentFee, PAYMENTS_DEFAULT_RAZORPAY_FEE_PERCENT, PAYMENTS_RECEIPT_PREFIX, } from "./_internal/server/features/payments/index";
92
+ export { createPaymentIntentAction, verifyPaymentSignatureAction, resolvePaymentFee, PAYMENTS_DEFAULT_PLATFORM_FEE_PERCENT, PAYMENTS_DEFAULT_GST_PERCENT, PAYMENTS_RECEIPT_PREFIX, } from "./_internal/server/features/payments/index";
92
93
  // S3: sublisting categories data layer
93
94
  export { getSublistingCategoryForDetail } from "./_internal/server/features/sublisting-categories/index";
94
95
  // S3: stores data layer
package/dist/server.d.ts CHANGED
@@ -254,6 +254,7 @@ export { updateCategory } from "./features/categories/server";
254
254
  export { grantCheckoutConsentViaSms } from "./features/checkout/server";
255
255
  export { sendCheckoutConsentOtp } from "./features/checkout/server";
256
256
  export { verifyCheckoutConsentOtp } from "./features/checkout/server";
257
+ export { grantAdminCheckoutBypass } from "./features/checkout/server";
257
258
  export { sendContactEmail } from "./features/contact/server";
258
259
  export { sendEmail } from "./features/contact/server";
259
260
  export { sendOrderConfirmationEmail } from "./features/contact/server";
@@ -450,7 +451,7 @@ export type { GoogleReview, GoogleReviewsResult } from "./features/homepage/lib/
450
451
  export { GoogleReviewsSection } from "./features/homepage/components/GoogleReviewsSection";
451
452
  export type { GoogleReviewsSectionProps } from "./features/homepage/components/GoogleReviewsSection";
452
453
  export { getProductForDetail, listSitemapProducts, type SitemapProduct } from "./_internal/server/features/products/index";
453
- export { getBundleForDetail, listBundleMembers, listFeaturedBundles, buildBundleMetadata, renderBundleOg, renderBundleOgImage, type BundleDataOptions, type BundleMetadataOptions, type BundleOgData, } from "./_internal/server/features/bundles/index";
454
+ export { getBundleForDetail, listBundleMembers, listFeaturedBundles, buildBundleMetadata, renderBundleOg, renderBundleOgImage, addBundleToCartAction, type BundleDataOptions, type BundleMetadataOptions, type BundleOgData, } from "./_internal/server/features/bundles/index";
454
455
  export { getAuctionForDetail, getProductFeaturesForAuction } from "./_internal/server/features/auctions/index";
455
456
  export { getPreOrderForDetail, getProductFeaturesForPreOrder } from "./_internal/server/features/pre-orders/index";
456
457
  export { getStoreForDetail, listStoreProductsInitial, listStoreAuctionsInitial, listStorePreOrdersInitial, listSitemapStores } from "./_internal/server/features/stores/index";
package/dist/server.js CHANGED
@@ -766,6 +766,8 @@ export { sendCheckoutConsentOtp } from "./features/checkout/server";
766
766
  // [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
767
767
  // verifyCheckoutConsentOtp - Shared export for verify checkout consent otp.
768
768
  export { verifyCheckoutConsentOtp } from "./features/checkout/server";
769
+ // grantAdminCheckoutBypass - Admin bypass that skips OTP + payment for admin-placed orders.
770
+ export { grantAdminCheckoutBypass } from "./features/checkout/server";
769
771
  // [SERVER-ONLY]-Server-only — uses Node.js, Next.js server internals, or third-party server SDKs (auth, email, payment, shipping).
770
772
  // sendContactEmail - Shared export for send contact email.
771
773
  export { sendContactEmail } from "./features/contact/server";
@@ -1323,7 +1325,7 @@ export { GoogleReviewsSection } from "./features/homepage/components/GoogleRevie
1323
1325
  // Data layers — each wrapped in React.cache for request-scoped dedup
1324
1326
  export { getProductForDetail, listSitemapProducts } from "./_internal/server/features/products/index";
1325
1327
  // S-SBUNI-3/4 2026-05-13 — bundle data/metadata/og layer.
1326
- export { getBundleForDetail, listBundleMembers, listFeaturedBundles, buildBundleMetadata, renderBundleOg, renderBundleOgImage, } from "./_internal/server/features/bundles/index";
1328
+ export { getBundleForDetail, listBundleMembers, listFeaturedBundles, buildBundleMetadata, renderBundleOg, renderBundleOgImage, addBundleToCartAction, } from "./_internal/server/features/bundles/index";
1327
1329
  export { getAuctionForDetail, getProductFeaturesForAuction } from "./_internal/server/features/auctions/index";
1328
1330
  export { getPreOrderForDetail, getProductFeaturesForPreOrder } from "./_internal/server/features/pre-orders/index";
1329
1331
  export { getStoreForDetail, listStoreProductsInitial, listStoreAuctionsInitial, listStorePreOrdersInitial, listSitemapStores } from "./_internal/server/features/stores/index";