@mohasinac/appkit 2.7.49 → 2.7.52
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/client/features/layout/SidebarCollapseToggle.d.ts +19 -0
- package/dist/_internal/client/features/layout/SidebarCollapseToggle.js +15 -0
- package/dist/_internal/client/features/layout/index.d.ts +2 -0
- package/dist/_internal/client/features/layout/index.js +1 -0
- package/dist/_internal/server/features/checkout/actions.js +25 -2
- package/dist/_internal/server/features/promotions/actions.js +3 -1
- package/dist/_internal/server/jobs/core/__tests__/couponExpiry.test.d.ts +1 -0
- package/dist/_internal/server/jobs/core/__tests__/couponExpiry.test.js +65 -0
- package/dist/_internal/server/jobs/core/__tests__/listingProcessor.test.d.ts +1 -0
- package/dist/_internal/server/jobs/core/__tests__/listingProcessor.test.js +163 -0
- package/dist/_internal/server/jobs/core/__tests__/mediaTmpCleanup.test.d.ts +1 -0
- package/dist/_internal/server/jobs/core/__tests__/mediaTmpCleanup.test.js +115 -0
- package/dist/_internal/server/jobs/core/__tests__/pendingOrderTimeout.test.d.ts +1 -0
- package/dist/_internal/server/jobs/core/__tests__/pendingOrderTimeout.test.js +96 -0
- package/dist/_internal/shared/actions/action-registry.js +149 -0
- package/dist/client.d.ts +45 -6
- package/dist/client.js +27 -4
- package/dist/constants/api-endpoints.d.ts +42 -0
- package/dist/constants/api-endpoints.js +14 -0
- package/dist/features/_guide-cls.d.ts +13 -0
- package/dist/features/_guide-cls.js +14 -0
- package/dist/features/about/components/HelpPageView.js +29 -26
- package/dist/features/account/components/BuyerAccountGuideView.d.ts +1 -0
- package/dist/features/account/components/BuyerAccountGuideView.js +39 -0
- package/dist/features/account/components/BuyerAuctionsGuideView.d.ts +1 -0
- package/dist/features/account/components/BuyerAuctionsGuideView.js +38 -0
- package/dist/features/account/components/BuyerOrdersGuideView.d.ts +1 -0
- package/dist/features/account/components/BuyerOrdersGuideView.js +48 -0
- package/dist/features/account/components/BuyerShoppingGuideView.d.ts +1 -0
- package/dist/features/account/components/BuyerShoppingGuideView.js +38 -0
- package/dist/features/account/components/UserSidebar.js +2 -1
- package/dist/features/admin/components/AdminAnalyticsGuideView.d.ts +1 -0
- package/dist/features/admin/components/AdminAnalyticsGuideView.js +24 -0
- package/dist/features/admin/components/AdminBlogEditorView.js +102 -75
- package/dist/features/admin/components/AdminBundleEditorView.js +20 -14
- package/dist/features/admin/components/AdminBundlesView.d.ts +1 -3
- package/dist/features/admin/components/AdminBundlesView.js +173 -52
- package/dist/features/admin/components/AdminCatalogGuideView.d.ts +1 -0
- package/dist/features/admin/components/AdminCatalogGuideView.js +28 -0
- package/dist/features/admin/components/AdminContentGuideView.d.ts +1 -0
- package/dist/features/admin/components/AdminContentGuideView.js +36 -0
- package/dist/features/admin/components/AdminCouponEditorView.js +1 -1
- package/dist/features/admin/components/AdminGuideHubView.d.ts +5 -0
- package/dist/features/admin/components/AdminGuideHubView.js +79 -0
- package/dist/features/admin/components/AdminOrdersGuideView.d.ts +1 -0
- package/dist/features/admin/components/AdminOrdersGuideView.js +44 -0
- package/dist/features/admin/components/AdminProductsView.js +8 -3
- package/dist/features/admin/components/AdminSidebar.js +2 -1
- package/dist/features/admin/components/AdminSiteConfigGuideView.d.ts +1 -0
- package/dist/features/admin/components/AdminSiteConfigGuideView.js +21 -0
- package/dist/features/admin/components/AdminStoresGuideView.d.ts +1 -0
- package/dist/features/admin/components/AdminStoresGuideView.js +32 -0
- package/dist/features/admin/components/AdminTeamGuideView.d.ts +1 -0
- package/dist/features/admin/components/AdminTeamGuideView.js +33 -0
- package/dist/features/admin/components/AdminTrustGuideView.d.ts +1 -0
- package/dist/features/admin/components/AdminTrustGuideView.js +40 -0
- package/dist/features/admin/components/AdminUsersGuideView.d.ts +1 -0
- package/dist/features/admin/components/AdminUsersGuideView.js +38 -0
- package/dist/features/auth/repository/session.repository.js +16 -1
- package/dist/features/cart/hooks/useAddToCart.d.ts +2 -0
- package/dist/features/cart/hooks/useAddToCart.js +2 -0
- package/dist/features/cart/hooks/useGuestCart.d.ts +2 -0
- package/dist/features/cart/utils/guest-cart.d.ts +7 -0
- package/dist/features/cart/utils/pending-ops.d.ts +6 -0
- package/dist/features/categories/components/CategoryBundlesListing.js +3 -25
- package/dist/features/categories/components/CategoryProductsListing.js +6 -10
- package/dist/features/categories/components/index.d.ts +0 -2
- package/dist/features/categories/components/index.js +0 -1
- package/dist/features/categories/schemas/firestore.d.ts +9 -0
- package/dist/features/events/components/AdminEventEditorView.js +223 -269
- package/dist/features/events/components/EventRaffleWinnerView.d.ts +9 -1
- package/dist/features/events/components/EventRaffleWinnerView.js +3 -3
- package/dist/features/events/components/SpinWheelView.js +3 -3
- package/dist/features/grouped/repository/grouped-listings.repository.d.ts +9 -0
- package/dist/features/grouped/repository/grouped-listings.repository.js +12 -0
- package/dist/features/layout/BottomNavLayout.d.ts +5 -0
- package/dist/features/layout/BottomNavLayout.js +21 -0
- package/dist/features/layout/TitleBar.js +7 -1
- package/dist/features/layout/TitleBarLayout.d.ts +8 -2
- package/dist/features/layout/TitleBarLayout.js +11 -7
- package/dist/features/media/upload/MediaUploadField.js +1 -1
- package/dist/features/orders/schemas/index.d.ts +2 -2
- package/dist/features/pre-orders/components/PreOrdersIndexListing.js +12 -6
- package/dist/features/products/components/AuctionsIndexListing.js +3 -1
- package/dist/features/products/components/MarketplaceBundleCard.d.ts +21 -0
- package/dist/features/products/components/MarketplaceBundleCard.js +56 -0
- package/dist/features/products/components/PrizeDrawDetailPageView.js +1 -1
- package/dist/features/products/components/PrizeDrawEntryActions.d.ts +3 -1
- package/dist/features/products/components/PrizeDrawEntryActions.js +8 -12
- package/dist/features/products/components/ProductDetailActions.d.ts +5 -1
- package/dist/features/products/components/ProductDetailActions.js +3 -1
- package/dist/features/products/components/ProductDetailPageView.d.ts +2 -0
- package/dist/features/products/components/ProductDetailPageView.js +4 -0
- package/dist/features/products/components/ProductGrid.js +3 -3
- package/dist/features/products/components/ProductsIndexListing.js +18 -9
- package/dist/features/products/components/index.d.ts +2 -4
- package/dist/features/products/components/index.js +1 -2
- package/dist/features/promotions/components/CouponCard.d.ts +11 -1
- package/dist/features/promotions/components/CouponCard.js +36 -2
- package/dist/features/promotions/repository/claimed-coupons.repository.d.ts +27 -0
- package/dist/features/promotions/repository/claimed-coupons.repository.js +115 -0
- package/dist/features/promotions/schemas/firestore.d.ts +34 -0
- package/dist/features/promotions/schemas/firestore.js +14 -1
- package/dist/features/reviews/components/index.d.ts +0 -2
- package/dist/features/reviews/components/index.js +0 -1
- package/dist/features/seller/components/BrandInlineSelect.js +23 -3
- package/dist/features/seller/components/CategoryInlineSelect.js +20 -3
- package/dist/features/seller/components/SellerAddressesView.js +3 -2
- package/dist/features/seller/components/SellerAnalyticsAlertsView.d.ts +6 -0
- package/dist/features/seller/components/SellerAnalyticsAlertsView.js +124 -0
- package/dist/features/seller/components/SellerAnalyticsView.d.ts +2 -0
- package/dist/features/seller/components/SellerAnalyticsView.js +17 -9
- package/dist/features/seller/components/SellerBidsView.js +33 -3
- package/dist/features/seller/components/SellerBundlesView.d.ts +5 -0
- package/dist/features/seller/components/SellerBundlesView.js +104 -0
- package/dist/features/seller/components/SellerClassifiedView.d.ts +5 -0
- package/dist/features/seller/components/SellerClassifiedView.js +113 -0
- package/dist/features/seller/components/SellerDashboardView.js +19 -7
- package/dist/features/seller/components/SellerDigitalCodesView.d.ts +5 -0
- package/dist/features/seller/components/SellerDigitalCodesView.js +115 -0
- package/dist/features/seller/components/SellerGoogleReviewsView.d.ts +14 -0
- package/dist/features/seller/components/SellerGoogleReviewsView.js +95 -0
- package/dist/features/seller/components/SellerGroupedListingsView.d.ts +6 -0
- package/dist/features/seller/components/SellerGroupedListingsView.js +112 -0
- package/dist/features/seller/components/SellerLiveView.d.ts +5 -0
- package/dist/features/seller/components/SellerLiveView.js +113 -0
- package/dist/features/seller/components/SellerOrdersView.js +53 -2
- package/dist/features/seller/components/SellerPayoutMethodsView.d.ts +7 -0
- package/dist/features/seller/components/SellerPayoutMethodsView.js +120 -0
- package/dist/features/seller/components/SellerPayoutSettingsView.js +50 -12
- package/dist/features/seller/components/SellerProductShell.d.ts +3 -1
- package/dist/features/seller/components/SellerProductShell.js +35 -11
- package/dist/features/seller/components/SellerProductsCards.d.ts +19 -0
- package/dist/features/seller/components/SellerProductsCards.js +19 -0
- package/dist/features/seller/components/SellerProductsFilterDrawer.d.ts +14 -0
- package/dist/features/seller/components/SellerProductsFilterDrawer.js +22 -0
- package/dist/features/seller/components/SellerProductsView.d.ts +3 -1
- package/dist/features/seller/components/SellerProductsView.js +92 -49
- package/dist/features/seller/components/SellerReviewsView.js +67 -4
- package/dist/features/seller/components/SellerShippingConfigsView.d.ts +7 -0
- package/dist/features/seller/components/SellerShippingConfigsView.js +149 -0
- package/dist/features/seller/components/SellerShippingView.js +37 -10
- package/dist/features/seller/components/SellerSidebar.js +2 -1
- package/dist/features/seller/components/SellerStoreCategoriesView.d.ts +9 -0
- package/dist/features/seller/components/SellerStoreCategoriesView.js +122 -0
- package/dist/features/seller/components/SellerStorefrontView.d.ts +0 -7
- package/dist/features/seller/components/SellerStorefrontView.js +26 -29
- package/dist/features/seller/components/SellerTemplatesView.d.ts +10 -0
- package/dist/features/seller/components/SellerTemplatesView.js +265 -0
- package/dist/features/seller/components/index.d.ts +26 -0
- package/dist/features/seller/components/index.js +13 -0
- package/dist/features/seller/components/seller-products-styles.d.ts +7 -0
- package/dist/features/seller/components/seller-products-styles.js +14 -0
- package/dist/features/shell/FormShell.d.ts +7 -1
- package/dist/features/shell/FormShell.js +5 -2
- package/dist/features/store-extensions/index.d.ts +4 -0
- package/dist/features/store-extensions/index.js +4 -0
- package/dist/features/store-extensions/repository/rbac.repositories.d.ts +23 -0
- package/dist/features/store-extensions/repository/rbac.repositories.js +32 -0
- package/dist/features/store-extensions/repository/store-extensions.repositories.d.ts +91 -0
- package/dist/features/store-extensions/repository/store-extensions.repositories.js +127 -0
- package/dist/features/store-extensions/schemas/firestore.d.ts +244 -0
- package/dist/features/store-extensions/schemas/firestore.js +158 -0
- package/dist/features/store-extensions/schemas/rbac.d.ts +65 -0
- package/dist/features/store-extensions/schemas/rbac.js +43 -0
- package/dist/features/stores/api/[storeSlug]/reviews/route.js +49 -7
- package/dist/features/stores/components/InteractiveStoreCard.js +7 -3
- package/dist/features/stores/components/StoreCapabilitiesGuideView.d.ts +3 -0
- package/dist/features/stores/components/StoreCapabilitiesGuideView.js +101 -0
- package/dist/features/stores/components/StoreFinanceGuideView.d.ts +3 -0
- package/dist/features/stores/components/StoreFinanceGuideView.js +79 -0
- package/dist/features/stores/components/StoreGuideHubView.d.ts +5 -0
- package/dist/features/stores/components/StoreGuideHubView.js +89 -0
- package/dist/features/stores/components/StoreListingsGuideView.d.ts +3 -0
- package/dist/features/stores/components/StoreListingsGuideView.js +151 -0
- package/dist/features/stores/components/StoreOrdersGuideView.d.ts +3 -0
- package/dist/features/stores/components/StoreOrdersGuideView.js +122 -0
- package/dist/features/stores/components/StoreProductsListing.js +6 -10
- package/dist/features/stores/components/StoreReviewsListing.js +100 -23
- package/dist/features/stores/components/StoreSettingsGuideView.d.ts +3 -0
- package/dist/features/stores/components/StoreSettingsGuideView.js +56 -0
- package/dist/features/stores/components/index.d.ts +12 -1
- package/dist/features/stores/components/index.js +6 -1
- package/dist/features/stores/hooks/useStores.d.ts +5 -0
- package/dist/features/stores/hooks/useStores.js +10 -0
- package/dist/features/stores/manifest.js +1 -1
- package/dist/features/stores/schemas/firestore.d.ts +2 -0
- package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +13 -2
- package/dist/index.d.ts +60 -9
- package/dist/index.js +66 -15
- package/dist/next/routing/route-map.d.ts +134 -0
- package/dist/next/routing/route-map.js +59 -0
- package/dist/providers/db-firebase/__tests__/filter-aliases.test.d.ts +1 -0
- package/dist/providers/db-firebase/__tests__/filter-aliases.test.js +93 -0
- package/dist/providers/db-firebase/sieve.d.ts +49 -0
- package/dist/providers/db-firebase/sieve.js +61 -8
- package/dist/react/hooks/useFormStatePreservation.d.ts +17 -0
- package/dist/react/hooks/useFormStatePreservation.js +62 -0
- package/dist/react/hooks/useInlineRowEdit.d.ts +24 -0
- package/dist/react/hooks/useInlineRowEdit.js +68 -0
- package/dist/react/index.d.ts +4 -0
- package/dist/react/index.js +4 -0
- package/dist/repositories/index.d.ts +5 -0
- package/dist/repositories/index.js +7 -0
- package/dist/seed/actions/demo-seed-actions.d.ts +1 -1
- package/dist/seed/claimed-coupons-seed-data.d.ts +13 -0
- package/dist/seed/claimed-coupons-seed-data.js +79 -0
- package/dist/seed/index.d.ts +2 -0
- package/dist/seed/index.js +3 -0
- package/dist/seed/manifest.js +17 -0
- package/dist/seed/store-extensions-seed-data.d.ts +19 -0
- package/dist/seed/store-extensions-seed-data.js +421 -0
- package/dist/tailwind-utilities.css +1 -1
- package/dist/ui/components/Button.style.css +20 -12
- package/dist/ui/components/ClaimCouponButton.d.ts +28 -0
- package/dist/ui/components/ClaimCouponButton.js +89 -0
- package/dist/ui/components/ListingToolbar.d.ts +8 -1
- package/dist/ui/components/ListingToolbar.js +4 -2
- package/dist/ui/components/QuickCreateModal.d.ts +15 -0
- package/dist/ui/components/QuickCreateModal.js +48 -0
- package/dist/ui/components/QuickCreateModal.style.css +84 -0
- package/dist/ui/components/StickyBottomBar.d.ts +22 -0
- package/dist/ui/components/StickyBottomBar.js +20 -0
- package/dist/ui/components/VacationBanner.d.ts +11 -0
- package/dist/ui/components/VacationBanner.js +16 -0
- package/dist/ui/components/__tests__/BulkActionBar.test.d.ts +1 -0
- package/dist/ui/components/__tests__/BulkActionBar.test.js +96 -0
- package/dist/ui/components/__tests__/ListingToolbar.test.d.ts +1 -0
- package/dist/ui/components/__tests__/ListingToolbar.test.js +125 -0
- package/dist/ui/index.d.ts +9 -1
- package/dist/ui/index.js +4 -0
- package/package.json +8 -2
|
@@ -337,6 +337,105 @@ export const ACTIONS = {
|
|
|
337
337
|
kind: "ghost",
|
|
338
338
|
permissions: ["seller", "admin"],
|
|
339
339
|
},
|
|
340
|
+
// SB-UNI-W follow-up (plan §7) — leaves for the 11 unwired store-dashboard
|
|
341
|
+
// form/row CTAs identified by the W-3 sweep.
|
|
342
|
+
"create-template": {
|
|
343
|
+
id: "store.create-template",
|
|
344
|
+
label: "Create Template",
|
|
345
|
+
ariaLabel: "Create a new product template",
|
|
346
|
+
description: "Submit the new-template form.",
|
|
347
|
+
kind: "primary",
|
|
348
|
+
permissions: ["seller", "admin"],
|
|
349
|
+
},
|
|
350
|
+
"update-template": {
|
|
351
|
+
id: "store.update-template",
|
|
352
|
+
label: "Save Changes",
|
|
353
|
+
ariaLabel: "Save changes to template",
|
|
354
|
+
description: "Submit the edit-template form.",
|
|
355
|
+
kind: "primary",
|
|
356
|
+
permissions: ["seller", "admin"],
|
|
357
|
+
},
|
|
358
|
+
"edit-template": {
|
|
359
|
+
id: "store.edit-template",
|
|
360
|
+
label: "Edit",
|
|
361
|
+
ariaLabel: "Edit template",
|
|
362
|
+
description: "Open the edit-template drawer for this row.",
|
|
363
|
+
kind: "ghost",
|
|
364
|
+
permissions: ["seller", "admin"],
|
|
365
|
+
},
|
|
366
|
+
"delete-template": {
|
|
367
|
+
id: "store.delete-template",
|
|
368
|
+
label: "Delete",
|
|
369
|
+
ariaLabel: "Delete template",
|
|
370
|
+
description: "Permanently remove this template.",
|
|
371
|
+
kind: "danger",
|
|
372
|
+
permissions: ["seller", "admin"],
|
|
373
|
+
confirmation: {
|
|
374
|
+
title: "Delete template?",
|
|
375
|
+
body: "This template will be permanently removed. Existing products created from it are unaffected. This action cannot be undone.",
|
|
376
|
+
confirmLabel: "Delete template",
|
|
377
|
+
confirmKind: "danger",
|
|
378
|
+
},
|
|
379
|
+
},
|
|
380
|
+
"create-bundle": {
|
|
381
|
+
id: "store.create-bundle",
|
|
382
|
+
label: "Create Bundle",
|
|
383
|
+
ariaLabel: "Create a new bundle",
|
|
384
|
+
description: "Submit the new-bundle form.",
|
|
385
|
+
kind: "primary",
|
|
386
|
+
permissions: ["seller", "admin"],
|
|
387
|
+
},
|
|
388
|
+
"create-feature": {
|
|
389
|
+
id: "store.create-feature",
|
|
390
|
+
label: "Create Feature",
|
|
391
|
+
ariaLabel: "Create a new product feature badge",
|
|
392
|
+
description: "Submit the new-feature form.",
|
|
393
|
+
kind: "primary",
|
|
394
|
+
permissions: ["seller", "admin"],
|
|
395
|
+
},
|
|
396
|
+
"update-slug": {
|
|
397
|
+
id: "store.update-slug",
|
|
398
|
+
label: "Update Slug",
|
|
399
|
+
ariaLabel: "Update store slug",
|
|
400
|
+
description: "Submit the slug-change form. Caution: existing links will redirect.",
|
|
401
|
+
kind: "primary",
|
|
402
|
+
permissions: ["seller", "admin"],
|
|
403
|
+
confirmation: {
|
|
404
|
+
title: "Update store slug?",
|
|
405
|
+
body: "Existing links that reference the old slug will start redirecting. Make sure to update social bios and external listings.",
|
|
406
|
+
confirmLabel: "Update slug",
|
|
407
|
+
confirmKind: "primary",
|
|
408
|
+
},
|
|
409
|
+
},
|
|
410
|
+
"delete-sublisting-category": {
|
|
411
|
+
id: "store.delete-sublisting-category",
|
|
412
|
+
label: "Delete",
|
|
413
|
+
ariaLabel: "Delete sublisting category",
|
|
414
|
+
description: "Permanently remove this sublisting category from the store.",
|
|
415
|
+
kind: "danger",
|
|
416
|
+
permissions: ["seller", "admin"],
|
|
417
|
+
confirmation: {
|
|
418
|
+
title: "Delete sublisting category?",
|
|
419
|
+
body: "Products tagged with this category will lose the tag. This action cannot be undone.",
|
|
420
|
+
confirmLabel: "Delete category",
|
|
421
|
+
confirmKind: "danger",
|
|
422
|
+
},
|
|
423
|
+
},
|
|
424
|
+
"cancel-form": {
|
|
425
|
+
id: "store.cancel-form",
|
|
426
|
+
label: "Cancel",
|
|
427
|
+
ariaLabel: "Cancel form and close",
|
|
428
|
+
description: "Discard unsaved changes and close the drawer/form.",
|
|
429
|
+
kind: "ghost",
|
|
430
|
+
},
|
|
431
|
+
"new-template": {
|
|
432
|
+
id: "store.new-template",
|
|
433
|
+
label: "+ New Template",
|
|
434
|
+
ariaLabel: "Open the new-template drawer",
|
|
435
|
+
description: "Open the new-template creation drawer.",
|
|
436
|
+
kind: "primary",
|
|
437
|
+
permissions: ["seller", "admin"],
|
|
438
|
+
},
|
|
340
439
|
},
|
|
341
440
|
BLOG: {},
|
|
342
441
|
EVENT: {
|
|
@@ -416,6 +515,56 @@ export const ACTIONS = {
|
|
|
416
515
|
description: "Mark this address as the default delivery address.",
|
|
417
516
|
kind: "ghost",
|
|
418
517
|
},
|
|
518
|
+
// Plan §6 — wishlist bulk actions (sticky bulk-action toolbar leaves).
|
|
519
|
+
"wishlist-bulk-remove": {
|
|
520
|
+
id: "user.wishlist-bulk-remove",
|
|
521
|
+
label: "Remove selected",
|
|
522
|
+
ariaLabel: "Remove selected items from wishlist",
|
|
523
|
+
description: "Permanently remove the selected items from your wishlist.",
|
|
524
|
+
kind: "danger",
|
|
525
|
+
confirmation: {
|
|
526
|
+
title: "Remove selected items?",
|
|
527
|
+
body: "The selected items will be removed from your wishlist. You can add them again from product pages.",
|
|
528
|
+
confirmLabel: "Remove",
|
|
529
|
+
confirmKind: "danger",
|
|
530
|
+
},
|
|
531
|
+
},
|
|
532
|
+
"wishlist-bulk-move-to-cart": {
|
|
533
|
+
id: "user.wishlist-bulk-move-to-cart",
|
|
534
|
+
label: "Move to cart",
|
|
535
|
+
ariaLabel: "Move selected items to cart",
|
|
536
|
+
description: "Add the selected wishlist items to your cart.",
|
|
537
|
+
kind: "primary",
|
|
538
|
+
},
|
|
539
|
+
"clear-selection": {
|
|
540
|
+
id: "user.clear-selection",
|
|
541
|
+
label: "Deselect",
|
|
542
|
+
ariaLabel: "Clear current selection",
|
|
543
|
+
description: "Exit selection mode.",
|
|
544
|
+
kind: "ghost",
|
|
545
|
+
},
|
|
546
|
+
// Plan §10 — claim-coupon wallet (won-coupon entry points & wallet leaves).
|
|
547
|
+
"claim-coupon": {
|
|
548
|
+
id: "user.claim-coupon",
|
|
549
|
+
label: "Claim Coupon",
|
|
550
|
+
ariaLabel: "Claim this coupon to your wallet",
|
|
551
|
+
description: "Add this coupon to your claimed-coupons wallet for use at checkout.",
|
|
552
|
+
kind: "primary",
|
|
553
|
+
},
|
|
554
|
+
"use-claimed-coupon": {
|
|
555
|
+
id: "user.use-claimed-coupon",
|
|
556
|
+
label: "Apply at checkout",
|
|
557
|
+
ariaLabel: "Apply this coupon at checkout",
|
|
558
|
+
description: "Deep-link to checkout with this coupon pre-filled.",
|
|
559
|
+
kind: "link",
|
|
560
|
+
},
|
|
561
|
+
"remove-claimed-coupon": {
|
|
562
|
+
id: "user.remove-claimed-coupon",
|
|
563
|
+
label: "Remove",
|
|
564
|
+
ariaLabel: "Remove coupon from wallet",
|
|
565
|
+
description: "Remove this coupon from your wallet (history is preserved).",
|
|
566
|
+
kind: "ghost",
|
|
567
|
+
},
|
|
419
568
|
},
|
|
420
569
|
SELLER: {},
|
|
421
570
|
ADMIN: {
|
package/dist/client.d.ts
CHANGED
|
@@ -2,9 +2,21 @@ export { registerClientAuthProvider, getClientAuthProvider, type IClientAuthProv
|
|
|
2
2
|
export { registerClientRealtimeProvider, getClientRealtimeProvider, type IClientRealtimeProvider, type RealtimeSnapshot, type Unsubscribe, } from "./contracts/client-realtime";
|
|
3
3
|
export { registerClientSessionAdapter, getClientSessionAdapter, type IClientSessionAdapter, type AdapterAuthUser, type AuthUnsubscribe, } from "./contracts/client-session";
|
|
4
4
|
export { ConfirmDeleteModal } from "./ui/components/ConfirmDeleteModal";
|
|
5
|
+
export { EmptyState } from "./ui/components/EmptyState";
|
|
6
|
+
export { Divider } from "./ui/components/Divider";
|
|
7
|
+
export { TabStrip } from "./ui/components/TabStrip";
|
|
8
|
+
export { SellerProductsView } from "./features/seller/components/SellerProductsView";
|
|
5
9
|
export { Drawer } from "./ui/components/Drawer";
|
|
6
10
|
export { FilterDrawer } from "./ui/components/FilterDrawer";
|
|
7
11
|
export { Modal } from "./ui/components/Modal";
|
|
12
|
+
export { QuickCreateModal } from "./ui/components/QuickCreateModal";
|
|
13
|
+
export type { QuickCreateModalProps } from "./ui/components/QuickCreateModal";
|
|
14
|
+
export { VacationBanner } from "./ui/components/VacationBanner";
|
|
15
|
+
export type { VacationBannerProps } from "./ui/components/VacationBanner";
|
|
16
|
+
export { useInlineToggle, useInlineTextEdit } from "./react/hooks/useInlineRowEdit";
|
|
17
|
+
export type { InlineEditOptions, InlineToggleResult, InlineTextResult, } from "./react/hooks/useInlineRowEdit";
|
|
18
|
+
export { useFormStatePreservation } from "./react/hooks/useFormStatePreservation";
|
|
19
|
+
export type { FormStatePreservationOptions } from "./react/hooks/useFormStatePreservation";
|
|
8
20
|
export { SideDrawer } from "./ui/components/SideDrawer";
|
|
9
21
|
export { SideModal } from "./ui/components/SideModal";
|
|
10
22
|
export { UnsavedChangesModal } from "./ui/components/UnsavedChangesModal";
|
|
@@ -45,12 +57,18 @@ export type { SessionProviderProps } from "./react/contexts/SessionContext";
|
|
|
45
57
|
export { ThemeProvider } from "./react/contexts/ThemeContext";
|
|
46
58
|
export { useUrlTable } from "./react/hooks/useUrlTable";
|
|
47
59
|
export type { UseUrlTableOptions } from "./react/hooks/useUrlTable";
|
|
60
|
+
export { useBulkSelection } from "./react/hooks/useBulkSelection";
|
|
61
|
+
export type { UseBulkSelectionOptions, UseBulkSelectionReturn } from "./react/hooks/useBulkSelection";
|
|
48
62
|
export { ROUTES, PUBLIC_ROUTES, PROTECTED_ROUTES, AUTH_ROUTES } from "./constants/index";
|
|
49
63
|
export { Container, Grid, Row, Stack } from "./ui/components/Layout";
|
|
50
64
|
export { Div } from "./ui/components/Div";
|
|
51
65
|
export { Main, Section } from "./ui/components/Semantic";
|
|
52
66
|
export { Badge } from "./ui/components/Badge";
|
|
53
67
|
export { Button } from "./ui/components/Button";
|
|
68
|
+
export { StickyBottomBar } from "./ui/components/StickyBottomBar";
|
|
69
|
+
export type { StickyBottomBarProps } from "./ui/components/StickyBottomBar";
|
|
70
|
+
export { ClaimCouponButton } from "./ui/components/ClaimCouponButton";
|
|
71
|
+
export type { ClaimCouponButtonProps } from "./ui/components/ClaimCouponButton";
|
|
54
72
|
export { Checkbox } from "./ui/components/Checkbox";
|
|
55
73
|
export { Input } from "./ui/components/Input";
|
|
56
74
|
export { OtpInput } from "./ui/components/OtpInput";
|
|
@@ -83,9 +101,11 @@ export { ZodSetup } from "./validation/ZodSetup";
|
|
|
83
101
|
export type { ZodSetupProps } from "./validation/ZodSetup";
|
|
84
102
|
export { AdminSidebar } from "./features/admin/components/AdminSidebar";
|
|
85
103
|
export type { AdminSidebarProps, AdminNavItem, AdminNavGroup } from "./features/admin/components/AdminSidebar";
|
|
86
|
-
export { AdminDashboardView, AdminAnalyticsView, AdminListingScaffold, AdminPrizeDrawsView, useAdminListingData, toRecordArray, toStringValue, toRelativeDate, toRupees } from "./features/admin/index";
|
|
87
|
-
export type { AdminDashboardViewProps, AdminAnalyticsViewProps, AdminAnalyticsViewLabels, AdminPrizeDrawsViewProps } from "./features/admin/index";
|
|
104
|
+
export { AdminDashboardView, AdminAnalyticsView, AdminListingScaffold, AdminPrizeDrawsView, AdminCarouselView, AdminSublistingCategoriesView, DataTable, useAdminListingData, toRecordArray, toStringValue, toRelativeDate, toRupees } from "./features/admin/index";
|
|
105
|
+
export type { AdminDashboardViewProps, AdminAnalyticsViewProps, AdminAnalyticsViewLabels, AdminPrizeDrawsViewProps, AdminCarouselViewProps } from "./features/admin/index";
|
|
106
|
+
export type { BulkActionItem } from "./ui/components/BulkActionBar";
|
|
88
107
|
export { ADMIN_ENDPOINTS } from "./constants/index";
|
|
108
|
+
export { apiClient, ApiClientError } from "./http/index";
|
|
89
109
|
export { UserSidebar } from "./features/account/components/UserSidebar";
|
|
90
110
|
export type { UserSidebarProps, UserNavItem, UserNavGroup } from "./features/account/components/UserSidebar";
|
|
91
111
|
export { CouponsIndexListing } from "./features/promotions/components/CouponsIndexListing";
|
|
@@ -106,10 +126,9 @@ export type { Address, AddressFormData } from "./features/account/index";
|
|
|
106
126
|
export { AddressBook, AddressCard, AddressForm } from "./features/account/index";
|
|
107
127
|
export type { AddressCardAddress, AddressCardProps } from "./features/account/index";
|
|
108
128
|
export { useProfile, useUpdateProfile } from "./features/account/index";
|
|
109
|
-
export { CategoryProductsView
|
|
129
|
+
export { CategoryProductsView } from "./features/categories/index";
|
|
110
130
|
export type { CategoryItem } from "./features/categories/index";
|
|
111
131
|
export { MediaImage } from "./features/media/index";
|
|
112
|
-
export { ReviewsListView } from "./features/reviews/index";
|
|
113
132
|
export { StoreSidebar, SellerSidebar } from "./features/seller/components/SellerSidebar";
|
|
114
133
|
export type { StoreNavItem, StoreNavGroup, SellerNavItem } from "./features/seller/components/SellerSidebar";
|
|
115
134
|
export { StoreProductsView, StoreAboutView } from "./features/stores/index";
|
|
@@ -131,6 +150,8 @@ export type { WishlistCapEventDetail } from "./features/wishlist/hooks/useWishli
|
|
|
131
150
|
export { getGuestWishlistItems, addToGuestWishlist, removeFromGuestWishlist, isInGuestWishlist, clearGuestWishlist, getGuestWishlistCount, getGuestWishlistByType, } from "./features/wishlist/utils/guest-wishlist";
|
|
132
151
|
export { InteractiveProductCard } from "./features/products/index";
|
|
133
152
|
export type { InteractiveProductCardProps } from "./features/products/index";
|
|
153
|
+
export { MarketplaceBundleCard } from "./features/products/components/MarketplaceBundleCard";
|
|
154
|
+
export type { MarketplaceBundleCardProps, MarketplaceBundleCardData, MarketplaceBundleCardLabels, } from "./features/products/components/MarketplaceBundleCard";
|
|
134
155
|
export { CompareOverlay } from "./features/products/components/CompareOverlay";
|
|
135
156
|
export type { CompareOverlayProps, CompareOverlayLabels, CompareProductLike, } from "./features/products/components/CompareOverlay";
|
|
136
157
|
export { COMPARE_MAX_ITEMS } from "./features/products/constants/action-defs";
|
|
@@ -173,8 +194,8 @@ export { UserOffersPanel } from "./features/account/components/UserOffersPanel";
|
|
|
173
194
|
export type { UserOffersPanelProps } from "./features/account/components/UserOffersPanel";
|
|
174
195
|
export { SellerDashboardView as StoreDashboardView, SellerDashboardView, useSellerDashboard as useStoreDashboard, useSellerDashboard } from "./features/seller/index";
|
|
175
196
|
export type { SellerDashboardViewProps as StoreDashboardViewProps, SellerDashboardViewProps } from "./features/seller/index";
|
|
176
|
-
export { SellerPayoutSettingsView, SellerShippingView, SellerReviewsView, SellerPayoutRequestView, SellerAnalyticsStats, SellerTopProducts, SellerAnalyticsView, SellerPayoutsView, SellerCouponEditorView, SellerBidsView, SellerAddressesView, SellerPreOrdersView, SellerPrizeDrawsView, PrintCenterView } from "./features/seller/components/index";
|
|
177
|
-
export type { SellerPayoutSettingsViewProps, SellerShippingViewProps, SellerReviewsViewProps, SellerPayoutRequestViewProps, SellerAnalyticsViewProps, SellerPayoutsViewProps, SellerCouponEditorViewProps, CouponEditorDraft, SellerBidsViewProps, SellerAddressesViewProps, SellerPreOrdersViewProps, SellerPrizeDrawsViewProps } from "./features/seller/components/index";
|
|
197
|
+
export { SellerPayoutSettingsView, SellerShippingView, SellerReviewsView, SellerPayoutRequestView, SellerAnalyticsStats, SellerTopProducts, SellerAnalyticsView, SellerPayoutsView, SellerCouponEditorView, SellerBidsView, SellerAddressesView, SellerPreOrdersView, SellerPrizeDrawsView, PrintCenterView, SellerOffersView, SellerGroupedListingsView, StoreGroupedListingsView, SellerAnalyticsAlertsView, StoreAnalyticsAlertsView } from "./features/seller/components/index";
|
|
198
|
+
export type { SellerPayoutSettingsViewProps, SellerShippingViewProps, SellerReviewsViewProps, SellerPayoutRequestViewProps, SellerAnalyticsViewProps, SellerPayoutsViewProps, SellerCouponEditorViewProps, CouponEditorDraft, SellerBidsViewProps, SellerAddressesViewProps, SellerPreOrdersViewProps, SellerPrizeDrawsViewProps, SellerOffersViewProps, SellerGroupedListingsViewProps, SellerAnalyticsAlertsViewProps } from "./features/seller/components/index";
|
|
178
199
|
export type { SellerAnalyticsSummary, SellerAnalyticsTopProduct } from "./features/seller/types/index";
|
|
179
200
|
export { UserAccountHubView, UserOrdersView, OrderDetailView, UserNotificationsView, UserReturnsView, UserSupportView, useNotifications } from "./features/account/index";
|
|
180
201
|
export type { UserAccountHubViewProps, UserAccountHubViewLabels, UserOrdersViewProps, UserOrdersViewLabels, OrderDetailViewProps, OrderDetailViewLabels, UserNotificationsViewProps, UserNotificationsViewLabels, UserReturnsViewProps, UserReturnsViewLabels, UserSupportViewProps } from "./features/account/index";
|
|
@@ -232,3 +253,21 @@ export { PhysicalLocationModal } from "./features/seller/components/PhysicalLoca
|
|
|
232
253
|
export type { PhysicalLocation } from "./features/seller/components/PhysicalLocationModal";
|
|
233
254
|
export { Toggle } from "./ui/components/Toggle";
|
|
234
255
|
export type { ToggleProps } from "./ui/components/Toggle";
|
|
256
|
+
export { SellerStoreCategoriesView } from "./features/seller/components/SellerStoreCategoriesView";
|
|
257
|
+
export type { SellerStoreCategoriesViewProps } from "./features/seller/components/SellerStoreCategoriesView";
|
|
258
|
+
export { SellerTemplatesView } from "./features/seller/components/SellerTemplatesView";
|
|
259
|
+
export type { SellerTemplatesViewProps } from "./features/seller/components/SellerTemplatesView";
|
|
260
|
+
export { SellerPayoutMethodsView } from "./features/seller/components/SellerPayoutMethodsView";
|
|
261
|
+
export type { SellerPayoutMethodsViewProps } from "./features/seller/components/SellerPayoutMethodsView";
|
|
262
|
+
export { SellerShippingConfigsView } from "./features/seller/components/SellerShippingConfigsView";
|
|
263
|
+
export type { SellerShippingConfigsViewProps } from "./features/seller/components/SellerShippingConfigsView";
|
|
264
|
+
export { SellerGoogleReviewsView } from "./features/seller/components/SellerGoogleReviewsView";
|
|
265
|
+
export type { SellerGoogleReviewsViewProps } from "./features/seller/components/SellerGoogleReviewsView";
|
|
266
|
+
export { SellerBundlesView } from "./features/seller/components/SellerBundlesView";
|
|
267
|
+
export type { SellerBundlesViewProps } from "./features/seller/components/SellerBundlesView";
|
|
268
|
+
export { SellerClassifiedView } from "./features/seller/components/SellerClassifiedView";
|
|
269
|
+
export type { SellerClassifiedViewProps } from "./features/seller/components/SellerClassifiedView";
|
|
270
|
+
export { SellerDigitalCodesView } from "./features/seller/components/SellerDigitalCodesView";
|
|
271
|
+
export type { SellerDigitalCodesViewProps } from "./features/seller/components/SellerDigitalCodesView";
|
|
272
|
+
export { SellerLiveView } from "./features/seller/components/SellerLiveView";
|
|
273
|
+
export type { SellerLiveViewProps } from "./features/seller/components/SellerLiveView";
|
package/dist/client.js
CHANGED
|
@@ -9,6 +9,11 @@ export { registerClientSessionAdapter, getClientSessionAdapter, } from "./contra
|
|
|
9
9
|
// [CLIENT-ONLY]-Cannot run in SSR mode â€" uses browser-only APIs (window, navigator, localStorage, matchMedia, DOM events) that do not exist in Node.js.
|
|
10
10
|
// ConfirmDeleteModal - Component for confirm delete modal.
|
|
11
11
|
export { ConfirmDeleteModal } from "./ui/components/ConfirmDeleteModal";
|
|
12
|
+
// S-STORE — pure-UI primitives + Seller view consumed by new dashboard pages
|
|
13
|
+
export { EmptyState } from "./ui/components/EmptyState";
|
|
14
|
+
export { Divider } from "./ui/components/Divider";
|
|
15
|
+
export { TabStrip } from "./ui/components/TabStrip";
|
|
16
|
+
export { SellerProductsView } from "./features/seller/components/SellerProductsView";
|
|
12
17
|
// [CLIENT-ONLY]-Cannot run in SSR mode â€" uses browser-only APIs (window, navigator, localStorage, matchMedia, DOM events) that do not exist in Node.js.
|
|
13
18
|
// Drawer - Component for drawer.
|
|
14
19
|
export { Drawer } from "./ui/components/Drawer";
|
|
@@ -18,6 +23,10 @@ export { FilterDrawer } from "./ui/components/FilterDrawer";
|
|
|
18
23
|
// [CLIENT-ONLY]-Cannot run in SSR mode â€" uses browser-only APIs (window, navigator, localStorage, matchMedia, DOM events) that do not exist in Node.js.
|
|
19
24
|
// Modal - Component for modal.
|
|
20
25
|
export { Modal } from "./ui/components/Modal";
|
|
26
|
+
export { QuickCreateModal } from "./ui/components/QuickCreateModal";
|
|
27
|
+
export { VacationBanner } from "./ui/components/VacationBanner";
|
|
28
|
+
export { useInlineToggle, useInlineTextEdit } from "./react/hooks/useInlineRowEdit";
|
|
29
|
+
export { useFormStatePreservation } from "./react/hooks/useFormStatePreservation";
|
|
21
30
|
// [CLIENT-ONLY]-Cannot run in SSR mode â€" uses browser-only APIs (window, navigator, localStorage, matchMedia, DOM events) that do not exist in Node.js.
|
|
22
31
|
// SideDrawer - Component for side drawer.
|
|
23
32
|
export { SideDrawer } from "./ui/components/SideDrawer";
|
|
@@ -112,6 +121,7 @@ export { useMediaUpload } from "./features/media/index";
|
|
|
112
121
|
export { SessionProvider, useSession } from "./react/contexts/SessionContext";
|
|
113
122
|
export { ThemeProvider } from "./react/contexts/ThemeContext";
|
|
114
123
|
export { useUrlTable } from "./react/hooks/useUrlTable";
|
|
124
|
+
export { useBulkSelection } from "./react/hooks/useBulkSelection";
|
|
115
125
|
// Client-safe constants, UI primitives, and views
|
|
116
126
|
export { ROUTES, PUBLIC_ROUTES, PROTECTED_ROUTES, AUTH_ROUTES } from "./constants/index";
|
|
117
127
|
export { Container, Grid, Row, Stack } from "./ui/components/Layout";
|
|
@@ -119,6 +129,8 @@ export { Div } from "./ui/components/Div";
|
|
|
119
129
|
export { Main, Section } from "./ui/components/Semantic";
|
|
120
130
|
export { Badge } from "./ui/components/Badge";
|
|
121
131
|
export { Button } from "./ui/components/Button";
|
|
132
|
+
export { StickyBottomBar } from "./ui/components/StickyBottomBar";
|
|
133
|
+
export { ClaimCouponButton } from "./ui/components/ClaimCouponButton";
|
|
122
134
|
export { Checkbox } from "./ui/components/Checkbox";
|
|
123
135
|
export { Input } from "./ui/components/Input";
|
|
124
136
|
export { OtpInput } from "./ui/components/OtpInput";
|
|
@@ -138,8 +150,9 @@ export { Search } from "./features/search/components";
|
|
|
138
150
|
export { ToastProvider, SkipToMain, NavigationLoader } from "./ui/index";
|
|
139
151
|
export { ZodSetup } from "./validation/ZodSetup";
|
|
140
152
|
export { AdminSidebar } from "./features/admin/components/AdminSidebar";
|
|
141
|
-
export { AdminDashboardView, AdminAnalyticsView, AdminListingScaffold, AdminPrizeDrawsView, useAdminListingData, toRecordArray, toStringValue, toRelativeDate, toRupees } from "./features/admin/index";
|
|
153
|
+
export { AdminDashboardView, AdminAnalyticsView, AdminListingScaffold, AdminPrizeDrawsView, AdminCarouselView, AdminSublistingCategoriesView, DataTable, useAdminListingData, toRecordArray, toStringValue, toRelativeDate, toRupees } from "./features/admin/index";
|
|
142
154
|
export { ADMIN_ENDPOINTS } from "./constants/index";
|
|
155
|
+
export { apiClient, ApiClientError } from "./http/index";
|
|
143
156
|
export { UserSidebar } from "./features/account/components/UserSidebar";
|
|
144
157
|
export { CouponsIndexListing } from "./features/promotions/components/CouponsIndexListing";
|
|
145
158
|
export { NotificationBell } from "./features/account/components/NotificationBell";
|
|
@@ -151,9 +164,8 @@ export { CartView, CartItemRow, CartSummary, CartDrawer, CheckoutView, CheckoutS
|
|
|
151
164
|
export { useAddresses, useCreateAddress, useUpdateAddress, useDeleteAddress, useSetDefaultAddress, useAddress } from "./features/account/index";
|
|
152
165
|
export { AddressBook, AddressCard, AddressForm } from "./features/account/index";
|
|
153
166
|
export { useProfile, useUpdateProfile } from "./features/account/index";
|
|
154
|
-
export { CategoryProductsView
|
|
167
|
+
export { CategoryProductsView } from "./features/categories/index";
|
|
155
168
|
export { MediaImage } from "./features/media/index";
|
|
156
|
-
export { ReviewsListView } from "./features/reviews/index";
|
|
157
169
|
export { StoreSidebar, SellerSidebar } from "./features/seller/components/SellerSidebar";
|
|
158
170
|
export { StoreProductsView, StoreAboutView } from "./features/stores/index";
|
|
159
171
|
export { SearchView } from "./features/search/index";
|
|
@@ -166,6 +178,7 @@ export { WishlistCapWatcher } from "./features/wishlist/components/WishlistCapWa
|
|
|
166
178
|
export { useWishlistCount, useWishlistCountWithLimit, WISHLIST_CAP_EVENT } from "./features/wishlist/hooks/useWishlistCount";
|
|
167
179
|
export { getGuestWishlistItems, addToGuestWishlist, removeFromGuestWishlist, isInGuestWishlist, clearGuestWishlist, getGuestWishlistCount, getGuestWishlistByType, } from "./features/wishlist/utils/guest-wishlist";
|
|
168
180
|
export { InteractiveProductCard } from "./features/products/index";
|
|
181
|
+
export { MarketplaceBundleCard } from "./features/products/components/MarketplaceBundleCard";
|
|
169
182
|
export { CompareOverlay } from "./features/products/components/CompareOverlay";
|
|
170
183
|
export { COMPARE_MAX_ITEMS } from "./features/products/constants/action-defs";
|
|
171
184
|
// Messages — RTDB-pinged Firestore conversations (D5 + VC7)
|
|
@@ -197,7 +210,7 @@ export { FeatureBadge, FeatureBadgeList } from "./features/products/components/F
|
|
|
197
210
|
export { SellerOffersPanel } from "./features/seller/components/SellerOffersPanel";
|
|
198
211
|
export { UserOffersPanel } from "./features/account/components/UserOffersPanel";
|
|
199
212
|
export { SellerDashboardView as StoreDashboardView, SellerDashboardView, useSellerDashboard as useStoreDashboard, useSellerDashboard } from "./features/seller/index";
|
|
200
|
-
export { SellerPayoutSettingsView, SellerShippingView, SellerReviewsView, SellerPayoutRequestView, SellerAnalyticsStats, SellerTopProducts, SellerAnalyticsView, SellerPayoutsView, SellerCouponEditorView, SellerBidsView, SellerAddressesView, SellerPreOrdersView, SellerPrizeDrawsView, PrintCenterView } from "./features/seller/components/index";
|
|
213
|
+
export { SellerPayoutSettingsView, SellerShippingView, SellerReviewsView, SellerPayoutRequestView, SellerAnalyticsStats, SellerTopProducts, SellerAnalyticsView, SellerPayoutsView, SellerCouponEditorView, SellerBidsView, SellerAddressesView, SellerPreOrdersView, SellerPrizeDrawsView, PrintCenterView, SellerOffersView, SellerGroupedListingsView, StoreGroupedListingsView, SellerAnalyticsAlertsView, StoreAnalyticsAlertsView } from "./features/seller/components/index";
|
|
201
214
|
export { UserAccountHubView, UserOrdersView, OrderDetailView, UserNotificationsView, UserReturnsView, UserSupportView, useNotifications } from "./features/account/index";
|
|
202
215
|
export { useOrders, useOrder, OrdersList } from "./features/orders/index";
|
|
203
216
|
export { useCouponValidate } from "./features/promotions/hooks/useCouponValidate";
|
|
@@ -247,3 +260,13 @@ export { LiveItemDetailView } from "./_internal/client/features/live/LiveItemDet
|
|
|
247
260
|
export { PhysicalLocationModal } from "./features/seller/components/PhysicalLocationModal";
|
|
248
261
|
// [CLIENT-ONLY] — Toggle switch primitive.
|
|
249
262
|
export { Toggle } from "./ui/components/Toggle";
|
|
263
|
+
// [CLIENT] Wave 4 seller management views.
|
|
264
|
+
export { SellerStoreCategoriesView } from "./features/seller/components/SellerStoreCategoriesView";
|
|
265
|
+
export { SellerTemplatesView } from "./features/seller/components/SellerTemplatesView";
|
|
266
|
+
export { SellerPayoutMethodsView } from "./features/seller/components/SellerPayoutMethodsView";
|
|
267
|
+
export { SellerShippingConfigsView } from "./features/seller/components/SellerShippingConfigsView";
|
|
268
|
+
export { SellerGoogleReviewsView } from "./features/seller/components/SellerGoogleReviewsView";
|
|
269
|
+
export { SellerBundlesView } from "./features/seller/components/SellerBundlesView";
|
|
270
|
+
export { SellerClassifiedView } from "./features/seller/components/SellerClassifiedView";
|
|
271
|
+
export { SellerDigitalCodesView } from "./features/seller/components/SellerDigitalCodesView";
|
|
272
|
+
export { SellerLiveView } from "./features/seller/components/SellerLiveView";
|
|
@@ -266,6 +266,20 @@ export declare const SELLER_ENDPOINTS: {
|
|
|
266
266
|
readonly FEATURE_BY_ID: (id: string) => string;
|
|
267
267
|
readonly PRODUCTS_BULK_LOCATION: "/api/store/products/bulk-location";
|
|
268
268
|
readonly ORDERS_BULK_LOCATION: "/api/store/orders/bulk-location";
|
|
269
|
+
readonly GROUPED_LISTINGS: "/api/store/grouped-listings";
|
|
270
|
+
readonly GROUPED_LISTING_BY_ID: (id: string) => string;
|
|
271
|
+
readonly ANALYTICS_ALERTS: "/api/store/analytics/alerts";
|
|
272
|
+
readonly ANALYTICS_ALERT_BY_ID: (id: string) => string;
|
|
273
|
+
readonly STORE_CATEGORIES: "/api/store/categories";
|
|
274
|
+
readonly STORE_CATEGORY_BY_ID: (id: string) => string;
|
|
275
|
+
readonly TEMPLATES: "/api/store/templates";
|
|
276
|
+
readonly TEMPLATE_BY_ID: (id: string) => string;
|
|
277
|
+
readonly PAYOUT_METHODS: "/api/store/payout-methods";
|
|
278
|
+
readonly PAYOUT_METHOD_BY_ID: (id: string) => string;
|
|
279
|
+
readonly SHIPPING_CONFIGS: "/api/store/shipping-configs";
|
|
280
|
+
readonly SHIPPING_CONFIG_BY_ID: (id: string) => string;
|
|
281
|
+
readonly GOOGLE_REVIEWS: "/api/store/google-reviews";
|
|
282
|
+
readonly GOOGLE_REVIEWS_SYNC: "/api/store/google-reviews/sync";
|
|
269
283
|
};
|
|
270
284
|
export declare const BLOG_ENDPOINTS: {
|
|
271
285
|
readonly LIST: "/api/blog";
|
|
@@ -574,6 +588,20 @@ export declare const API_ENDPOINTS: {
|
|
|
574
588
|
readonly FEATURE_BY_ID: (id: string) => string;
|
|
575
589
|
readonly PRODUCTS_BULK_LOCATION: "/api/store/products/bulk-location";
|
|
576
590
|
readonly ORDERS_BULK_LOCATION: "/api/store/orders/bulk-location";
|
|
591
|
+
readonly GROUPED_LISTINGS: "/api/store/grouped-listings";
|
|
592
|
+
readonly GROUPED_LISTING_BY_ID: (id: string) => string;
|
|
593
|
+
readonly ANALYTICS_ALERTS: "/api/store/analytics/alerts";
|
|
594
|
+
readonly ANALYTICS_ALERT_BY_ID: (id: string) => string;
|
|
595
|
+
readonly STORE_CATEGORIES: "/api/store/categories";
|
|
596
|
+
readonly STORE_CATEGORY_BY_ID: (id: string) => string;
|
|
597
|
+
readonly TEMPLATES: "/api/store/templates";
|
|
598
|
+
readonly TEMPLATE_BY_ID: (id: string) => string;
|
|
599
|
+
readonly PAYOUT_METHODS: "/api/store/payout-methods";
|
|
600
|
+
readonly PAYOUT_METHOD_BY_ID: (id: string) => string;
|
|
601
|
+
readonly SHIPPING_CONFIGS: "/api/store/shipping-configs";
|
|
602
|
+
readonly SHIPPING_CONFIG_BY_ID: (id: string) => string;
|
|
603
|
+
readonly GOOGLE_REVIEWS: "/api/store/google-reviews";
|
|
604
|
+
readonly GOOGLE_REVIEWS_SYNC: "/api/store/google-reviews/sync";
|
|
577
605
|
};
|
|
578
606
|
readonly BLOG: {
|
|
579
607
|
readonly LIST: "/api/blog";
|
|
@@ -881,6 +909,20 @@ export declare const API_ROUTES: {
|
|
|
881
909
|
readonly FEATURE_BY_ID: (id: string) => string;
|
|
882
910
|
readonly PRODUCTS_BULK_LOCATION: "/api/store/products/bulk-location";
|
|
883
911
|
readonly ORDERS_BULK_LOCATION: "/api/store/orders/bulk-location";
|
|
912
|
+
readonly GROUPED_LISTINGS: "/api/store/grouped-listings";
|
|
913
|
+
readonly GROUPED_LISTING_BY_ID: (id: string) => string;
|
|
914
|
+
readonly ANALYTICS_ALERTS: "/api/store/analytics/alerts";
|
|
915
|
+
readonly ANALYTICS_ALERT_BY_ID: (id: string) => string;
|
|
916
|
+
readonly STORE_CATEGORIES: "/api/store/categories";
|
|
917
|
+
readonly STORE_CATEGORY_BY_ID: (id: string) => string;
|
|
918
|
+
readonly TEMPLATES: "/api/store/templates";
|
|
919
|
+
readonly TEMPLATE_BY_ID: (id: string) => string;
|
|
920
|
+
readonly PAYOUT_METHODS: "/api/store/payout-methods";
|
|
921
|
+
readonly PAYOUT_METHOD_BY_ID: (id: string) => string;
|
|
922
|
+
readonly SHIPPING_CONFIGS: "/api/store/shipping-configs";
|
|
923
|
+
readonly SHIPPING_CONFIG_BY_ID: (id: string) => string;
|
|
924
|
+
readonly GOOGLE_REVIEWS: "/api/store/google-reviews";
|
|
925
|
+
readonly GOOGLE_REVIEWS_SYNC: "/api/store/google-reviews/sync";
|
|
884
926
|
};
|
|
885
927
|
readonly BLOG: {
|
|
886
928
|
readonly LIST: "/api/blog";
|
|
@@ -355,6 +355,20 @@ export const SELLER_ENDPOINTS = {
|
|
|
355
355
|
FEATURE_BY_ID: (id) => `/api/store/features/${id}`,
|
|
356
356
|
PRODUCTS_BULK_LOCATION: "/api/store/products/bulk-location",
|
|
357
357
|
ORDERS_BULK_LOCATION: "/api/store/orders/bulk-location",
|
|
358
|
+
GROUPED_LISTINGS: "/api/store/grouped-listings",
|
|
359
|
+
GROUPED_LISTING_BY_ID: (id) => `/api/store/grouped-listings/${id}`,
|
|
360
|
+
ANALYTICS_ALERTS: "/api/store/analytics/alerts",
|
|
361
|
+
ANALYTICS_ALERT_BY_ID: (id) => `/api/store/analytics/alerts/${id}`,
|
|
362
|
+
STORE_CATEGORIES: "/api/store/categories",
|
|
363
|
+
STORE_CATEGORY_BY_ID: (id) => `/api/store/categories/${id}`,
|
|
364
|
+
TEMPLATES: "/api/store/templates",
|
|
365
|
+
TEMPLATE_BY_ID: (id) => `/api/store/templates/${id}`,
|
|
366
|
+
PAYOUT_METHODS: "/api/store/payout-methods",
|
|
367
|
+
PAYOUT_METHOD_BY_ID: (id) => `/api/store/payout-methods/${id}`,
|
|
368
|
+
SHIPPING_CONFIGS: "/api/store/shipping-configs",
|
|
369
|
+
SHIPPING_CONFIG_BY_ID: (id) => `/api/store/shipping-configs/${id}`,
|
|
370
|
+
GOOGLE_REVIEWS: "/api/store/google-reviews",
|
|
371
|
+
GOOGLE_REVIEWS_SYNC: "/api/store/google-reviews/sync",
|
|
358
372
|
};
|
|
359
373
|
// ---------------------------------------------------------------------------
|
|
360
374
|
// Blog
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const GC: {
|
|
2
|
+
sectionWrap: string;
|
|
3
|
+
sectionHeader: string;
|
|
4
|
+
sectionBody: string;
|
|
5
|
+
iconPrimary: string;
|
|
6
|
+
sectionTitle: string;
|
|
7
|
+
listMuted: string;
|
|
8
|
+
listDiscMuted: string;
|
|
9
|
+
textMuted: string;
|
|
10
|
+
textStrong: string;
|
|
11
|
+
code: string;
|
|
12
|
+
pageHeaderGradient: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Shared className constants for guide view components.
|
|
2
|
+
export const GC = {
|
|
3
|
+
sectionWrap: "rounded-2xl border border-[var(--appkit-color-border)] bg-[var(--appkit-color-surface)] overflow-hidden",
|
|
4
|
+
sectionHeader: "flex items-center gap-3 px-6 py-4 border-b border-[var(--appkit-color-border)] bg-[var(--appkit-color-surface-2,var(--appkit-color-border))]/20",
|
|
5
|
+
sectionBody: "px-6 py-5",
|
|
6
|
+
iconPrimary: "w-5 h-5 text-[var(--appkit-color-primary)]",
|
|
7
|
+
sectionTitle: "text-base font-semibold text-[var(--appkit-color-text)]",
|
|
8
|
+
listMuted: "space-y-2 text-sm text-[var(--appkit-color-text-muted)]",
|
|
9
|
+
listDiscMuted: "list-disc list-inside space-y-1 text-sm text-[var(--appkit-color-text-muted)]",
|
|
10
|
+
textMuted: "text-sm text-[var(--appkit-color-text-muted)]",
|
|
11
|
+
textStrong: "text-[var(--appkit-color-text)]",
|
|
12
|
+
code: "text-xs bg-[var(--appkit-color-border)] px-1 py-0.5 rounded",
|
|
13
|
+
pageHeaderGradient: "linear-gradient(135deg,var(--appkit-color-primary-700,#4f46e5) 0%,var(--appkit-color-cobalt,#2563eb) 100%)",
|
|
14
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ROUTES } from "../../../constants";
|
|
3
3
|
import { THEME_CONSTANTS } from "../../../tokens";
|
|
4
|
-
import { Heading, Text, Section, Stack } from "../../../ui";
|
|
4
|
+
import { Heading, Text, Section, Stack, Alert } from "../../../ui";
|
|
5
5
|
import { TextLink } from "../../../ui";
|
|
6
|
-
import { BookOpen, MessageCircle, ShoppingBag,
|
|
6
|
+
import { BookOpen, MessageCircle, ShoppingBag, Gavel, PackageCheck, UserCheck, Store, ChevronRight, } from "lucide-react";
|
|
7
7
|
const DEFAULT_HERO_CLASS = "bg-gradient-to-br from-violet-700 to-indigo-700 dark:from-violet-800 dark:to-indigo-800";
|
|
8
8
|
export async function HelpPageView({ heroBannerClass = DEFAULT_HERO_CLASS, } = {}) {
|
|
9
9
|
const { themed, flex, page } = THEME_CONSTANTS;
|
|
@@ -12,58 +12,61 @@ export async function HelpPageView({ heroBannerClass = DEFAULT_HERO_CLASS, } = {
|
|
|
12
12
|
const TOPICS = [
|
|
13
13
|
{
|
|
14
14
|
icon: ShoppingBag,
|
|
15
|
-
title: t("
|
|
16
|
-
desc: t("
|
|
17
|
-
href: String(ROUTES.PUBLIC.
|
|
15
|
+
title: t("topicShopping"),
|
|
16
|
+
desc: t("topicShoppingDesc"),
|
|
17
|
+
href: String(ROUTES.PUBLIC.HELP_SHOPPING),
|
|
18
18
|
color: "bg-primary/5 border-primary/20 dark:bg-primary/10 dark:border-primary/30",
|
|
19
19
|
iconColor: "text-primary",
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
|
-
icon:
|
|
23
|
-
title: t("
|
|
24
|
-
desc: t("
|
|
25
|
-
href: String(ROUTES.PUBLIC.
|
|
22
|
+
icon: Gavel,
|
|
23
|
+
title: t("topicAuctions"),
|
|
24
|
+
desc: t("topicAuctionsDesc"),
|
|
25
|
+
href: String(ROUTES.PUBLIC.HELP_AUCTIONS),
|
|
26
26
|
color: "bg-sky-50 border-sky-200 dark:bg-sky-900/20 dark:border-sky-700",
|
|
27
27
|
iconColor: "text-sky-600 dark:text-sky-400",
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
icon:
|
|
31
|
-
title: t("
|
|
32
|
-
desc: t("
|
|
33
|
-
href: String(ROUTES.PUBLIC.
|
|
30
|
+
icon: PackageCheck,
|
|
31
|
+
title: t("topicOrders"),
|
|
32
|
+
desc: t("topicOrdersDesc"),
|
|
33
|
+
href: String(ROUTES.PUBLIC.HELP_ORDERS),
|
|
34
34
|
color: "bg-emerald-50 border-emerald-200 dark:bg-emerald-900/20 dark:border-emerald-700",
|
|
35
35
|
iconColor: "text-emerald-600 dark:text-emerald-400",
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
icon:
|
|
39
|
-
title: t("
|
|
40
|
-
desc: t("
|
|
41
|
-
href: String(ROUTES.PUBLIC.
|
|
42
|
-
color: "bg-
|
|
43
|
-
iconColor: "text-
|
|
38
|
+
icon: UserCheck,
|
|
39
|
+
title: t("topicAccount"),
|
|
40
|
+
desc: t("topicAccountDesc"),
|
|
41
|
+
href: String(ROUTES.PUBLIC.HELP_ACCOUNT),
|
|
42
|
+
color: "bg-violet-50 border-violet-200 dark:bg-violet-900/20 dark:border-violet-700",
|
|
43
|
+
iconColor: "text-violet-600 dark:text-violet-400",
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
icon: BookOpen,
|
|
47
47
|
title: t("topicFAQs"),
|
|
48
48
|
desc: t("topicFAQsDesc"),
|
|
49
49
|
href: String(ROUTES.PUBLIC.FAQS),
|
|
50
|
-
color: "bg-
|
|
51
|
-
iconColor: "text-
|
|
50
|
+
color: "bg-amber-50 border-amber-200 dark:bg-amber-900/20 dark:border-amber-700",
|
|
51
|
+
iconColor: "text-amber-600 dark:text-amber-400",
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
icon:
|
|
55
|
-
title: t("
|
|
56
|
-
desc: t("
|
|
57
|
-
href: String(ROUTES.PUBLIC.
|
|
54
|
+
icon: Store,
|
|
55
|
+
title: t("topicSelling"),
|
|
56
|
+
desc: t("topicSellingDesc"),
|
|
57
|
+
href: String(ROUTES.PUBLIC.SELLER_GUIDE),
|
|
58
58
|
color: "bg-rose-50 border-rose-200 dark:bg-rose-900/20 dark:border-rose-700",
|
|
59
59
|
iconColor: "text-rose-600 dark:text-rose-400",
|
|
60
60
|
},
|
|
61
61
|
];
|
|
62
|
-
return (_jsxs("div", { className: "-mx-4 md:-mx-6 lg:-mx-8 -mt-6 sm:-mt-8 lg:-mt-10", "data-section": "helppageview-div-107", children: [_jsx(Section, { className: `${heroBannerClass} text-white py-14 md:py-16 lg:py-20`, children: _jsxs("div", { className: `${page.container.md} text-center`, "data-section": "helppageview-div-108", children: [_jsx(Heading, { level: 1, variant: "none", className: "mb-4 text-white", children: t("title") }), _jsx(Text, { variant: "none", className: "text-white/80 max-w-2xl mx-auto", children: t("subtitle") })] }) }), _jsxs("div", { className: `${page.container.md} py-10 md:py-12 lg:py-16 space-y-14`, "data-section": "helppageview-div-109", children: [renderTopicsGrid(t, flex, TOPICS), renderTrackOrderSection(t, themed), renderContactCtaSection(t, themed)] })] }));
|
|
62
|
+
return (_jsxs("div", { className: "-mx-4 md:-mx-6 lg:-mx-8 -mt-6 sm:-mt-8 lg:-mt-10", "data-section": "helppageview-div-107", children: [_jsx(Section, { className: `${heroBannerClass} text-white py-14 md:py-16 lg:py-20`, children: _jsxs("div", { className: `${page.container.md} text-center`, "data-section": "helppageview-div-108", children: [_jsx(Heading, { level: 1, variant: "none", className: "mb-4 text-white", children: t("title") }), _jsx(Text, { variant: "none", className: "text-white/80 max-w-2xl mx-auto", children: t("subtitle") })] }) }), _jsxs("div", { className: `${page.container.md} py-10 md:py-12 lg:py-16 space-y-14`, "data-section": "helppageview-div-109", children: [renderTopicsGrid(t, flex, TOPICS), renderScamAwarenessAlert(t), renderTrackOrderSection(t, themed), renderContactCtaSection(t, themed)] })] }));
|
|
63
63
|
}
|
|
64
64
|
function renderTopicsGrid(t, flex, topics) {
|
|
65
65
|
return (_jsxs(Section, { children: [_jsx(Heading, { level: 2, className: "mb-6 text-center", children: t("browseTopics") }), _jsx("div", { className: "grid gap-4 sm:grid-cols-2 lg:grid-cols-3", "data-section": "helppageview-div-110", children: topics.map(({ icon: Icon, title, desc, href, color, iconColor }) => (_jsxs(TextLink, { href: href, className: `group rounded-xl border p-5 transition-shadow hover:shadow-md ${color} no-underline`, children: [_jsx("div", { className: `w-10 h-10 rounded-lg bg-white/60 dark:bg-white/10 ${flex.center} mb-3`, "data-section": "helppageview-div-111", children: _jsx(Icon, { className: `w-5 h-5 ${iconColor}` }) }), _jsxs("div", { className: `${flex.row} justify-between items-start`, "data-section": "helppageview-div-112", children: [_jsxs("div", { "data-section": "helppageview-div-113", children: [_jsx(Text, { className: "font-semibold mb-1", children: title }), _jsx(Text, { variant: "secondary", className: "text-sm leading-relaxed", children: desc })] }), _jsx(ChevronRight, { className: "w-4 h-4 mt-1 flex-shrink-0 opacity-40 group-hover:opacity-80 transition-opacity" })] })] }, href))) })] }));
|
|
66
66
|
}
|
|
67
|
+
function renderScamAwarenessAlert(t) {
|
|
68
|
+
return (_jsxs(Alert, { variant: "warning", title: t("scamAwarenessTitle"), children: [t("scamAwarenessText"), " ", _jsx(TextLink, { href: String(ROUTES.PUBLIC.SCAMS), className: "font-semibold underline", children: t("scamAwarenessCta") })] }));
|
|
69
|
+
}
|
|
67
70
|
function renderTrackOrderSection(t, themed) {
|
|
68
71
|
return (_jsxs(Section, { className: `rounded-2xl p-6 border ${themed.border} ${themed.bgSecondary} flex flex-col sm:flex-row items-center gap-4`, children: [_jsxs("div", { className: "flex-1", "data-section": "helppageview-div-114", children: [_jsx(Heading, { level: 3, className: "mb-1 text-base", children: t("trackOrderTitle") }), _jsx(Text, { variant: "secondary", className: "text-sm", children: t("trackOrderText") })] }), _jsx(TextLink, { href: String(ROUTES.PUBLIC.TRACK_ORDER), className: "flex-shrink-0", children: t("trackOrderCta") })] }));
|
|
69
72
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function BuyerAccountGuideView(): import("react/jsx-runtime").JSX.Element;
|