@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.
- package/dist/_internal/server/features/auctions/service.d.ts +7 -1
- package/dist/_internal/server/features/auctions/service.js +13 -5
- package/dist/_internal/server/features/checkout/actions.d.ts +0 -15
- package/dist/_internal/server/features/checkout/actions.js +7 -3
- package/dist/_internal/server/features/orders/actions.js +5 -3
- package/dist/_internal/server/functions/firestore.d.ts +1 -2
- package/dist/_internal/server/functions/firestore.js +1 -9
- package/dist/_internal/server/jobs/core/index.d.ts +0 -1
- package/dist/_internal/server/jobs/core/index.js +0 -1
- package/dist/_internal/server/jobs/core/offerExpiry.js +33 -1
- package/dist/_internal/server/jobs/handlers/index.d.ts +1 -2
- package/dist/_internal/server/jobs/handlers/index.js +1 -2
- package/dist/_internal/shared/features/auctions/config.d.ts +34 -0
- package/dist/_internal/shared/features/auctions/config.js +47 -3
- package/dist/_internal/shared/listing-types/auction/config.js +1 -1
- package/dist/_internal/shared/listing-types/digital-code/config.js +1 -1
- package/dist/_internal/shared/listing-types/live/config.js +1 -1
- package/dist/_internal/shared/listing-types/pre-order/config.js +1 -1
- package/dist/features/account/components/NotificationBell.js +1 -1
- package/dist/features/admin/components/AdminNotificationsView.js +4 -1
- package/dist/features/admin/components/AdminOrderEditorView.d.ts +7 -1
- package/dist/features/admin/components/AdminOrderEditorView.js +16 -4
- package/dist/features/admin/components/AdminOrdersView.js +2 -1
- package/dist/features/auctions/actions/bid-actions.js +71 -9
- package/dist/features/auctions/components/AuctionDetailPageView.js +8 -2
- package/dist/features/auctions/components/MarketplaceAuctionCard.js +3 -3
- package/dist/features/auctions/components/PlaceBidFormClient.js +89 -14
- package/dist/features/auctions/schemas/bid-input.d.ts +19 -6
- package/dist/features/auctions/schemas/bid-input.js +19 -7
- package/dist/features/auth/repository/user.repository.js +6 -0
- package/dist/features/faq/components/FAQHelpfulButtons.js +2 -2
- package/dist/features/filters/FilterFacetSection.js +1 -1
- package/dist/features/homepage/components/WhatsAppCommunitySection.js +1 -1
- package/dist/features/layout/BackToTop.js +1 -1
- package/dist/features/layout/BottomActions.js +1 -1
- package/dist/features/layout/FooterLayout.js +2 -2
- package/dist/features/layout/TitleBarLayout.js +1 -1
- package/dist/features/pre-orders/components/MarketplacePreorderCard.js +3 -3
- package/dist/features/products/components/MarketplaceBundleCard.js +2 -2
- package/dist/features/products/components/MarketplacePrizeDrawCard.js +2 -2
- package/dist/features/products/components/PrizeDrawCollage.js +1 -1
- package/dist/features/products/components/PrizeDrawItemsEditor.js +1 -1
- package/dist/features/products/components/ProductDetailPageView.js +1 -1
- package/dist/features/products/components/ProductGrid.js +3 -3
- package/dist/features/products/repository/products.repository.d.ts +0 -4
- package/dist/features/products/repository/products.repository.js +0 -15
- package/dist/features/promotions/repository/coupons.repository.d.ts +12 -0
- package/dist/features/promotions/repository/coupons.repository.js +12 -0
- package/dist/features/seller/components/SellerSidebar.js +1 -1
- package/dist/features/tester/seed-data/tester-checklist-seed-data.js +279 -0
- package/dist/features/whatsapp-bot/components/WhatsAppChatButton.js +1 -1
- package/dist/jobs.d.ts +1 -1
- package/dist/jobs.js +1 -1
- package/dist/seed/homepage-sections-seed-data.js +5 -1
- package/dist/seed/site-settings-seed-data.js +18 -0
- package/dist/styles.css +55 -1
- package/dist/tailwind-utilities.css +1 -1
- package/dist/tokens/color-pairs.js +1 -0
- package/dist/tokens/tokens.css +33 -0
- package/dist/ui/components/Button.style.css +21 -0
- package/dist/ui/components/ImageLightbox.js +7 -4
- package/dist/ui/components/surface-tokens.d.ts +7 -0
- package/dist/ui/components/surface-tokens.js +7 -0
- package/package.json +1 -1
- package/dist/_internal/server/jobs/core/onBidPlaced.d.ts +0 -15
- package/dist/_internal/server/jobs/core/onBidPlaced.js +0 -63
- package/dist/_internal/server/jobs/handlers/onBidPlaced.d.ts +0 -3
- 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
|
-
|
|
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,
|