@mohasinac/appkit 2.2.0 → 2.3.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.
- package/README.md +79 -31
- package/dist/index.d.ts +3124 -1
- package/dist/index.js +5836 -1
- package/package.json +67 -87
- package/dist/cli/index.d.ts +0 -38
- package/dist/cli/index.js +0 -177
- package/dist/client.d.ts +0 -15
- package/dist/client.js +0 -15
- package/dist/constants/api-endpoint-resolver.d.ts +0 -34
- package/dist/constants/api-endpoint-resolver.js +0 -38
- package/dist/constants/api-endpoints.d.ts +0 -388
- package/dist/constants/api-endpoints.js +0 -342
- package/dist/constants/cache-invalidation.d.ts +0 -18
- package/dist/constants/cache-invalidation.js +0 -33
- package/dist/constants/index.d.ts +0 -14
- package/dist/constants/index.js +0 -14
- package/dist/contracts/auth.d.ts +0 -58
- package/dist/contracts/auth.js +0 -2
- package/dist/contracts/client-auth.d.ts +0 -22
- package/dist/contracts/client-auth.js +0 -17
- package/dist/contracts/client-payment-gateway.d.ts +0 -65
- package/dist/contracts/client-payment-gateway.js +0 -25
- package/dist/contracts/client-realtime.d.ts +0 -24
- package/dist/contracts/client-realtime.js +0 -18
- package/dist/contracts/client-session.d.ts +0 -37
- package/dist/contracts/client-session.js +0 -22
- package/dist/contracts/config.d.ts +0 -53
- package/dist/contracts/config.js +0 -2
- package/dist/contracts/email.d.ts +0 -30
- package/dist/contracts/email.js +0 -2
- package/dist/contracts/extend.d.ts +0 -270
- package/dist/contracts/extend.js +0 -75
- package/dist/contracts/feature.d.ts +0 -53
- package/dist/contracts/feature.js +0 -2
- package/dist/contracts/field-ops.d.ts +0 -31
- package/dist/contracts/field-ops.js +0 -35
- package/dist/contracts/form.d.ts +0 -89
- package/dist/contracts/form.js +0 -80
- package/dist/contracts/index.d.ts +0 -32
- package/dist/contracts/index.js +0 -13
- package/dist/contracts/infra.d.ts +0 -43
- package/dist/contracts/infra.js +0 -2
- package/dist/contracts/payment.d.ts +0 -39
- package/dist/contracts/payment.js +0 -2
- package/dist/contracts/registry.d.ts +0 -26
- package/dist/contracts/registry.js +0 -14
- package/dist/contracts/repository.d.ts +0 -127
- package/dist/contracts/repository.js +0 -28
- package/dist/contracts/search.d.ts +0 -44
- package/dist/contracts/search.js +0 -2
- package/dist/contracts/shipping.d.ts +0 -64
- package/dist/contracts/shipping.js +0 -2
- package/dist/contracts/storage.d.ts +0 -27
- package/dist/contracts/storage.js +0 -2
- package/dist/contracts/style.d.ts +0 -23
- package/dist/contracts/style.js +0 -2
- package/dist/contracts/table.d.ts +0 -104
- package/dist/contracts/table.js +0 -68
- package/dist/core/CacheManager.d.ts +0 -31
- package/dist/core/CacheManager.js +0 -63
- package/dist/core/EventBus.d.ts +0 -27
- package/dist/core/EventBus.js +0 -75
- package/dist/core/Logger.d.ts +0 -60
- package/dist/core/Logger.js +0 -153
- package/dist/core/Queue.d.ts +0 -43
- package/dist/core/Queue.js +0 -92
- package/dist/core/StorageManager.d.ts +0 -36
- package/dist/core/StorageManager.js +0 -159
- package/dist/core/baseline-resolver.d.ts +0 -52
- package/dist/core/baseline-resolver.js +0 -74
- package/dist/core/browser.d.ts +0 -18
- package/dist/core/browser.js +0 -9
- package/dist/core/copilot-log.repository.d.ts +0 -44
- package/dist/core/copilot-log.repository.js +0 -61
- package/dist/core/hooks/useSiteSettings.d.ts +0 -1
- package/dist/core/hooks/useSiteSettings.js +0 -11
- package/dist/core/index.d.ts +0 -34
- package/dist/core/index.js +0 -21
- package/dist/core/integration-keys.d.ts +0 -30
- package/dist/core/integration-keys.js +0 -55
- package/dist/core/mutation-events.d.ts +0 -147
- package/dist/core/mutation-events.js +0 -193
- package/dist/core/newsletter-actions.d.ts +0 -20
- package/dist/core/newsletter-actions.js +0 -28
- package/dist/core/newsletter.repository.d.ts +0 -55
- package/dist/core/newsletter.repository.js +0 -109
- package/dist/core/server-action.d.ts +0 -114
- package/dist/core/server-action.js +0 -119
- package/dist/core/site-config.d.ts +0 -33
- package/dist/core/site-config.js +0 -74
- package/dist/core/unit-of-work.d.ts +0 -32
- package/dist/core/unit-of-work.js +0 -114
- package/dist/errors/api-error.d.ts +0 -4
- package/dist/errors/api-error.js +0 -6
- package/dist/errors/authentication-error.d.ts +0 -4
- package/dist/errors/authentication-error.js +0 -6
- package/dist/errors/authorization-error.d.ts +0 -4
- package/dist/errors/authorization-error.js +0 -6
- package/dist/errors/base-error.d.ts +0 -14
- package/dist/errors/base-error.js +0 -22
- package/dist/errors/database-error.d.ts +0 -4
- package/dist/errors/database-error.js +0 -6
- package/dist/errors/error-codes.d.ts +0 -43
- package/dist/errors/error-codes.js +0 -93
- package/dist/errors/error-handler.d.ts +0 -16
- package/dist/errors/error-handler.js +0 -57
- package/dist/errors/index.d.ts +0 -11
- package/dist/errors/index.js +0 -15
- package/dist/errors/messages.d.ts +0 -469
- package/dist/errors/messages.js +0 -503
- package/dist/errors/not-found-error.d.ts +0 -4
- package/dist/errors/not-found-error.js +0 -6
- package/dist/errors/validation-error.d.ts +0 -4
- package/dist/errors/validation-error.js +0 -6
- package/dist/features/about/components/AboutView.d.ts +0 -38
- package/dist/features/about/components/AboutView.js +0 -5
- package/dist/features/about/index.d.ts +0 -2
- package/dist/features/about/index.js +0 -1
- package/dist/features/account/actions/address-actions.d.ts +0 -7
- package/dist/features/account/actions/address-actions.js +0 -24
- package/dist/features/account/actions/index.d.ts +0 -1
- package/dist/features/account/actions/index.js +0 -1
- package/dist/features/account/address-validation.d.ts +0 -20
- package/dist/features/account/address-validation.js +0 -35
- package/dist/features/account/api/[userId]/addresses/route.d.ts +0 -21
- package/dist/features/account/api/[userId]/addresses/route.js +0 -91
- package/dist/features/account/api/[userId]/route.d.ts +0 -23
- package/dist/features/account/api/[userId]/route.js +0 -67
- package/dist/features/account/columns/index.d.ts +0 -17
- package/dist/features/account/columns/index.js +0 -39
- package/dist/features/account/components/AddressBook.d.ts +0 -39
- package/dist/features/account/components/AddressBook.js +0 -14
- package/dist/features/account/components/AddressForm.d.ts +0 -39
- package/dist/features/account/components/AddressForm.js +0 -55
- package/dist/features/account/components/AddressSelectorCreate.d.ts +0 -16
- package/dist/features/account/components/AddressSelectorCreate.js +0 -40
- package/dist/features/account/components/BecomeSellerView.d.ts +0 -17
- package/dist/features/account/components/BecomeSellerView.js +0 -5
- package/dist/features/account/components/ChatList.d.ts +0 -14
- package/dist/features/account/components/ChatList.js +0 -10
- package/dist/features/account/components/ChatWindow.d.ts +0 -17
- package/dist/features/account/components/ChatWindow.js +0 -6
- package/dist/features/account/components/MessagesView.d.ts +0 -16
- package/dist/features/account/components/MessagesView.js +0 -5
- package/dist/features/account/components/NotificationBell.d.ts +0 -32
- package/dist/features/account/components/NotificationBell.js +0 -80
- package/dist/features/account/components/OrderDetailView.d.ts +0 -18
- package/dist/features/account/components/OrderDetailView.js +0 -12
- package/dist/features/account/components/ProfileView.d.ts +0 -12
- package/dist/features/account/components/ProfileView.js +0 -5
- package/dist/features/account/components/UserAccountHubView.d.ts +0 -13
- package/dist/features/account/components/UserAccountHubView.js +0 -5
- package/dist/features/account/components/UserAddressesView.d.ts +0 -13
- package/dist/features/account/components/UserAddressesView.js +0 -5
- package/dist/features/account/components/UserNotificationsView.d.ts +0 -15
- package/dist/features/account/components/UserNotificationsView.js +0 -12
- package/dist/features/account/components/UserOffersView.d.ts +0 -10
- package/dist/features/account/components/UserOffersView.js +0 -5
- package/dist/features/account/components/UserOrderTrackView.d.ts +0 -16
- package/dist/features/account/components/UserOrderTrackView.js +0 -8
- package/dist/features/account/components/UserOrdersView.d.ts +0 -12
- package/dist/features/account/components/UserOrdersView.js +0 -5
- package/dist/features/account/components/UserSettingsView.d.ts +0 -15
- package/dist/features/account/components/UserSettingsView.js +0 -12
- package/dist/features/account/components/index.d.ts +0 -34
- package/dist/features/account/components/index.js +0 -17
- package/dist/features/account/constants/addresses.d.ts +0 -13
- package/dist/features/account/constants/addresses.js +0 -43
- package/dist/features/account/hooks/useAccount.d.ts +0 -13
- package/dist/features/account/hooks/useAccount.js +0 -19
- package/dist/features/account/hooks/useAddressForm.d.ts +0 -24
- package/dist/features/account/hooks/useAddressForm.js +0 -58
- package/dist/features/account/hooks/useAddressSelector.d.ts +0 -25
- package/dist/features/account/hooks/useAddressSelector.js +0 -30
- package/dist/features/account/hooks/useAddresses.d.ts +0 -59
- package/dist/features/account/hooks/useAddresses.js +0 -73
- package/dist/features/account/hooks/useNotifications.d.ts +0 -23
- package/dist/features/account/hooks/useNotifications.js +0 -31
- package/dist/features/account/hooks/useProfile.d.ts +0 -25
- package/dist/features/account/hooks/useProfile.js +0 -24
- package/dist/features/account/hooks/useProfileStats.d.ts +0 -6
- package/dist/features/account/hooks/useProfileStats.js +0 -21
- package/dist/features/account/hooks/usePublicProfile.d.ts +0 -78
- package/dist/features/account/hooks/usePublicProfile.js +0 -51
- package/dist/features/account/index.d.ts +0 -15
- package/dist/features/account/index.js +0 -15
- package/dist/features/account/manifest.d.ts +0 -2
- package/dist/features/account/manifest.js +0 -27
- package/dist/features/account/messages/en.json +0 -12
- package/dist/features/account/repository/account.repository.d.ts +0 -11
- package/dist/features/account/repository/account.repository.js +0 -20
- package/dist/features/account/repository/address.repository.d.ts +0 -17
- package/dist/features/account/repository/address.repository.js +0 -185
- package/dist/features/account/schemas/firestore.d.ts +0 -48
- package/dist/features/account/schemas/firestore.js +0 -59
- package/dist/features/account/schemas/index.d.ts +0 -198
- package/dist/features/account/schemas/index.js +0 -51
- package/dist/features/account/server.d.ts +0 -9
- package/dist/features/account/server.js +0 -9
- package/dist/features/account/types/index.d.ts +0 -83
- package/dist/features/account/types/index.js +0 -2
- package/dist/features/admin/actions/admin-actions.d.ts +0 -35
- package/dist/features/admin/actions/admin-actions.js +0 -174
- package/dist/features/admin/actions/admin-coupon-actions.d.ts +0 -17
- package/dist/features/admin/actions/admin-coupon-actions.js +0 -87
- package/dist/features/admin/actions/admin-read-actions.d.ts +0 -105
- package/dist/features/admin/actions/admin-read-actions.js +0 -172
- package/dist/features/admin/actions/chat-actions.d.ts +0 -29
- package/dist/features/admin/actions/chat-actions.js +0 -97
- package/dist/features/admin/actions/index.d.ts +0 -6
- package/dist/features/admin/actions/index.js +0 -6
- package/dist/features/admin/actions/notification-actions.d.ts +0 -31
- package/dist/features/admin/actions/notification-actions.js +0 -42
- package/dist/features/admin/actions/site-settings-actions.d.ts +0 -8
- package/dist/features/admin/actions/site-settings-actions.js +0 -16
- package/dist/features/admin/api/bids/route.d.ts +0 -14
- package/dist/features/admin/api/bids/route.js +0 -53
- package/dist/features/admin/api/coupons/route.d.ts +0 -14
- package/dist/features/admin/api/coupons/route.js +0 -53
- package/dist/features/admin/api/products/route.d.ts +0 -14
- package/dist/features/admin/api/products/route.js +0 -54
- package/dist/features/admin/api/reviews/route.d.ts +0 -14
- package/dist/features/admin/api/reviews/route.js +0 -53
- package/dist/features/admin/components/AdminAnalyticsView.d.ts +0 -29
- package/dist/features/admin/components/AdminAnalyticsView.js +0 -15
- package/dist/features/admin/components/AdminBidsView.d.ts +0 -4
- package/dist/features/admin/components/AdminBidsView.js +0 -5
- package/dist/features/admin/components/AdminBlogView.d.ts +0 -4
- package/dist/features/admin/components/AdminBlogView.js +0 -5
- package/dist/features/admin/components/AdminCarouselView.d.ts +0 -9
- package/dist/features/admin/components/AdminCarouselView.js +0 -5
- package/dist/features/admin/components/AdminCategoriesView.d.ts +0 -9
- package/dist/features/admin/components/AdminCategoriesView.js +0 -5
- package/dist/features/admin/components/AdminCouponsView.d.ts +0 -4
- package/dist/features/admin/components/AdminCouponsView.js +0 -5
- package/dist/features/admin/components/AdminDashboardView.d.ts +0 -16
- package/dist/features/admin/components/AdminDashboardView.js +0 -11
- package/dist/features/admin/components/AdminFaqsView.d.ts +0 -4
- package/dist/features/admin/components/AdminFaqsView.js +0 -5
- package/dist/features/admin/components/AdminFeatureFlagsView.d.ts +0 -9
- package/dist/features/admin/components/AdminFeatureFlagsView.js +0 -5
- package/dist/features/admin/components/AdminFilterBar.d.ts +0 -65
- package/dist/features/admin/components/AdminFilterBar.js +0 -22
- package/dist/features/admin/components/AdminMediaView.d.ts +0 -9
- package/dist/features/admin/components/AdminMediaView.js +0 -5
- package/dist/features/admin/components/AdminNavigationView.d.ts +0 -9
- package/dist/features/admin/components/AdminNavigationView.js +0 -5
- package/dist/features/admin/components/AdminOrdersView.d.ts +0 -4
- package/dist/features/admin/components/AdminOrdersView.js +0 -5
- package/dist/features/admin/components/AdminPageHeader.d.ts +0 -53
- package/dist/features/admin/components/AdminPageHeader.js +0 -12
- package/dist/features/admin/components/AdminPayoutsView.d.ts +0 -4
- package/dist/features/admin/components/AdminPayoutsView.js +0 -5
- package/dist/features/admin/components/AdminProductsView.d.ts +0 -4
- package/dist/features/admin/components/AdminProductsView.js +0 -5
- package/dist/features/admin/components/AdminReviewsView.d.ts +0 -7
- package/dist/features/admin/components/AdminReviewsView.js +0 -5
- package/dist/features/admin/components/AdminSectionsView.d.ts +0 -9
- package/dist/features/admin/components/AdminSectionsView.js +0 -5
- package/dist/features/admin/components/AdminSessionsManager.d.ts +0 -9
- package/dist/features/admin/components/AdminSessionsManager.js +0 -5
- package/dist/features/admin/components/AdminSidebar.d.ts +0 -9
- package/dist/features/admin/components/AdminSidebar.js +0 -6
- package/dist/features/admin/components/AdminSiteView.d.ts +0 -10
- package/dist/features/admin/components/AdminSiteView.js +0 -5
- package/dist/features/admin/components/AdminStoresView.d.ts +0 -4
- package/dist/features/admin/components/AdminStoresView.js +0 -5
- package/dist/features/admin/components/AdminTopBar.d.ts +0 -8
- package/dist/features/admin/components/AdminTopBar.js +0 -8
- package/dist/features/admin/components/AdminUsersView.d.ts +0 -4
- package/dist/features/admin/components/AdminUsersView.js +0 -5
- package/dist/features/admin/components/DashboardStats.d.ts +0 -8
- package/dist/features/admin/components/DashboardStats.js +0 -21
- package/dist/features/admin/components/DataTable.d.ts +0 -19
- package/dist/features/admin/components/DataTable.js +0 -7
- package/dist/features/admin/components/DemoSeedView.d.ts +0 -11
- package/dist/features/admin/components/DemoSeedView.js +0 -5
- package/dist/features/admin/components/DrawerFormFooter.d.ts +0 -54
- package/dist/features/admin/components/DrawerFormFooter.js +0 -6
- package/dist/features/admin/components/QuickActionsPanel.d.ts +0 -15
- package/dist/features/admin/components/QuickActionsPanel.js +0 -6
- package/dist/features/admin/components/analytics/AdminAnalyticsCharts.d.ts +0 -17
- package/dist/features/admin/components/analytics/AdminAnalyticsCharts.js +0 -33
- package/dist/features/admin/components/analytics/AdminStatCard.d.ts +0 -8
- package/dist/features/admin/components/analytics/AdminStatCard.js +0 -6
- package/dist/features/admin/components/analytics/AdminTopProductsTable.d.ts +0 -16
- package/dist/features/admin/components/analytics/AdminTopProductsTable.js +0 -6
- package/dist/features/admin/components/analytics/index.d.ts +0 -3
- package/dist/features/admin/components/analytics/index.js +0 -3
- package/dist/features/admin/components/index.d.ts +0 -62
- package/dist/features/admin/components/index.js +0 -32
- package/dist/features/admin/hooks/useAdmin.d.ts +0 -9
- package/dist/features/admin/hooks/useAdmin.js +0 -14
- package/dist/features/admin/hooks/useChat.d.ts +0 -24
- package/dist/features/admin/hooks/useChat.js +0 -97
- package/dist/features/admin/index.d.ts +0 -8
- package/dist/features/admin/index.js +0 -7
- package/dist/features/admin/manifest.d.ts +0 -2
- package/dist/features/admin/manifest.js +0 -13
- package/dist/features/admin/messages/en.json +0 -13
- package/dist/features/admin/permission-map.d.ts +0 -3
- package/dist/features/admin/permission-map.js +0 -24
- package/dist/features/admin/repository/chat.repository.d.ts +0 -70
- package/dist/features/admin/repository/chat.repository.js +0 -216
- package/dist/features/admin/repository/notification.repository.d.ts +0 -64
- package/dist/features/admin/repository/notification.repository.js +0 -225
- package/dist/features/admin/repository/site-settings.repository.d.ts +0 -118
- package/dist/features/admin/repository/site-settings.repository.js +0 -214
- package/dist/features/admin/schemas/firestore.d.ts +0 -311
- package/dist/features/admin/schemas/firestore.js +0 -246
- package/dist/features/admin/schemas/index.d.ts +0 -1
- package/dist/features/admin/schemas/index.js +0 -1
- package/dist/features/admin/server.d.ts +0 -15
- package/dist/features/admin/server.js +0 -14
- package/dist/features/admin/types/index.d.ts +0 -61
- package/dist/features/admin/types/index.js +0 -1
- package/dist/features/admin/types/product.types.d.ts +0 -78
- package/dist/features/admin/types/product.types.js +0 -13
- package/dist/features/auctions/actions/bid-actions.d.ts +0 -22
- package/dist/features/auctions/actions/bid-actions.js +0 -106
- package/dist/features/auctions/actions/index.d.ts +0 -1
- package/dist/features/auctions/actions/index.js +0 -1
- package/dist/features/auctions/api/route.d.ts +0 -14
- package/dist/features/auctions/api/route.js +0 -67
- package/dist/features/auctions/columns/index.d.ts +0 -14
- package/dist/features/auctions/columns/index.js +0 -63
- package/dist/features/auctions/components/AuctionCard.d.ts +0 -26
- package/dist/features/auctions/components/AuctionCard.js +0 -35
- package/dist/features/auctions/components/MarketplaceAuctionCard.d.ts +0 -56
- package/dist/features/auctions/components/MarketplaceAuctionCard.js +0 -112
- package/dist/features/auctions/components/MarketplaceAuctionGrid.d.ts +0 -22
- package/dist/features/auctions/components/MarketplaceAuctionGrid.js +0 -37
- package/dist/features/auctions/components/index.d.ts +0 -3
- package/dist/features/auctions/components/index.js +0 -3
- package/dist/features/auctions/hooks/useAuctions.d.ts +0 -50
- package/dist/features/auctions/hooks/useAuctions.js +0 -93
- package/dist/features/auctions/hooks/usePlaceBid.d.ts +0 -24
- package/dist/features/auctions/hooks/usePlaceBid.js +0 -29
- package/dist/features/auctions/hooks/useRealtimeBids.d.ts +0 -38
- package/dist/features/auctions/hooks/useRealtimeBids.js +0 -66
- package/dist/features/auctions/index.d.ts +0 -8
- package/dist/features/auctions/index.js +0 -8
- package/dist/features/auctions/manifest.d.ts +0 -2
- package/dist/features/auctions/manifest.js +0 -17
- package/dist/features/auctions/messages/en.json +0 -18
- package/dist/features/auctions/repository/auctions.repository.d.ts +0 -12
- package/dist/features/auctions/repository/auctions.repository.js +0 -42
- package/dist/features/auctions/repository/bid.repository.d.ts +0 -145
- package/dist/features/auctions/repository/bid.repository.js +0 -370
- package/dist/features/auctions/schemas/firestore.d.ts +0 -48
- package/dist/features/auctions/schemas/firestore.js +0 -50
- package/dist/features/auctions/schemas/index.d.ts +0 -155
- package/dist/features/auctions/schemas/index.js +0 -64
- package/dist/features/auctions/server.d.ts +0 -10
- package/dist/features/auctions/server.js +0 -10
- package/dist/features/auctions/types/index.d.ts +0 -73
- package/dist/features/auctions/types/index.js +0 -1
- package/dist/features/auth/actions/index.d.ts +0 -2
- package/dist/features/auth/actions/index.js +0 -2
- package/dist/features/auth/actions/profile-actions.d.ts +0 -27
- package/dist/features/auth/actions/profile-actions.js +0 -50
- package/dist/features/auth/actions/realtime-token-actions.d.ts +0 -11
- package/dist/features/auth/actions/realtime-token-actions.js +0 -31
- package/dist/features/auth/api/route.d.ts +0 -22
- package/dist/features/auth/api/route.js +0 -48
- package/dist/features/auth/auth-helpers.d.ts +0 -14
- package/dist/features/auth/auth-helpers.js +0 -68
- package/dist/features/auth/components/AuthStatusPanel.d.ts +0 -10
- package/dist/features/auth/components/AuthStatusPanel.js +0 -22
- package/dist/features/auth/components/ForgotPasswordView.d.ts +0 -18
- package/dist/features/auth/components/ForgotPasswordView.js +0 -15
- package/dist/features/auth/components/Guards.d.ts +0 -86
- package/dist/features/auth/components/Guards.js +0 -91
- package/dist/features/auth/components/LoginForm.d.ts +0 -36
- package/dist/features/auth/components/LoginForm.js +0 -18
- package/dist/features/auth/components/RegisterForm.d.ts +0 -36
- package/dist/features/auth/components/RegisterForm.js +0 -27
- package/dist/features/auth/components/ResetPasswordView.d.ts +0 -23
- package/dist/features/auth/components/ResetPasswordView.js +0 -22
- package/dist/features/auth/components/SocialAuthButtons.d.ts +0 -8
- package/dist/features/auth/components/SocialAuthButtons.js +0 -6
- package/dist/features/auth/components/VerifyEmailView.d.ts +0 -20
- package/dist/features/auth/components/VerifyEmailView.js +0 -8
- package/dist/features/auth/components/index.d.ts +0 -14
- package/dist/features/auth/components/index.js +0 -8
- package/dist/features/auth/consent-otp.d.ts +0 -52
- package/dist/features/auth/consent-otp.js +0 -120
- package/dist/features/auth/hooks/useAuth.d.ts +0 -81
- package/dist/features/auth/hooks/useAuth.js +0 -164
- package/dist/features/auth/hooks/useAuthEvent.d.ts +0 -22
- package/dist/features/auth/hooks/useAuthEvent.js +0 -31
- package/dist/features/auth/hooks/useLogout.d.ts +0 -16
- package/dist/features/auth/hooks/useLogout.js +0 -22
- package/dist/features/auth/hooks/useRBAC.d.ts +0 -38
- package/dist/features/auth/hooks/useRBAC.js +0 -80
- package/dist/features/auth/index.d.ts +0 -10
- package/dist/features/auth/index.js +0 -10
- package/dist/features/auth/manifest.d.ts +0 -2
- package/dist/features/auth/manifest.js +0 -21
- package/dist/features/auth/messages/en.json +0 -13
- package/dist/features/auth/repository/index.d.ts +0 -4
- package/dist/features/auth/repository/index.js +0 -4
- package/dist/features/auth/repository/session.repository.d.ts +0 -44
- package/dist/features/auth/repository/session.repository.js +0 -246
- package/dist/features/auth/repository/sms-counter.repository.d.ts +0 -15
- package/dist/features/auth/repository/sms-counter.repository.js +0 -54
- package/dist/features/auth/repository/token.repository.d.ts +0 -38
- package/dist/features/auth/repository/token.repository.js +0 -186
- package/dist/features/auth/repository/user.repository.d.ts +0 -46
- package/dist/features/auth/repository/user.repository.js +0 -233
- package/dist/features/auth/schemas/firestore.d.ts +0 -351
- package/dist/features/auth/schemas/firestore.js +0 -272
- package/dist/features/auth/schemas/index.d.ts +0 -72
- package/dist/features/auth/schemas/index.js +0 -41
- package/dist/features/auth/server.d.ts +0 -21
- package/dist/features/auth/server.js +0 -21
- package/dist/features/auth/token-helpers.d.ts +0 -7
- package/dist/features/auth/token-helpers.js +0 -37
- package/dist/features/auth/token-store.d.ts +0 -39
- package/dist/features/auth/token-store.js +0 -120
- package/dist/features/auth/types/index.d.ts +0 -30
- package/dist/features/auth/types/index.js +0 -1
- package/dist/features/before-after/api/[id]/route.d.ts +0 -26
- package/dist/features/before-after/api/[id]/route.js +0 -88
- package/dist/features/before-after/api/route.d.ts +0 -13
- package/dist/features/before-after/api/route.js +0 -79
- package/dist/features/before-after/columns/index.d.ts +0 -17
- package/dist/features/before-after/columns/index.js +0 -50
- package/dist/features/before-after/components/BeforeAfterGallery.d.ts +0 -7
- package/dist/features/before-after/components/BeforeAfterGallery.js +0 -8
- package/dist/features/before-after/components/BeforeAfterSlider.d.ts +0 -7
- package/dist/features/before-after/components/BeforeAfterSlider.js +0 -27
- package/dist/features/before-after/components/index.d.ts +0 -2
- package/dist/features/before-after/components/index.js +0 -2
- package/dist/features/before-after/hooks/useBeforeAfter.d.ts +0 -15
- package/dist/features/before-after/hooks/useBeforeAfter.js +0 -25
- package/dist/features/before-after/index.d.ts +0 -6
- package/dist/features/before-after/index.js +0 -6
- package/dist/features/before-after/manifest.d.ts +0 -2
- package/dist/features/before-after/manifest.js +0 -10
- package/dist/features/before-after/messages/en.json +0 -8
- package/dist/features/before-after/repository/before-after.repository.d.ts +0 -13
- package/dist/features/before-after/repository/before-after.repository.js +0 -36
- package/dist/features/before-after/schemas/index.d.ts +0 -48
- package/dist/features/before-after/schemas/index.js +0 -24
- package/dist/features/before-after/server.d.ts +0 -7
- package/dist/features/before-after/server.js +0 -7
- package/dist/features/before-after/types/index.d.ts +0 -18
- package/dist/features/before-after/types/index.js +0 -1
- package/dist/features/blog/actions/blog-actions.d.ts +0 -302
- package/dist/features/blog/actions/blog-actions.js +0 -119
- package/dist/features/blog/actions/index.d.ts +0 -1
- package/dist/features/blog/actions/index.js +0 -1
- package/dist/features/blog/api/[slug]/route.d.ts +0 -23
- package/dist/features/blog/api/[slug]/route.js +0 -40
- package/dist/features/blog/api/route.d.ts +0 -12
- package/dist/features/blog/api/route.js +0 -64
- package/dist/features/blog/columns/index.d.ts +0 -27
- package/dist/features/blog/columns/index.js +0 -54
- package/dist/features/blog/components/BlogFeaturedCard.d.ts +0 -17
- package/dist/features/blog/components/BlogFeaturedCard.js +0 -24
- package/dist/features/blog/components/BlogFilters.d.ts +0 -106
- package/dist/features/blog/components/BlogFilters.js +0 -67
- package/dist/features/blog/components/BlogListView.d.ts +0 -29
- package/dist/features/blog/components/BlogListView.js +0 -38
- package/dist/features/blog/components/BlogPostForm.d.ts +0 -56
- package/dist/features/blog/components/BlogPostForm.js +0 -24
- package/dist/features/blog/components/BlogPostView.d.ts +0 -32
- package/dist/features/blog/components/BlogPostView.js +0 -39
- package/dist/features/blog/components/index.d.ts +0 -9
- package/dist/features/blog/components/index.js +0 -5
- package/dist/features/blog/hooks/useBlog.d.ts +0 -27
- package/dist/features/blog/hooks/useBlog.js +0 -51
- package/dist/features/blog/index.d.ts +0 -6
- package/dist/features/blog/index.js +0 -6
- package/dist/features/blog/manifest.d.ts +0 -2
- package/dist/features/blog/manifest.js +0 -14
- package/dist/features/blog/messages/en.json +0 -14
- package/dist/features/blog/repository/blog.repository.d.ts +0 -79
- package/dist/features/blog/repository/blog.repository.js +0 -130
- package/dist/features/blog/schemas/firestore.d.ts +0 -87
- package/dist/features/blog/schemas/firestore.js +0 -99
- package/dist/features/blog/schemas/index.d.ts +0 -207
- package/dist/features/blog/schemas/index.js +0 -71
- package/dist/features/blog/server.d.ts +0 -11
- package/dist/features/blog/server.js +0 -10
- package/dist/features/blog/types/index.d.ts +0 -47
- package/dist/features/blog/types/index.js +0 -1
- package/dist/features/cart/actions/cart-actions.d.ts +0 -16
- package/dist/features/cart/actions/cart-actions.js +0 -52
- package/dist/features/cart/actions/index.d.ts +0 -1
- package/dist/features/cart/actions/index.js +0 -1
- package/dist/features/cart/api/[id]/route.d.ts +0 -21
- package/dist/features/cart/api/[id]/route.js +0 -62
- package/dist/features/cart/api/route.d.ts +0 -13
- package/dist/features/cart/api/route.js +0 -79
- package/dist/features/cart/columns/index.d.ts +0 -17
- package/dist/features/cart/columns/index.js +0 -53
- package/dist/features/cart/components/CartDrawer.d.ts +0 -27
- package/dist/features/cart/components/CartDrawer.js +0 -14
- package/dist/features/cart/components/CartSummary.d.ts +0 -19
- package/dist/features/cart/components/CartSummary.js +0 -5
- package/dist/features/cart/components/CartView.d.ts +0 -17
- package/dist/features/cart/components/CartView.js +0 -7
- package/dist/features/cart/components/CheckoutAddressStep.d.ts +0 -20
- package/dist/features/cart/components/CheckoutAddressStep.js +0 -12
- package/dist/features/cart/components/CheckoutOtpModal.d.ts +0 -15
- package/dist/features/cart/components/CheckoutOtpModal.js +0 -12
- package/dist/features/cart/components/CheckoutSuccessView.d.ts +0 -12
- package/dist/features/cart/components/CheckoutSuccessView.js +0 -9
- package/dist/features/cart/components/CheckoutView.d.ts +0 -15
- package/dist/features/cart/components/CheckoutView.js +0 -18
- package/dist/features/cart/components/index.d.ts +0 -13
- package/dist/features/cart/components/index.js +0 -7
- package/dist/features/cart/hooks/useAddToCart.d.ts +0 -27
- package/dist/features/cart/hooks/useAddToCart.js +0 -52
- package/dist/features/cart/hooks/useCart.d.ts +0 -17
- package/dist/features/cart/hooks/useCart.js +0 -24
- package/dist/features/cart/hooks/useCartCount.d.ts +0 -7
- package/dist/features/cart/hooks/useCartCount.js +0 -19
- package/dist/features/cart/hooks/useCartQuery.d.ts +0 -8
- package/dist/features/cart/hooks/useCartQuery.js +0 -11
- package/dist/features/cart/hooks/useCheckoutReadQueries.d.ts +0 -14
- package/dist/features/cart/hooks/useCheckoutReadQueries.js +0 -18
- package/dist/features/cart/hooks/useGuestCart.d.ts +0 -18
- package/dist/features/cart/hooks/useGuestCart.js +0 -32
- package/dist/features/cart/hooks/useGuestCartMerge.d.ts +0 -15
- package/dist/features/cart/hooks/useGuestCartMerge.js +0 -50
- package/dist/features/cart/hooks/useOrder.d.ts +0 -13
- package/dist/features/cart/hooks/useOrder.js +0 -24
- package/dist/features/cart/index.d.ts +0 -14
- package/dist/features/cart/index.js +0 -14
- package/dist/features/cart/manifest.d.ts +0 -2
- package/dist/features/cart/manifest.js +0 -10
- package/dist/features/cart/messages/en.json +0 -10
- package/dist/features/cart/repository/cart.repository.d.ts +0 -23
- package/dist/features/cart/repository/cart.repository.js +0 -210
- package/dist/features/cart/schemas/firestore.d.ts +0 -83
- package/dist/features/cart/schemas/firestore.js +0 -36
- package/dist/features/cart/schemas/index.d.ts +0 -184
- package/dist/features/cart/schemas/index.js +0 -35
- package/dist/features/cart/server.d.ts +0 -8
- package/dist/features/cart/server.js +0 -8
- package/dist/features/cart/types/index.d.ts +0 -27
- package/dist/features/cart/types/index.js +0 -1
- package/dist/features/cart/utils/guest-cart.d.ts +0 -26
- package/dist/features/cart/utils/guest-cart.js +0 -83
- package/dist/features/categories/actions/category-actions.d.ts +0 -17
- package/dist/features/categories/actions/category-actions.js +0 -63
- package/dist/features/categories/actions/index.d.ts +0 -1
- package/dist/features/categories/actions/index.js +0 -1
- package/dist/features/categories/api/[id]/route.d.ts +0 -23
- package/dist/features/categories/api/[id]/route.js +0 -98
- package/dist/features/categories/api/route.d.ts +0 -19
- package/dist/features/categories/api/route.js +0 -200
- package/dist/features/categories/columns/index.d.ts +0 -15
- package/dist/features/categories/columns/index.js +0 -38
- package/dist/features/categories/components/BreadcrumbTrail.d.ts +0 -47
- package/dist/features/categories/components/BreadcrumbTrail.js +0 -36
- package/dist/features/categories/components/CategoriesListView.d.ts +0 -31
- package/dist/features/categories/components/CategoriesListView.js +0 -27
- package/dist/features/categories/components/CategoryFilters.d.ts +0 -68
- package/dist/features/categories/components/CategoryFilters.js +0 -75
- package/dist/features/categories/components/CategoryForm.d.ts +0 -24
- package/dist/features/categories/components/CategoryForm.js +0 -42
- package/dist/features/categories/components/CategoryGrid.d.ts +0 -14
- package/dist/features/categories/components/CategoryGrid.js +0 -14
- package/dist/features/categories/components/CategoryProductsView.d.ts +0 -49
- package/dist/features/categories/components/CategoryProductsView.js +0 -21
- package/dist/features/categories/components/CategorySelectorCreate.d.ts +0 -17
- package/dist/features/categories/components/CategorySelectorCreate.js +0 -57
- package/dist/features/categories/components/CategorySortSelect.d.ts +0 -9
- package/dist/features/categories/components/CategorySortSelect.js +0 -8
- package/dist/features/categories/components/CategoryTableColumns.d.ts +0 -30
- package/dist/features/categories/components/CategoryTableColumns.js +0 -54
- package/dist/features/categories/components/CategoryTree.d.ts +0 -15
- package/dist/features/categories/components/CategoryTree.js +0 -49
- package/dist/features/categories/components/ConcernCard.d.ts +0 -8
- package/dist/features/categories/components/ConcernCard.js +0 -5
- package/dist/features/categories/components/ConcernGrid.d.ts +0 -8
- package/dist/features/categories/components/ConcernGrid.js +0 -8
- package/dist/features/categories/components/index.d.ts +0 -22
- package/dist/features/categories/components/index.js +0 -12
- package/dist/features/categories/hooks/useCategories.d.ts +0 -26
- package/dist/features/categories/hooks/useCategories.js +0 -50
- package/dist/features/categories/hooks/useCategorySelector.d.ts +0 -26
- package/dist/features/categories/hooks/useCategorySelector.js +0 -42
- package/dist/features/categories/index.d.ts +0 -7
- package/dist/features/categories/index.js +0 -7
- package/dist/features/categories/manifest.d.ts +0 -2
- package/dist/features/categories/manifest.js +0 -20
- package/dist/features/categories/messages/en.json +0 -14
- package/dist/features/categories/repository/categories.repository.d.ts +0 -31
- package/dist/features/categories/repository/categories.repository.js +0 -399
- package/dist/features/categories/schemas/firestore.d.ts +0 -140
- package/dist/features/categories/schemas/firestore.js +0 -189
- package/dist/features/categories/schemas/index.d.ts +0 -207
- package/dist/features/categories/schemas/index.js +0 -67
- package/dist/features/categories/server.d.ts +0 -10
- package/dist/features/categories/server.js +0 -10
- package/dist/features/categories/types/index.d.ts +0 -80
- package/dist/features/categories/types/index.js +0 -13
- package/dist/features/checkout/actions/checkout-actions.d.ts +0 -14
- package/dist/features/checkout/actions/checkout-actions.js +0 -91
- package/dist/features/checkout/actions/index.d.ts +0 -1
- package/dist/features/checkout/actions/index.js +0 -1
- package/dist/features/checkout/components/CheckoutStepper.d.ts +0 -10
- package/dist/features/checkout/components/CheckoutStepper.js +0 -15
- package/dist/features/checkout/components/index.d.ts +0 -1
- package/dist/features/checkout/components/index.js +0 -1
- package/dist/features/checkout/hooks/useCheckout.d.ts +0 -9
- package/dist/features/checkout/hooks/useCheckout.js +0 -24
- package/dist/features/checkout/hooks/useCheckoutApi.d.ts +0 -74
- package/dist/features/checkout/hooks/useCheckoutApi.js +0 -48
- package/dist/features/checkout/hooks/usePaymentCheckout.d.ts +0 -78
- package/dist/features/checkout/hooks/usePaymentCheckout.js +0 -178
- package/dist/features/checkout/index.d.ts +0 -8
- package/dist/features/checkout/index.js +0 -7
- package/dist/features/checkout/manifest.d.ts +0 -2
- package/dist/features/checkout/manifest.js +0 -17
- package/dist/features/checkout/messages/en.json +0 -10
- package/dist/features/checkout/repository/failed-checkout.repository.d.ts +0 -18
- package/dist/features/checkout/repository/failed-checkout.repository.js +0 -29
- package/dist/features/checkout/schemas/firestore.d.ts +0 -33
- package/dist/features/checkout/schemas/firestore.js +0 -6
- package/dist/features/checkout/schemas/index.d.ts +0 -1
- package/dist/features/checkout/schemas/index.js +0 -1
- package/dist/features/checkout/server.d.ts +0 -8
- package/dist/features/checkout/server.js +0 -8
- package/dist/features/checkout/types/index.d.ts +0 -46
- package/dist/features/checkout/types/index.js +0 -2
- package/dist/features/cms/index.d.ts +0 -1
- package/dist/features/cms/index.js +0 -5
- package/dist/features/collections/api/[slug]/route.d.ts +0 -26
- package/dist/features/collections/api/[slug]/route.js +0 -102
- package/dist/features/collections/api/route.d.ts +0 -13
- package/dist/features/collections/api/route.js +0 -79
- package/dist/features/collections/columns/index.d.ts +0 -17
- package/dist/features/collections/columns/index.js +0 -55
- package/dist/features/collections/components/CollectionCard.d.ts +0 -12
- package/dist/features/collections/components/CollectionCard.js +0 -9
- package/dist/features/collections/components/index.d.ts +0 -1
- package/dist/features/collections/components/index.js +0 -1
- package/dist/features/collections/hooks/useCollections.d.ts +0 -7
- package/dist/features/collections/hooks/useCollections.js +0 -34
- package/dist/features/collections/index.d.ts +0 -6
- package/dist/features/collections/index.js +0 -6
- package/dist/features/collections/manifest.d.ts +0 -2
- package/dist/features/collections/manifest.js +0 -16
- package/dist/features/collections/messages/en.json +0 -10
- package/dist/features/collections/repository/collections.repository.d.ts +0 -8
- package/dist/features/collections/repository/collections.repository.js +0 -16
- package/dist/features/collections/schemas/index.d.ts +0 -76
- package/dist/features/collections/schemas/index.js +0 -34
- package/dist/features/collections/server.d.ts +0 -7
- package/dist/features/collections/server.js +0 -7
- package/dist/features/collections/types/index.d.ts +0 -25
- package/dist/features/collections/types/index.js +0 -1
- package/dist/features/consultation/api/[id]/route.d.ts +0 -26
- package/dist/features/consultation/api/[id]/route.js +0 -88
- package/dist/features/consultation/api/route.d.ts +0 -13
- package/dist/features/consultation/api/route.js +0 -79
- package/dist/features/consultation/columns/index.d.ts +0 -17
- package/dist/features/consultation/columns/index.js +0 -54
- package/dist/features/consultation/components/ConsultationForm.d.ts +0 -8
- package/dist/features/consultation/components/ConsultationForm.js +0 -51
- package/dist/features/consultation/components/index.d.ts +0 -1
- package/dist/features/consultation/components/index.js +0 -1
- package/dist/features/consultation/hooks/useBookConsultation.d.ts +0 -8
- package/dist/features/consultation/hooks/useBookConsultation.js +0 -16
- package/dist/features/consultation/index.d.ts +0 -6
- package/dist/features/consultation/index.js +0 -6
- package/dist/features/consultation/manifest.d.ts +0 -2
- package/dist/features/consultation/manifest.js +0 -12
- package/dist/features/consultation/messages/en.json +0 -25
- package/dist/features/consultation/repository/consultations.repository.d.ts +0 -12
- package/dist/features/consultation/repository/consultations.repository.js +0 -28
- package/dist/features/consultation/schemas/index.d.ts +0 -87
- package/dist/features/consultation/schemas/index.js +0 -47
- package/dist/features/consultation/server.d.ts +0 -7
- package/dist/features/consultation/server.js +0 -7
- package/dist/features/consultation/types/index.d.ts +0 -33
- package/dist/features/consultation/types/index.js +0 -1
- package/dist/features/contact/components/ContactForm.d.ts +0 -32
- package/dist/features/contact/components/ContactForm.js +0 -58
- package/dist/features/contact/components/ContactInfoSidebar.d.ts +0 -20
- package/dist/features/contact/components/ContactInfoSidebar.js +0 -6
- package/dist/features/contact/components/index.d.ts +0 -4
- package/dist/features/contact/components/index.js +0 -2
- package/dist/features/contact/email.d.ts +0 -61
- package/dist/features/contact/email.js +0 -345
- package/dist/features/contact/hooks/useContactSubmit.d.ts +0 -4
- package/dist/features/contact/hooks/useContactSubmit.js +0 -7
- package/dist/features/contact/index.d.ts +0 -2
- package/dist/features/contact/index.js +0 -2
- package/dist/features/contact/server.d.ts +0 -7
- package/dist/features/contact/server.js +0 -7
- package/dist/features/copilot/components/AdminCopilotView.d.ts +0 -21
- package/dist/features/copilot/components/AdminCopilotView.js +0 -29
- package/dist/features/copilot/components/index.d.ts +0 -2
- package/dist/features/copilot/components/index.js +0 -1
- package/dist/features/copilot/hooks/useCopilotChat.d.ts +0 -22
- package/dist/features/copilot/hooks/useCopilotChat.js +0 -57
- package/dist/features/copilot/hooks/useCopilotFeedback.d.ts +0 -15
- package/dist/features/copilot/hooks/useCopilotFeedback.js +0 -16
- package/dist/features/copilot/index.d.ts +0 -3
- package/dist/features/copilot/index.js +0 -3
- package/dist/features/corporate/api/[id]/route.d.ts +0 -26
- package/dist/features/corporate/api/[id]/route.js +0 -88
- package/dist/features/corporate/api/route.d.ts +0 -13
- package/dist/features/corporate/api/route.js +0 -79
- package/dist/features/corporate/columns/index.d.ts +0 -17
- package/dist/features/corporate/columns/index.js +0 -54
- package/dist/features/corporate/components/CorporateInquiryForm.d.ts +0 -7
- package/dist/features/corporate/components/CorporateInquiryForm.js +0 -36
- package/dist/features/corporate/components/index.d.ts +0 -1
- package/dist/features/corporate/components/index.js +0 -1
- package/dist/features/corporate/hooks/useSubmitCorporateInquiry.d.ts +0 -8
- package/dist/features/corporate/hooks/useSubmitCorporateInquiry.js +0 -16
- package/dist/features/corporate/index.d.ts +0 -6
- package/dist/features/corporate/index.js +0 -6
- package/dist/features/corporate/manifest.d.ts +0 -2
- package/dist/features/corporate/manifest.js +0 -12
- package/dist/features/corporate/messages/en.json +0 -26
- package/dist/features/corporate/repository/corporate.repository.d.ts +0 -12
- package/dist/features/corporate/repository/corporate.repository.js +0 -28
- package/dist/features/corporate/schemas/index.d.ts +0 -95
- package/dist/features/corporate/schemas/index.js +0 -50
- package/dist/features/corporate/server.d.ts +0 -7
- package/dist/features/corporate/server.js +0 -7
- package/dist/features/corporate/types/index.d.ts +0 -37
- package/dist/features/corporate/types/index.js +0 -1
- package/dist/features/cron/firebase-adapters.d.ts +0 -70
- package/dist/features/cron/firebase-adapters.js +0 -68
- package/dist/features/cron/index.d.ts +0 -5
- package/dist/features/cron/index.js +0 -7
- package/dist/features/cron/jobs/auction-expiry.job.d.ts +0 -27
- package/dist/features/cron/jobs/auction-expiry.job.js +0 -38
- package/dist/features/cron/jobs/preorder-reminder.job.d.ts +0 -14
- package/dist/features/cron/jobs/preorder-reminder.job.js +0 -40
- package/dist/features/cron/registry.d.ts +0 -45
- package/dist/features/cron/registry.js +0 -86
- package/dist/features/cron/types.d.ts +0 -66
- package/dist/features/cron/types.js +0 -9
- package/dist/features/events/actions/event-actions.d.ts +0 -92
- package/dist/features/events/actions/event-actions.js +0 -253
- package/dist/features/events/actions/index.d.ts +0 -1
- package/dist/features/events/actions/index.js +0 -1
- package/dist/features/events/api/[id]/route.d.ts +0 -24
- package/dist/features/events/api/[id]/route.js +0 -83
- package/dist/features/events/api/route.d.ts +0 -12
- package/dist/features/events/api/route.js +0 -88
- package/dist/features/events/columns/index.d.ts +0 -22
- package/dist/features/events/columns/index.js +0 -41
- package/dist/features/events/components/AdminEventEntriesView.d.ts +0 -17
- package/dist/features/events/components/AdminEventEntriesView.js +0 -10
- package/dist/features/events/components/AdminEventsView.d.ts +0 -11
- package/dist/features/events/components/AdminEventsView.js +0 -5
- package/dist/features/events/components/EventBanner.d.ts +0 -13
- package/dist/features/events/components/EventBanner.js +0 -48
- package/dist/features/events/components/EventCard.d.ts +0 -13
- package/dist/features/events/components/EventCard.js +0 -21
- package/dist/features/events/components/EventDetailView.d.ts +0 -15
- package/dist/features/events/components/EventDetailView.js +0 -11
- package/dist/features/events/components/EventFilters.d.ts +0 -105
- package/dist/features/events/components/EventFilters.js +0 -73
- package/dist/features/events/components/EventFormDrawer.d.ts +0 -22
- package/dist/features/events/components/EventFormDrawer.js +0 -6
- package/dist/features/events/components/EventLeaderboard.d.ts +0 -23
- package/dist/features/events/components/EventLeaderboard.js +0 -18
- package/dist/features/events/components/EventParticipateView.d.ts +0 -19
- package/dist/features/events/components/EventParticipateView.js +0 -13
- package/dist/features/events/components/EventStatusBadge.d.ts +0 -7
- package/dist/features/events/components/EventStatusBadge.js +0 -12
- package/dist/features/events/components/EventsListView.d.ts +0 -16
- package/dist/features/events/components/EventsListView.js +0 -21
- package/dist/features/events/components/index.d.ts +0 -19
- package/dist/features/events/components/index.js +0 -11
- package/dist/features/events/hooks/useBulkEvent.d.ts +0 -19
- package/dist/features/events/hooks/useBulkEvent.js +0 -36
- package/dist/features/events/hooks/useEvent.d.ts +0 -43
- package/dist/features/events/hooks/useEvent.js +0 -55
- package/dist/features/events/hooks/useEvents.d.ts +0 -27
- package/dist/features/events/hooks/useEvents.js +0 -38
- package/dist/features/events/index.d.ts +0 -8
- package/dist/features/events/index.js +0 -8
- package/dist/features/events/manifest.d.ts +0 -2
- package/dist/features/events/manifest.js +0 -24
- package/dist/features/events/messages/en.json +0 -28
- package/dist/features/events/repository/event-entry.repository.d.ts +0 -17
- package/dist/features/events/repository/event-entry.repository.js +0 -115
- package/dist/features/events/repository/events.repository.d.ts +0 -18
- package/dist/features/events/repository/events.repository.js +0 -128
- package/dist/features/events/schemas/firestore.d.ts +0 -115
- package/dist/features/events/schemas/firestore.js +0 -77
- package/dist/features/events/schemas/index.d.ts +0 -383
- package/dist/features/events/schemas/index.js +0 -87
- package/dist/features/events/server.d.ts +0 -11
- package/dist/features/events/server.js +0 -11
- package/dist/features/events/types/index.d.ts +0 -133
- package/dist/features/events/types/index.js +0 -1
- package/dist/features/faq/actions/faq-actions.d.ts +0 -191
- package/dist/features/faq/actions/faq-actions.js +0 -103
- package/dist/features/faq/actions/index.d.ts +0 -1
- package/dist/features/faq/actions/index.js +0 -1
- package/dist/features/faq/api/route.d.ts +0 -11
- package/dist/features/faq/api/route.js +0 -50
- package/dist/features/faq/columns/index.d.ts +0 -15
- package/dist/features/faq/columns/index.js +0 -47
- package/dist/features/faq/components/ContactCTA.d.ts +0 -16
- package/dist/features/faq/components/ContactCTA.js +0 -6
- package/dist/features/faq/components/FAQAccordion.d.ts +0 -20
- package/dist/features/faq/components/FAQAccordion.js +0 -17
- package/dist/features/faq/components/FAQCategorySidebar.d.ts +0 -24
- package/dist/features/faq/components/FAQCategorySidebar.js +0 -15
- package/dist/features/faq/components/FAQHelpfulButtons.d.ts +0 -19
- package/dist/features/faq/components/FAQHelpfulButtons.js +0 -46
- package/dist/features/faq/components/FAQPageContent.d.ts +0 -54
- package/dist/features/faq/components/FAQPageContent.js +0 -67
- package/dist/features/faq/components/FAQSortDropdown.d.ts +0 -13
- package/dist/features/faq/components/FAQSortDropdown.js +0 -11
- package/dist/features/faq/components/RelatedFAQs.d.ts +0 -10
- package/dist/features/faq/components/RelatedFAQs.js +0 -9
- package/dist/features/faq/components/index.d.ts +0 -9
- package/dist/features/faq/components/index.js +0 -7
- package/dist/features/faq/hooks/useFAQs.d.ts +0 -22
- package/dist/features/faq/hooks/useFAQs.js +0 -42
- package/dist/features/faq/hooks/useFaqList.d.ts +0 -194
- package/dist/features/faq/hooks/useFaqList.js +0 -35
- package/dist/features/faq/hooks/useFaqVote.d.ts +0 -14
- package/dist/features/faq/hooks/useFaqVote.js +0 -10
- package/dist/features/faq/index.d.ts +0 -8
- package/dist/features/faq/index.js +0 -8
- package/dist/features/faq/manifest.d.ts +0 -2
- package/dist/features/faq/manifest.js +0 -10
- package/dist/features/faq/messages/en.json +0 -14
- package/dist/features/faq/repository/faqs.repository.d.ts +0 -43
- package/dist/features/faq/repository/faqs.repository.js +0 -300
- package/dist/features/faq/schemas/firestore.d.ts +0 -63
- package/dist/features/faq/schemas/firestore.js +0 -115
- package/dist/features/faq/schemas/index.d.ts +0 -157
- package/dist/features/faq/schemas/index.js +0 -62
- package/dist/features/faq/server.d.ts +0 -9
- package/dist/features/faq/server.js +0 -9
- package/dist/features/faq/types/index.d.ts +0 -52
- package/dist/features/faq/types/index.js +0 -1
- package/dist/features/filters/FilterFacetSection.d.ts +0 -23
- package/dist/features/filters/FilterFacetSection.js +0 -39
- package/dist/features/filters/FilterPanel.d.ts +0 -61
- package/dist/features/filters/FilterPanel.js +0 -40
- package/dist/features/filters/RangeFilter.d.ts +0 -23
- package/dist/features/filters/RangeFilter.js +0 -28
- package/dist/features/filters/SwitchFilter.d.ts +0 -12
- package/dist/features/filters/SwitchFilter.js +0 -19
- package/dist/features/filters/filterUtils.d.ts +0 -11
- package/dist/features/filters/filterUtils.js +0 -13
- package/dist/features/filters/index.d.ts +0 -10
- package/dist/features/filters/index.js +0 -6
- package/dist/features/forms/Checkbox.d.ts +0 -8
- package/dist/features/forms/Checkbox.js +0 -15
- package/dist/features/forms/Form.d.ts +0 -25
- package/dist/features/forms/Form.js +0 -38
- package/dist/features/forms/Input.d.ts +0 -10
- package/dist/features/forms/Input.js +0 -23
- package/dist/features/forms/Radio.d.ts +0 -17
- package/dist/features/forms/Radio.js +0 -19
- package/dist/features/forms/Select.d.ts +0 -13
- package/dist/features/forms/Select.js +0 -8
- package/dist/features/forms/Slider.d.ts +0 -20
- package/dist/features/forms/Slider.js +0 -22
- package/dist/features/forms/Textarea.d.ts +0 -8
- package/dist/features/forms/Textarea.js +0 -15
- package/dist/features/forms/Toggle.d.ts +0 -15
- package/dist/features/forms/Toggle.js +0 -48
- package/dist/features/forms/index.d.ts +0 -17
- package/dist/features/forms/index.js +0 -11
- package/dist/features/forms/utils.d.ts +0 -10
- package/dist/features/forms/utils.js +0 -13
- package/dist/features/homepage/actions/carousel-actions.d.ts +0 -37
- package/dist/features/homepage/actions/carousel-actions.js +0 -54
- package/dist/features/homepage/actions/homepage-section-actions.d.ts +0 -46
- package/dist/features/homepage/actions/homepage-section-actions.js +0 -55
- package/dist/features/homepage/actions/index.d.ts +0 -2
- package/dist/features/homepage/actions/index.js +0 -2
- package/dist/features/homepage/api/[id]/route.d.ts +0 -23
- package/dist/features/homepage/api/[id]/route.js +0 -100
- package/dist/features/homepage/api/carousel/[id]/route.d.ts +0 -23
- package/dist/features/homepage/api/carousel/[id]/route.js +0 -122
- package/dist/features/homepage/api/carousel/route.d.ts +0 -15
- package/dist/features/homepage/api/carousel/route.js +0 -154
- package/dist/features/homepage/api/route.d.ts +0 -14
- package/dist/features/homepage/api/route.js +0 -136
- package/dist/features/homepage/api/sections/[id]/route.d.ts +0 -26
- package/dist/features/homepage/api/sections/[id]/route.js +0 -88
- package/dist/features/homepage/api/sections/route.d.ts +0 -13
- package/dist/features/homepage/api/sections/route.js +0 -79
- package/dist/features/homepage/components/AdvertisementBanner.d.ts +0 -13
- package/dist/features/homepage/components/AdvertisementBanner.js +0 -23
- package/dist/features/homepage/components/BeforeAfterCard.d.ts +0 -10
- package/dist/features/homepage/components/BeforeAfterCard.js +0 -54
- package/dist/features/homepage/components/CharacterHotspot.d.ts +0 -24
- package/dist/features/homepage/components/CharacterHotspot.js +0 -373
- package/dist/features/homepage/components/CharacterHotspotForm.d.ts +0 -26
- package/dist/features/homepage/components/CharacterHotspotForm.js +0 -309
- package/dist/features/homepage/components/CustomerReviewsSection.d.ts +0 -13
- package/dist/features/homepage/components/CustomerReviewsSection.js +0 -14
- package/dist/features/homepage/components/FAQSection.d.ts +0 -26
- package/dist/features/homepage/components/FAQSection.js +0 -20
- package/dist/features/homepage/components/FeaturedResultsSection.d.ts +0 -17
- package/dist/features/homepage/components/FeaturedResultsSection.js +0 -18
- package/dist/features/homepage/components/HeroBanner.d.ts +0 -7
- package/dist/features/homepage/components/HeroBanner.js +0 -93
- package/dist/features/homepage/components/HeroCarousel.d.ts +0 -12
- package/dist/features/homepage/components/HeroCarousel.js +0 -157
- package/dist/features/homepage/components/HeroSection.d.ts +0 -7
- package/dist/features/homepage/components/HeroSection.js +0 -12
- package/dist/features/homepage/components/HomepageSkeleton.d.ts +0 -2
- package/dist/features/homepage/components/HomepageSkeleton.js +0 -14
- package/dist/features/homepage/components/HomepageView.d.ts +0 -25
- package/dist/features/homepage/components/HomepageView.js +0 -5
- package/dist/features/homepage/components/HowItWorksInfoView.d.ts +0 -36
- package/dist/features/homepage/components/HowItWorksInfoView.js +0 -8
- package/dist/features/homepage/components/HowItWorksSection.d.ts +0 -23
- package/dist/features/homepage/components/HowItWorksSection.js +0 -36
- package/dist/features/homepage/components/NewsletterBanner.d.ts +0 -22
- package/dist/features/homepage/components/NewsletterBanner.js +0 -34
- package/dist/features/homepage/components/NewsletterSection.d.ts +0 -10
- package/dist/features/homepage/components/NewsletterSection.js +0 -8
- package/dist/features/homepage/components/PromoGrid.d.ts +0 -9
- package/dist/features/homepage/components/PromoGrid.js +0 -35
- package/dist/features/homepage/components/SectionCarousel.d.ts +0 -75
- package/dist/features/homepage/components/SectionCarousel.js +0 -39
- package/dist/features/homepage/components/SecurityHighlightsSection.d.ts +0 -21
- package/dist/features/homepage/components/SecurityHighlightsSection.js +0 -36
- package/dist/features/homepage/components/SiteFeaturesSection.d.ts +0 -13
- package/dist/features/homepage/components/SiteFeaturesSection.js +0 -9
- package/dist/features/homepage/components/StatsCounterSection.d.ts +0 -14
- package/dist/features/homepage/components/StatsCounterSection.js +0 -32
- package/dist/features/homepage/components/TestimonialsCarousel.d.ts +0 -9
- package/dist/features/homepage/components/TestimonialsCarousel.js +0 -30
- package/dist/features/homepage/components/TrustBadges.d.ts +0 -5
- package/dist/features/homepage/components/TrustBadges.js +0 -54
- package/dist/features/homepage/components/TrustFeaturesSection.d.ts +0 -16
- package/dist/features/homepage/components/TrustFeaturesSection.js +0 -41
- package/dist/features/homepage/components/TrustIndicatorsSection.d.ts +0 -11
- package/dist/features/homepage/components/TrustIndicatorsSection.js +0 -9
- package/dist/features/homepage/components/WelcomeSection.d.ts +0 -20
- package/dist/features/homepage/components/WelcomeSection.js +0 -12
- package/dist/features/homepage/components/WhatsAppCommunitySection.d.ts +0 -15
- package/dist/features/homepage/components/WhatsAppCommunitySection.js +0 -21
- package/dist/features/homepage/components/index.d.ts +0 -52
- package/dist/features/homepage/components/index.js +0 -27
- package/dist/features/homepage/hooks/useBlogArticles.d.ts +0 -12
- package/dist/features/homepage/hooks/useBlogArticles.js +0 -31
- package/dist/features/homepage/hooks/useFeaturedAuctions.d.ts +0 -2
- package/dist/features/homepage/hooks/useFeaturedAuctions.js +0 -26
- package/dist/features/homepage/hooks/useFeaturedPreOrders.d.ts +0 -2
- package/dist/features/homepage/hooks/useFeaturedPreOrders.js +0 -26
- package/dist/features/homepage/hooks/useFeaturedProducts.d.ts +0 -4
- package/dist/features/homepage/hooks/useFeaturedProducts.js +0 -32
- package/dist/features/homepage/hooks/useHeroCarousel.d.ts +0 -9
- package/dist/features/homepage/hooks/useHeroCarousel.js +0 -17
- package/dist/features/homepage/hooks/useHomepage.d.ts +0 -11
- package/dist/features/homepage/hooks/useHomepage.js +0 -18
- package/dist/features/homepage/hooks/useHomepageReviews.d.ts +0 -7
- package/dist/features/homepage/hooks/useHomepageReviews.js +0 -16
- package/dist/features/homepage/hooks/useHomepageSections.d.ts +0 -2
- package/dist/features/homepage/hooks/useHomepageSections.js +0 -11
- package/dist/features/homepage/hooks/useNewsletter.d.ts +0 -14
- package/dist/features/homepage/hooks/useNewsletter.js +0 -10
- package/dist/features/homepage/hooks/useTopBrands.d.ts +0 -2
- package/dist/features/homepage/hooks/useTopBrands.js +0 -12
- package/dist/features/homepage/hooks/useTopCategories.d.ts +0 -4
- package/dist/features/homepage/hooks/useTopCategories.js +0 -13
- package/dist/features/homepage/index.d.ts +0 -13
- package/dist/features/homepage/index.js +0 -13
- package/dist/features/homepage/manifest.d.ts +0 -2
- package/dist/features/homepage/manifest.js +0 -14
- package/dist/features/homepage/messages/en.json +0 -6
- package/dist/features/homepage/repository/carousel.repository.d.ts +0 -101
- package/dist/features/homepage/repository/carousel.repository.js +0 -252
- package/dist/features/homepage/repository/homepage-sections.repository.d.ts +0 -27
- package/dist/features/homepage/repository/homepage-sections.repository.js +0 -174
- package/dist/features/homepage/repository/homepage.repository.d.ts +0 -11
- package/dist/features/homepage/repository/homepage.repository.js +0 -25
- package/dist/features/homepage/schemas/firestore.d.ts +0 -251
- package/dist/features/homepage/schemas/firestore.js +0 -83
- package/dist/features/homepage/schemas/index.d.ts +0 -1
- package/dist/features/homepage/schemas/index.js +0 -1
- package/dist/features/homepage/server.d.ts +0 -10
- package/dist/features/homepage/server.js +0 -10
- package/dist/features/homepage/types/index.d.ts +0 -163
- package/dist/features/homepage/types/index.js +0 -1
- package/dist/features/layout/AutoBreadcrumbs.d.ts +0 -15
- package/dist/features/layout/AutoBreadcrumbs.js +0 -84
- package/dist/features/layout/BackToTop.d.ts +0 -16
- package/dist/features/layout/BackToTop.js +0 -26
- package/dist/features/layout/BottomActions.d.ts +0 -1
- package/dist/features/layout/BottomActions.js +0 -153
- package/dist/features/layout/BottomActionsContext.d.ts +0 -107
- package/dist/features/layout/BottomActionsContext.js +0 -114
- package/dist/features/layout/BottomNavItem.d.ts +0 -28
- package/dist/features/layout/BottomNavItem.js +0 -28
- package/dist/features/layout/BottomNavLayout.d.ts +0 -14
- package/dist/features/layout/BottomNavLayout.js +0 -12
- package/dist/features/layout/BottomNavbar.d.ts +0 -46
- package/dist/features/layout/BottomNavbar.js +0 -19
- package/dist/features/layout/BottomSheet.d.ts +0 -29
- package/dist/features/layout/BottomSheet.js +0 -40
- package/dist/features/layout/Breadcrumbs.d.ts +0 -26
- package/dist/features/layout/Breadcrumbs.js +0 -25
- package/dist/features/layout/DashboardNavContext.d.ts +0 -19
- package/dist/features/layout/DashboardNavContext.js +0 -36
- package/dist/features/layout/FooterLayout.d.ts +0 -39
- package/dist/features/layout/FooterLayout.js +0 -12
- package/dist/features/layout/LayoutClient.d.ts +0 -11
- package/dist/features/layout/LayoutClient.js +0 -7
- package/dist/features/layout/ListingLayout.d.ts +0 -35
- package/dist/features/layout/ListingLayout.js +0 -104
- package/dist/features/layout/LocaleSwitcher.d.ts +0 -22
- package/dist/features/layout/LocaleSwitcher.js +0 -12
- package/dist/features/layout/MainNavbar.d.ts +0 -32
- package/dist/features/layout/MainNavbar.js +0 -29
- package/dist/features/layout/NavItem.d.ts +0 -19
- package/dist/features/layout/NavItem.js +0 -35
- package/dist/features/layout/NavbarLayout.d.ts +0 -27
- package/dist/features/layout/NavbarLayout.js +0 -23
- package/dist/features/layout/SidebarLayout.d.ts +0 -24
- package/dist/features/layout/SidebarLayout.js +0 -29
- package/dist/features/layout/TitleBar.d.ts +0 -18
- package/dist/features/layout/TitleBar.js +0 -19
- package/dist/features/layout/TitleBarLayout.d.ts +0 -48
- package/dist/features/layout/TitleBarLayout.js +0 -17
- package/dist/features/layout/hooks/useBottomActions.d.ts +0 -7
- package/dist/features/layout/hooks/useBottomActions.js +0 -28
- package/dist/features/layout/index.d.ts +0 -41
- package/dist/features/layout/index.js +0 -23
- package/dist/features/loyalty/api/admin/loyalty/grant/route.d.ts +0 -12
- package/dist/features/loyalty/api/admin/loyalty/grant/route.js +0 -36
- package/dist/features/loyalty/api/balance/route.d.ts +0 -12
- package/dist/features/loyalty/api/balance/route.js +0 -39
- package/dist/features/loyalty/api/earn/route.d.ts +0 -12
- package/dist/features/loyalty/api/earn/route.js +0 -36
- package/dist/features/loyalty/api/history/route.d.ts +0 -12
- package/dist/features/loyalty/api/history/route.js +0 -56
- package/dist/features/loyalty/api/redeem/route.d.ts +0 -12
- package/dist/features/loyalty/api/redeem/route.js +0 -36
- package/dist/features/loyalty/columns/index.d.ts +0 -17
- package/dist/features/loyalty/columns/index.js +0 -40
- package/dist/features/loyalty/components/CoinsDisplay.d.ts +0 -11
- package/dist/features/loyalty/components/CoinsDisplay.js +0 -9
- package/dist/features/loyalty/components/index.d.ts +0 -1
- package/dist/features/loyalty/components/index.js +0 -1
- package/dist/features/loyalty/hooks/useLoyaltyBalance.d.ts +0 -4
- package/dist/features/loyalty/hooks/useLoyaltyBalance.js +0 -18
- package/dist/features/loyalty/index.d.ts +0 -6
- package/dist/features/loyalty/index.js +0 -6
- package/dist/features/loyalty/manifest.d.ts +0 -2
- package/dist/features/loyalty/manifest.js +0 -16
- package/dist/features/loyalty/messages/en.json +0 -19
- package/dist/features/loyalty/repository/loyalty.repository.d.ts +0 -8
- package/dist/features/loyalty/repository/loyalty.repository.js +0 -22
- package/dist/features/loyalty/schemas/index.d.ts +0 -85
- package/dist/features/loyalty/schemas/index.js +0 -40
- package/dist/features/loyalty/server.d.ts +0 -7
- package/dist/features/loyalty/server.js +0 -7
- package/dist/features/loyalty/types/index.d.ts +0 -31
- package/dist/features/loyalty/types/index.js +0 -1
- package/dist/features/loyalty/types/loyalty-config.d.ts +0 -7
- package/dist/features/loyalty/types/loyalty-config.js +0 -1
- package/dist/features/loyalty/types/loyalty-math.d.ts +0 -9
- package/dist/features/loyalty/types/loyalty-math.js +0 -27
- package/dist/features/media/AvatarUpload.d.ts +0 -22
- package/dist/features/media/AvatarUpload.js +0 -133
- package/dist/features/media/MediaAvatar.d.ts +0 -12
- package/dist/features/media/MediaAvatar.js +0 -13
- package/dist/features/media/MediaImage.d.ts +0 -28
- package/dist/features/media/MediaImage.js +0 -35
- package/dist/features/media/MediaLightbox.d.ts +0 -32
- package/dist/features/media/MediaLightbox.js +0 -245
- package/dist/features/media/MediaVideo.d.ts +0 -22
- package/dist/features/media/MediaVideo.js +0 -38
- package/dist/features/media/components/MediaSlider.d.ts +0 -10
- package/dist/features/media/components/MediaSlider.js +0 -12
- package/dist/features/media/finalize.d.ts +0 -11
- package/dist/features/media/finalize.js +0 -70
- package/dist/features/media/hooks/useMedia.d.ts +0 -198
- package/dist/features/media/hooks/useMedia.js +0 -78
- package/dist/features/media/index.d.ts +0 -30
- package/dist/features/media/index.js +0 -21
- package/dist/features/media/messages/en.json +0 -63
- package/dist/features/media/modals/ImageCropModal.d.ts +0 -16
- package/dist/features/media/modals/ImageCropModal.js +0 -99
- package/dist/features/media/modals/VideoThumbnailSelector.d.ts +0 -10
- package/dist/features/media/modals/VideoThumbnailSelector.js +0 -51
- package/dist/features/media/modals/VideoTrimModal.d.ts +0 -11
- package/dist/features/media/modals/VideoTrimModal.js +0 -73
- package/dist/features/media/server.d.ts +0 -2
- package/dist/features/media/server.js +0 -2
- package/dist/features/media/types/index.d.ts +0 -29
- package/dist/features/media/types/index.js +0 -43
- package/dist/features/media/upload/CameraCapture.d.ts +0 -8
- package/dist/features/media/upload/CameraCapture.js +0 -59
- package/dist/features/media/upload/ImageUpload.d.ts +0 -14
- package/dist/features/media/upload/ImageUpload.js +0 -132
- package/dist/features/media/upload/MediaUploadField.d.ts +0 -31
- package/dist/features/media/upload/MediaUploadField.js +0 -204
- package/dist/features/media/upload/MediaUploadList.d.ts +0 -26
- package/dist/features/media/upload/MediaUploadList.js +0 -104
- package/dist/features/orders/actions/index.d.ts +0 -2
- package/dist/features/orders/actions/index.js +0 -2
- package/dist/features/orders/actions/order-actions.d.ts +0 -16
- package/dist/features/orders/actions/order-actions.js +0 -46
- package/dist/features/orders/actions/refund-actions.d.ts +0 -16
- package/dist/features/orders/actions/refund-actions.js +0 -88
- package/dist/features/orders/api/track/[trackingId]/route.d.ts +0 -17
- package/dist/features/orders/api/track/[trackingId]/route.js +0 -30
- package/dist/features/orders/columns/index.d.ts +0 -15
- package/dist/features/orders/columns/index.js +0 -34
- package/dist/features/orders/components/MarketplaceOrderCard.d.ts +0 -37
- package/dist/features/orders/components/MarketplaceOrderCard.js +0 -52
- package/dist/features/orders/components/OrderFilters.d.ts +0 -82
- package/dist/features/orders/components/OrderFilters.js +0 -106
- package/dist/features/orders/components/OrdersList.d.ts +0 -18
- package/dist/features/orders/components/OrdersList.js +0 -37
- package/dist/features/orders/components/index.d.ts +0 -4
- package/dist/features/orders/components/index.js +0 -3
- package/dist/features/orders/hooks/useOrders.d.ts +0 -32
- package/dist/features/orders/hooks/useOrders.js +0 -57
- package/dist/features/orders/index.d.ts +0 -7
- package/dist/features/orders/index.js +0 -7
- package/dist/features/orders/manifest.d.ts +0 -2
- package/dist/features/orders/manifest.js +0 -18
- package/dist/features/orders/messages/en.json +0 -15
- package/dist/features/orders/repository/orders.repository.d.ts +0 -188
- package/dist/features/orders/repository/orders.repository.js +0 -300
- package/dist/features/orders/schemas/firestore.d.ts +0 -129
- package/dist/features/orders/schemas/firestore.js +0 -96
- package/dist/features/orders/schemas/index.d.ts +0 -217
- package/dist/features/orders/schemas/index.js +0 -76
- package/dist/features/orders/server.d.ts +0 -9
- package/dist/features/orders/server.js +0 -10
- package/dist/features/orders/types/index.d.ts +0 -69
- package/dist/features/orders/types/index.js +0 -2
- package/dist/features/orders/utils/order-splitter.d.ts +0 -14
- package/dist/features/orders/utils/order-splitter.js +0 -29
- package/dist/features/payments/columns/index.d.ts +0 -17
- package/dist/features/payments/columns/index.js +0 -45
- package/dist/features/payments/hooks/usePaymentEvent.d.ts +0 -17
- package/dist/features/payments/hooks/usePaymentEvent.js +0 -26
- package/dist/features/payments/hooks/usePayments.d.ts +0 -10
- package/dist/features/payments/hooks/usePayments.js +0 -19
- package/dist/features/payments/index.d.ts +0 -6
- package/dist/features/payments/index.js +0 -6
- package/dist/features/payments/manifest.d.ts +0 -2
- package/dist/features/payments/manifest.js +0 -12
- package/dist/features/payments/messages/en.json +0 -11
- package/dist/features/payments/repository/payments.repository.d.ts +0 -15
- package/dist/features/payments/repository/payments.repository.js +0 -36
- package/dist/features/payments/repository/payout.repository.d.ts +0 -111
- package/dist/features/payments/repository/payout.repository.js +0 -202
- package/dist/features/payments/schemas/firestore.d.ts +0 -74
- package/dist/features/payments/schemas/firestore.js +0 -65
- package/dist/features/payments/schemas/index.d.ts +0 -77
- package/dist/features/payments/schemas/index.js +0 -67
- package/dist/features/payments/server.d.ts +0 -8
- package/dist/features/payments/server.js +0 -8
- package/dist/features/payments/types/index.d.ts +0 -36
- package/dist/features/payments/types/index.js +0 -2
- package/dist/features/pre-orders/api/[id]/route.d.ts +0 -26
- package/dist/features/pre-orders/api/[id]/route.js +0 -88
- package/dist/features/pre-orders/api/[slug]/route.d.ts +0 -16
- package/dist/features/pre-orders/api/[slug]/route.js +0 -41
- package/dist/features/pre-orders/api/admin/[id]/route.d.ts +0 -21
- package/dist/features/pre-orders/api/admin/[id]/route.js +0 -65
- package/dist/features/pre-orders/api/admin/route.d.ts +0 -12
- package/dist/features/pre-orders/api/admin/route.js +0 -56
- package/dist/features/pre-orders/api/route.d.ts +0 -13
- package/dist/features/pre-orders/api/route.js +0 -77
- package/dist/features/pre-orders/columns/index.d.ts +0 -17
- package/dist/features/pre-orders/columns/index.js +0 -68
- package/dist/features/pre-orders/components/MarketplacePreorderCard.d.ts +0 -24
- package/dist/features/pre-orders/components/MarketplacePreorderCard.js +0 -53
- package/dist/features/pre-orders/components/PreOrderBadge.d.ts +0 -14
- package/dist/features/pre-orders/components/PreOrderBadge.js +0 -17
- package/dist/features/pre-orders/components/PreorderCard.d.ts +0 -12
- package/dist/features/pre-orders/components/PreorderCard.js +0 -27
- package/dist/features/pre-orders/components/index.d.ts +0 -2
- package/dist/features/pre-orders/components/index.js +0 -2
- package/dist/features/pre-orders/hooks/usePreOrders.d.ts +0 -7
- package/dist/features/pre-orders/hooks/usePreOrders.js +0 -34
- package/dist/features/pre-orders/index.d.ts +0 -6
- package/dist/features/pre-orders/index.js +0 -6
- package/dist/features/pre-orders/manifest.d.ts +0 -2
- package/dist/features/pre-orders/manifest.js +0 -17
- package/dist/features/pre-orders/messages/en.json +0 -13
- package/dist/features/pre-orders/repository/pre-orders.repository.d.ts +0 -14
- package/dist/features/pre-orders/repository/pre-orders.repository.js +0 -44
- package/dist/features/pre-orders/repository/preorders.repository.d.ts +0 -8
- package/dist/features/pre-orders/repository/preorders.repository.js +0 -21
- package/dist/features/pre-orders/schemas/index.d.ts +0 -79
- package/dist/features/pre-orders/schemas/index.js +0 -27
- package/dist/features/pre-orders/server.d.ts +0 -8
- package/dist/features/pre-orders/server.js +0 -8
- package/dist/features/pre-orders/types/index.d.ts +0 -29
- package/dist/features/pre-orders/types/index.js +0 -12
- package/dist/features/products/actions/index.d.ts +0 -1
- package/dist/features/products/actions/index.js +0 -1
- package/dist/features/products/actions/product-actions.d.ts +0 -26
- package/dist/features/products/actions/product-actions.js +0 -111
- package/dist/features/products/api/[id]/route.d.ts +0 -29
- package/dist/features/products/api/[id]/route.js +0 -137
- package/dist/features/products/api/route.d.ts +0 -19
- package/dist/features/products/api/route.js +0 -214
- package/dist/features/products/columns/index.d.ts +0 -64
- package/dist/features/products/columns/index.js +0 -85
- package/dist/features/products/columns/productTableColumns.d.ts +0 -27
- package/dist/features/products/columns/productTableColumns.js +0 -88
- package/dist/features/products/components/AuctionDetailView.d.ts +0 -13
- package/dist/features/products/components/AuctionDetailView.js +0 -9
- package/dist/features/products/components/AuctionsView.d.ts +0 -6
- package/dist/features/products/components/AuctionsView.js +0 -5
- package/dist/features/products/components/BidHistory.d.ts +0 -28
- package/dist/features/products/components/BidHistory.js +0 -18
- package/dist/features/products/components/BuyBar.d.ts +0 -21
- package/dist/features/products/components/BuyBar.js +0 -20
- package/dist/features/products/components/InteractiveProductCard.d.ts +0 -19
- package/dist/features/products/components/InteractiveProductCard.js +0 -18
- package/dist/features/products/components/MakeOfferForm.d.ts +0 -20
- package/dist/features/products/components/MakeOfferForm.js +0 -8
- package/dist/features/products/components/PlaceBidForm.d.ts +0 -20
- package/dist/features/products/components/PlaceBidForm.js +0 -6
- package/dist/features/products/components/PreOrderDetailView.d.ts +0 -14
- package/dist/features/products/components/PreOrderDetailView.js +0 -9
- package/dist/features/products/components/PreOrdersView.d.ts +0 -6
- package/dist/features/products/components/PreOrdersView.js +0 -5
- package/dist/features/products/components/ProductDetailView.d.ts +0 -11
- package/dist/features/products/components/ProductDetailView.js +0 -9
- package/dist/features/products/components/ProductFeatureBadges.d.ts +0 -32
- package/dist/features/products/components/ProductFeatureBadges.js +0 -103
- package/dist/features/products/components/ProductFilters.d.ts +0 -90
- package/dist/features/products/components/ProductFilters.js +0 -105
- package/dist/features/products/components/ProductForm.d.ts +0 -47
- package/dist/features/products/components/ProductForm.js +0 -120
- package/dist/features/products/components/ProductGrid.d.ts +0 -69
- package/dist/features/products/components/ProductGrid.js +0 -92
- package/dist/features/products/components/ProductInfo.d.ts +0 -20
- package/dist/features/products/components/ProductInfo.js +0 -4
- package/dist/features/products/components/ProductTabs.d.ts +0 -21
- package/dist/features/products/components/ProductTabs.js +0 -22
- package/dist/features/products/components/ProductsView.d.ts +0 -6
- package/dist/features/products/components/ProductsView.js +0 -5
- package/dist/features/products/components/RelatedProducts.d.ts +0 -16
- package/dist/features/products/components/RelatedProducts.js +0 -12
- package/dist/features/products/components/index.d.ts +0 -34
- package/dist/features/products/components/index.js +0 -18
- package/dist/features/products/hooks/useBrands.d.ts +0 -9
- package/dist/features/products/hooks/useBrands.js +0 -15
- package/dist/features/products/hooks/useProductDetail.d.ts +0 -15
- package/dist/features/products/hooks/useProductDetail.js +0 -29
- package/dist/features/products/hooks/useProducts.d.ts +0 -43
- package/dist/features/products/hooks/useProducts.js +0 -67
- package/dist/features/products/hooks/useRelatedProducts.d.ts +0 -2
- package/dist/features/products/hooks/useRelatedProducts.js +0 -17
- package/dist/features/products/index.d.ts +0 -10
- package/dist/features/products/index.js +0 -10
- package/dist/features/products/manifest.d.ts +0 -2
- package/dist/features/products/manifest.js +0 -16
- package/dist/features/products/messages/en.json +0 -11
- package/dist/features/products/repository/products.repository.d.ts +0 -213
- package/dist/features/products/repository/products.repository.js +0 -300
- package/dist/features/products/schemas/firestore.d.ts +0 -125
- package/dist/features/products/schemas/firestore.js +0 -149
- package/dist/features/products/schemas/index.d.ts +0 -400
- package/dist/features/products/schemas/index.js +0 -173
- package/dist/features/products/server.d.ts +0 -10
- package/dist/features/products/server.js +0 -10
- package/dist/features/products/types/index.d.ts +0 -122
- package/dist/features/products/types/index.js +0 -1
- package/dist/features/products/utils/listing-type.d.ts +0 -2
- package/dist/features/products/utils/listing-type.js +0 -9
- package/dist/features/promotions/actions/coupon-actions.d.ts +0 -28
- package/dist/features/promotions/actions/coupon-actions.js +0 -23
- package/dist/features/promotions/actions/index.d.ts +0 -3
- package/dist/features/promotions/actions/index.js +0 -3
- package/dist/features/promotions/actions/promotions-actions.d.ts +0 -18
- package/dist/features/promotions/actions/promotions-actions.js +0 -37
- package/dist/features/promotions/actions/seller-coupon-actions.d.ts +0 -41
- package/dist/features/promotions/actions/seller-coupon-actions.js +0 -92
- package/dist/features/promotions/api/route.d.ts +0 -21
- package/dist/features/promotions/api/route.js +0 -85
- package/dist/features/promotions/columns/index.d.ts +0 -12
- package/dist/features/promotions/columns/index.js +0 -45
- package/dist/features/promotions/components/CouponCard.d.ts +0 -16
- package/dist/features/promotions/components/CouponCard.js +0 -20
- package/dist/features/promotions/components/PromotionsView.d.ts +0 -43
- package/dist/features/promotions/components/PromotionsView.js +0 -10
- package/dist/features/promotions/components/index.d.ts +0 -3
- package/dist/features/promotions/components/index.js +0 -2
- package/dist/features/promotions/hooks/useCouponValidate.d.ts +0 -22
- package/dist/features/promotions/hooks/useCouponValidate.js +0 -10
- package/dist/features/promotions/hooks/usePromotions.d.ts +0 -21
- package/dist/features/promotions/hooks/usePromotions.js +0 -49
- package/dist/features/promotions/index.d.ts +0 -7
- package/dist/features/promotions/index.js +0 -7
- package/dist/features/promotions/manifest.d.ts +0 -2
- package/dist/features/promotions/manifest.js +0 -14
- package/dist/features/promotions/messages/en.json +0 -20
- package/dist/features/promotions/repository/coupons.repository.d.ts +0 -224
- package/dist/features/promotions/repository/coupons.repository.js +0 -539
- package/dist/features/promotions/repository/promotions.repository.d.ts +0 -14
- package/dist/features/promotions/repository/promotions.repository.js +0 -43
- package/dist/features/promotions/schemas/firestore.d.ts +0 -105
- package/dist/features/promotions/schemas/firestore.js +0 -124
- package/dist/features/promotions/schemas/index.d.ts +0 -117
- package/dist/features/promotions/schemas/index.js +0 -58
- package/dist/features/promotions/server.d.ts +0 -10
- package/dist/features/promotions/server.js +0 -10
- package/dist/features/promotions/types/index.d.ts +0 -51
- package/dist/features/promotions/types/index.js +0 -2
- package/dist/features/reviews/actions/index.d.ts +0 -1
- package/dist/features/reviews/actions/index.js +0 -1
- package/dist/features/reviews/actions/review-actions.d.ts +0 -40
- package/dist/features/reviews/actions/review-actions.js +0 -182
- package/dist/features/reviews/api/[id]/route.d.ts +0 -23
- package/dist/features/reviews/api/[id]/route.js +0 -109
- package/dist/features/reviews/api/route.d.ts +0 -21
- package/dist/features/reviews/api/route.js +0 -171
- package/dist/features/reviews/columns/index.d.ts +0 -15
- package/dist/features/reviews/columns/index.js +0 -44
- package/dist/features/reviews/components/ReviewFilters.d.ts +0 -74
- package/dist/features/reviews/components/ReviewFilters.js +0 -60
- package/dist/features/reviews/components/ReviewModal.d.ts +0 -11
- package/dist/features/reviews/components/ReviewModal.js +0 -25
- package/dist/features/reviews/components/ReviewSummary.d.ts +0 -16
- package/dist/features/reviews/components/ReviewSummary.js +0 -20
- package/dist/features/reviews/components/ReviewsList.d.ts +0 -15
- package/dist/features/reviews/components/ReviewsList.js +0 -25
- package/dist/features/reviews/components/ReviewsListView.d.ts +0 -31
- package/dist/features/reviews/components/ReviewsListView.js +0 -16
- package/dist/features/reviews/components/index.d.ts +0 -10
- package/dist/features/reviews/components/index.js +0 -5
- package/dist/features/reviews/hooks/useCreateReview.d.ts +0 -12
- package/dist/features/reviews/hooks/useCreateReview.js +0 -20
- package/dist/features/reviews/hooks/useReviews.d.ts +0 -34
- package/dist/features/reviews/hooks/useReviews.js +0 -49
- package/dist/features/reviews/index.d.ts +0 -7
- package/dist/features/reviews/index.js +0 -7
- package/dist/features/reviews/manifest.d.ts +0 -2
- package/dist/features/reviews/manifest.js +0 -10
- package/dist/features/reviews/messages/en.json +0 -10
- package/dist/features/reviews/repository/reviews.repository.d.ts +0 -103
- package/dist/features/reviews/repository/reviews.repository.js +0 -214
- package/dist/features/reviews/schemas/firestore.d.ts +0 -67
- package/dist/features/reviews/schemas/firestore.js +0 -59
- package/dist/features/reviews/schemas/index.d.ts +0 -183
- package/dist/features/reviews/schemas/index.js +0 -68
- package/dist/features/reviews/server.d.ts +0 -10
- package/dist/features/reviews/server.js +0 -10
- package/dist/features/reviews/types/index.d.ts +0 -62
- package/dist/features/reviews/types/index.js +0 -1
- package/dist/features/search/actions/index.d.ts +0 -1
- package/dist/features/search/actions/index.js +0 -1
- package/dist/features/search/actions/search-actions.d.ts +0 -18
- package/dist/features/search/actions/search-actions.js +0 -43
- package/dist/features/search/api/route.d.ts +0 -22
- package/dist/features/search/api/route.js +0 -79
- package/dist/features/search/columns/index.d.ts +0 -17
- package/dist/features/search/columns/index.js +0 -49
- package/dist/features/search/components/Search.d.ts +0 -41
- package/dist/features/search/components/Search.js +0 -263
- package/dist/features/search/components/SearchFiltersRow.d.ts +0 -22
- package/dist/features/search/components/SearchFiltersRow.js +0 -21
- package/dist/features/search/components/SearchResultsSection.d.ts +0 -53
- package/dist/features/search/components/SearchResultsSection.js +0 -36
- package/dist/features/search/components/SearchView.d.ts +0 -29
- package/dist/features/search/components/SearchView.js +0 -8
- package/dist/features/search/components/index.d.ts +0 -8
- package/dist/features/search/components/index.js +0 -4
- package/dist/features/search/hooks/useNavSuggestions.d.ts +0 -11
- package/dist/features/search/hooks/useNavSuggestions.js +0 -32
- package/dist/features/search/hooks/useSearch.d.ts +0 -21
- package/dist/features/search/hooks/useSearch.js +0 -34
- package/dist/features/search/index.d.ts +0 -7
- package/dist/features/search/index.js +0 -7
- package/dist/features/search/manifest.d.ts +0 -2
- package/dist/features/search/manifest.js +0 -10
- package/dist/features/search/messages/en.json +0 -15
- package/dist/features/search/repository/search.repository.d.ts +0 -14
- package/dist/features/search/repository/search.repository.js +0 -59
- package/dist/features/search/schemas/index.d.ts +0 -70
- package/dist/features/search/schemas/index.js +0 -34
- package/dist/features/search/server.d.ts +0 -5
- package/dist/features/search/server.js +0 -5
- package/dist/features/search/types/index.d.ts +0 -46
- package/dist/features/search/types/index.js +0 -2
- package/dist/features/seller/actions/index.d.ts +0 -2
- package/dist/features/seller/actions/index.js +0 -2
- package/dist/features/seller/actions/offer-actions.d.ts +0 -32
- package/dist/features/seller/actions/offer-actions.js +0 -266
- package/dist/features/seller/actions/seller-actions.d.ts +0 -172
- package/dist/features/seller/actions/seller-actions.js +0 -480
- package/dist/features/seller/api/coupons/route.d.ts +0 -17
- package/dist/features/seller/api/coupons/route.js +0 -47
- package/dist/features/seller/api/offers/route.d.ts +0 -17
- package/dist/features/seller/api/offers/route.js +0 -63
- package/dist/features/seller/api/products/route.d.ts +0 -17
- package/dist/features/seller/api/products/route.js +0 -64
- package/dist/features/seller/api/store/route.d.ts +0 -17
- package/dist/features/seller/api/store/route.js +0 -34
- package/dist/features/seller/columns/index.d.ts +0 -22
- package/dist/features/seller/columns/index.js +0 -73
- package/dist/features/seller/components/SellerAddressesView.d.ts +0 -13
- package/dist/features/seller/components/SellerAddressesView.js +0 -5
- package/dist/features/seller/components/SellerAnalyticsView.d.ts +0 -13
- package/dist/features/seller/components/SellerAnalyticsView.js +0 -17
- package/dist/features/seller/components/SellerAuctionsView.d.ts +0 -6
- package/dist/features/seller/components/SellerAuctionsView.js +0 -5
- package/dist/features/seller/components/SellerCouponsView.d.ts +0 -6
- package/dist/features/seller/components/SellerCouponsView.js +0 -5
- package/dist/features/seller/components/SellerCreateProductView.d.ts +0 -11
- package/dist/features/seller/components/SellerCreateProductView.js +0 -5
- package/dist/features/seller/components/SellerDashboardView.d.ts +0 -14
- package/dist/features/seller/components/SellerDashboardView.js +0 -11
- package/dist/features/seller/components/SellerEditProductView.d.ts +0 -11
- package/dist/features/seller/components/SellerEditProductView.js +0 -5
- package/dist/features/seller/components/SellerGuideView.d.ts +0 -12
- package/dist/features/seller/components/SellerGuideView.js +0 -5
- package/dist/features/seller/components/SellerOffersView.d.ts +0 -4
- package/dist/features/seller/components/SellerOffersView.js +0 -5
- package/dist/features/seller/components/SellerOrdersView.d.ts +0 -4
- package/dist/features/seller/components/SellerOrdersView.js +0 -5
- package/dist/features/seller/components/SellerPayoutHistoryTable.d.ts +0 -14
- package/dist/features/seller/components/SellerPayoutHistoryTable.js +0 -10
- package/dist/features/seller/components/SellerPayoutSettingsView.d.ts +0 -11
- package/dist/features/seller/components/SellerPayoutSettingsView.js +0 -5
- package/dist/features/seller/components/SellerPayoutStats.d.ts +0 -8
- package/dist/features/seller/components/SellerPayoutStats.js +0 -9
- package/dist/features/seller/components/SellerPayoutsView.d.ts +0 -18
- package/dist/features/seller/components/SellerPayoutsView.js +0 -11
- package/dist/features/seller/components/SellerProductsView.d.ts +0 -6
- package/dist/features/seller/components/SellerProductsView.js +0 -5
- package/dist/features/seller/components/SellerShippingView.d.ts +0 -12
- package/dist/features/seller/components/SellerShippingView.js +0 -5
- package/dist/features/seller/components/SellerSidebar.d.ts +0 -16
- package/dist/features/seller/components/SellerSidebar.js +0 -11
- package/dist/features/seller/components/SellerStatCard.d.ts +0 -14
- package/dist/features/seller/components/SellerStatCard.js +0 -5
- package/dist/features/seller/components/SellerStoreSetupView.d.ts +0 -12
- package/dist/features/seller/components/SellerStoreSetupView.js +0 -8
- package/dist/features/seller/components/SellerStoreView.d.ts +0 -8
- package/dist/features/seller/components/SellerStoreView.js +0 -8
- package/dist/features/seller/components/SellerStorefrontView.d.ts +0 -13
- package/dist/features/seller/components/SellerStorefrontView.js +0 -10
- package/dist/features/seller/components/SellersListView.d.ts +0 -4
- package/dist/features/seller/components/SellersListView.js +0 -5
- package/dist/features/seller/components/analytics/SellerAnalyticsStats.d.ts +0 -14
- package/dist/features/seller/components/analytics/SellerAnalyticsStats.js +0 -9
- package/dist/features/seller/components/analytics/SellerRevenueChart.d.ts +0 -13
- package/dist/features/seller/components/analytics/SellerRevenueChart.js +0 -28
- package/dist/features/seller/components/analytics/SellerTopProducts.d.ts +0 -17
- package/dist/features/seller/components/analytics/SellerTopProducts.js +0 -6
- package/dist/features/seller/components/analytics/index.d.ts +0 -3
- package/dist/features/seller/components/analytics/index.js +0 -3
- package/dist/features/seller/components/index.d.ts +0 -44
- package/dist/features/seller/components/index.js +0 -23
- package/dist/features/seller/hooks/useBecomeSeller.d.ts +0 -12
- package/dist/features/seller/hooks/useBecomeSeller.js +0 -26
- package/dist/features/seller/hooks/useSellerPayouts.d.ts +0 -25
- package/dist/features/seller/hooks/useSellerPayouts.js +0 -42
- package/dist/features/seller/hooks/useSellerStore.d.ts +0 -28
- package/dist/features/seller/hooks/useSellerStore.js +0 -48
- package/dist/features/seller/hooks/useSellerStorefront.d.ts +0 -16
- package/dist/features/seller/hooks/useSellerStorefront.js +0 -57
- package/dist/features/seller/index.d.ts +0 -10
- package/dist/features/seller/index.js +0 -10
- package/dist/features/seller/manifest.d.ts +0 -2
- package/dist/features/seller/manifest.js +0 -74
- package/dist/features/seller/messages/en.json +0 -32
- package/dist/features/seller/permission-map.d.ts +0 -3
- package/dist/features/seller/permission-map.js +0 -15
- package/dist/features/seller/repository/offer.repository.d.ts +0 -66
- package/dist/features/seller/repository/offer.repository.js +0 -210
- package/dist/features/seller/repository/seller.repository.d.ts +0 -22
- package/dist/features/seller/repository/seller.repository.js +0 -72
- package/dist/features/seller/schemas/firestore.d.ts +0 -76
- package/dist/features/seller/schemas/firestore.js +0 -57
- package/dist/features/seller/schemas/index.d.ts +0 -244
- package/dist/features/seller/schemas/index.js +0 -100
- package/dist/features/seller/server.d.ts +0 -13
- package/dist/features/seller/server.js +0 -13
- package/dist/features/seller/types/index.d.ts +0 -147
- package/dist/features/seller/types/index.js +0 -2
- package/dist/features/stores/actions/index.d.ts +0 -2
- package/dist/features/stores/actions/index.js +0 -2
- package/dist/features/stores/actions/store-address-actions.d.ts +0 -11
- package/dist/features/stores/actions/store-address-actions.js +0 -54
- package/dist/features/stores/actions/store-query-actions.d.ts +0 -34
- package/dist/features/stores/actions/store-query-actions.js +0 -113
- package/dist/features/stores/api/[storeSlug]/auctions/route.d.ts +0 -23
- package/dist/features/stores/api/[storeSlug]/auctions/route.js +0 -92
- package/dist/features/stores/api/[storeSlug]/products/route.d.ts +0 -23
- package/dist/features/stores/api/[storeSlug]/products/route.js +0 -97
- package/dist/features/stores/api/[storeSlug]/reviews/route.d.ts +0 -23
- package/dist/features/stores/api/[storeSlug]/reviews/route.js +0 -101
- package/dist/features/stores/api/[storeSlug]/route.d.ts +0 -21
- package/dist/features/stores/api/[storeSlug]/route.js +0 -66
- package/dist/features/stores/api/route.d.ts +0 -12
- package/dist/features/stores/api/route.js +0 -101
- package/dist/features/stores/columns/index.d.ts +0 -16
- package/dist/features/stores/columns/index.js +0 -45
- package/dist/features/stores/components/InteractiveStoreCard.d.ts +0 -20
- package/dist/features/stores/components/InteractiveStoreCard.js +0 -16
- package/dist/features/stores/components/StoreAboutView.d.ts +0 -21
- package/dist/features/stores/components/StoreAboutView.js +0 -12
- package/dist/features/stores/components/StoreAddressSelectorCreate.d.ts +0 -16
- package/dist/features/stores/components/StoreAddressSelectorCreate.js +0 -40
- package/dist/features/stores/components/StoreAuctionsView.d.ts +0 -17
- package/dist/features/stores/components/StoreAuctionsView.js +0 -5
- package/dist/features/stores/components/StoreHeader.d.ts +0 -15
- package/dist/features/stores/components/StoreHeader.js +0 -8
- package/dist/features/stores/components/StoreNavTabs.d.ts +0 -15
- package/dist/features/stores/components/StoreNavTabs.js +0 -14
- package/dist/features/stores/components/StoreProductsView.d.ts +0 -30
- package/dist/features/stores/components/StoreProductsView.js +0 -11
- package/dist/features/stores/components/StoreReviewsView.d.ts +0 -17
- package/dist/features/stores/components/StoreReviewsView.js +0 -9
- package/dist/features/stores/components/StoresListView.d.ts +0 -19
- package/dist/features/stores/components/StoresListView.js +0 -24
- package/dist/features/stores/components/index.d.ts +0 -16
- package/dist/features/stores/components/index.js +0 -9
- package/dist/features/stores/hooks/useStoreAddressSelector.d.ts +0 -23
- package/dist/features/stores/hooks/useStoreAddressSelector.js +0 -30
- package/dist/features/stores/hooks/useStores.d.ts +0 -58
- package/dist/features/stores/hooks/useStores.js +0 -96
- package/dist/features/stores/index.d.ts +0 -7
- package/dist/features/stores/index.js +0 -7
- package/dist/features/stores/manifest.d.ts +0 -2
- package/dist/features/stores/manifest.js +0 -35
- package/dist/features/stores/messages/en.json +0 -21
- package/dist/features/stores/repository/store-address.repository.d.ts +0 -55
- package/dist/features/stores/repository/store-address.repository.js +0 -188
- package/dist/features/stores/repository/store.repository.d.ts +0 -67
- package/dist/features/stores/repository/store.repository.js +0 -181
- package/dist/features/stores/repository/stores.repository.d.ts +0 -11
- package/dist/features/stores/repository/stores.repository.js +0 -34
- package/dist/features/stores/schemas/firestore.d.ts +0 -117
- package/dist/features/stores/schemas/firestore.js +0 -109
- package/dist/features/stores/schemas/index.d.ts +0 -85
- package/dist/features/stores/schemas/index.js +0 -48
- package/dist/features/stores/server.d.ts +0 -15
- package/dist/features/stores/server.js +0 -15
- package/dist/features/stores/types/index.d.ts +0 -102
- package/dist/features/stores/types/index.js +0 -2
- package/dist/features/whatsapp-bot/api/send-status/route.d.ts +0 -12
- package/dist/features/whatsapp-bot/api/send-status/route.js +0 -36
- package/dist/features/whatsapp-bot/api/webhook/route.d.ts +0 -12
- package/dist/features/whatsapp-bot/api/webhook/route.js +0 -41
- package/dist/features/whatsapp-bot/components/WhatsAppChatButton.d.ts +0 -8
- package/dist/features/whatsapp-bot/components/WhatsAppChatButton.js +0 -7
- package/dist/features/whatsapp-bot/components/index.d.ts +0 -1
- package/dist/features/whatsapp-bot/components/index.js +0 -1
- package/dist/features/whatsapp-bot/helpers/whatsapp.d.ts +0 -21
- package/dist/features/whatsapp-bot/helpers/whatsapp.js +0 -125
- package/dist/features/whatsapp-bot/index.d.ts +0 -3
- package/dist/features/whatsapp-bot/index.js +0 -3
- package/dist/features/whatsapp-bot/manifest.d.ts +0 -2
- package/dist/features/whatsapp-bot/manifest.js +0 -13
- package/dist/features/whatsapp-bot/messages/en.json +0 -7
- package/dist/features/whatsapp-bot/server.d.ts +0 -7
- package/dist/features/whatsapp-bot/server.js +0 -7
- package/dist/features/whatsapp-bot/types/index.d.ts +0 -50
- package/dist/features/whatsapp-bot/types/index.js +0 -1
- package/dist/features/wishlist/actions/index.d.ts +0 -1
- package/dist/features/wishlist/actions/index.js +0 -1
- package/dist/features/wishlist/actions/wishlist-actions.d.ts +0 -20
- package/dist/features/wishlist/actions/wishlist-actions.js +0 -29
- package/dist/features/wishlist/columns/index.d.ts +0 -17
- package/dist/features/wishlist/columns/index.js +0 -42
- package/dist/features/wishlist/components/WishlistPage.d.ts +0 -16
- package/dist/features/wishlist/components/WishlistPage.js +0 -17
- package/dist/features/wishlist/components/WishlistToggleButton.d.ts +0 -12
- package/dist/features/wishlist/components/WishlistToggleButton.js +0 -21
- package/dist/features/wishlist/components/WishlistView.d.ts +0 -33
- package/dist/features/wishlist/components/WishlistView.js +0 -41
- package/dist/features/wishlist/components/index.d.ts +0 -4
- package/dist/features/wishlist/components/index.js +0 -3
- package/dist/features/wishlist/hooks/useUserWishlist.d.ts +0 -187
- package/dist/features/wishlist/hooks/useUserWishlist.js +0 -17
- package/dist/features/wishlist/hooks/useWishlist.d.ts +0 -16
- package/dist/features/wishlist/hooks/useWishlist.js +0 -23
- package/dist/features/wishlist/hooks/useWishlistToggle.d.ts +0 -10
- package/dist/features/wishlist/hooks/useWishlistToggle.js +0 -32
- package/dist/features/wishlist/index.d.ts +0 -9
- package/dist/features/wishlist/index.js +0 -8
- package/dist/features/wishlist/manifest.d.ts +0 -2
- package/dist/features/wishlist/manifest.js +0 -12
- package/dist/features/wishlist/messages/en.json +0 -7
- package/dist/features/wishlist/repository/user-wishlist.repository.d.ts +0 -14
- package/dist/features/wishlist/repository/user-wishlist.repository.js +0 -91
- package/dist/features/wishlist/repository/wishlist.repository.d.ts +0 -13
- package/dist/features/wishlist/repository/wishlist.repository.js +0 -31
- package/dist/features/wishlist/schemas/index.d.ts +0 -46
- package/dist/features/wishlist/schemas/index.js +0 -24
- package/dist/features/wishlist/server.d.ts +0 -9
- package/dist/features/wishlist/server.js +0 -9
- package/dist/features/wishlist/types/index.d.ts +0 -16
- package/dist/features/wishlist/types/index.js +0 -1
- package/dist/http/ApiClient.d.ts +0 -59
- package/dist/http/ApiClient.js +0 -149
- package/dist/http/api-handler.d.ts +0 -33
- package/dist/http/api-handler.js +0 -89
- package/dist/http/index.d.ts +0 -9
- package/dist/http/index.js +0 -8
- package/dist/instrumentation/index.d.ts +0 -64
- package/dist/instrumentation/index.js +0 -55
- package/dist/monitoring/analytics.d.ts +0 -79
- package/dist/monitoring/analytics.js +0 -171
- package/dist/monitoring/browser.d.ts +0 -10
- package/dist/monitoring/browser.js +0 -6
- package/dist/monitoring/cache-metrics.d.ts +0 -24
- package/dist/monitoring/cache-metrics.js +0 -83
- package/dist/monitoring/client-logger.d.ts +0 -29
- package/dist/monitoring/client-logger.js +0 -127
- package/dist/monitoring/error-tracking.d.ts +0 -50
- package/dist/monitoring/error-tracking.js +0 -54
- package/dist/monitoring/index.d.ts +0 -12
- package/dist/monitoring/index.js +0 -7
- package/dist/monitoring/performance.d.ts +0 -31
- package/dist/monitoring/performance.js +0 -34
- package/dist/monitoring/runtime.d.ts +0 -17
- package/dist/monitoring/runtime.js +0 -28
- package/dist/monitoring/server-logger.d.ts +0 -37
- package/dist/monitoring/server-logger.js +0 -289
- package/dist/next/ErrorBoundary.d.ts +0 -19
- package/dist/next/ErrorBoundary.js +0 -35
- package/dist/next/IAuthVerifier.d.ts +0 -54
- package/dist/next/IAuthVerifier.js +0 -23
- package/dist/next/api/api-response.d.ts +0 -29
- package/dist/next/api/api-response.js +0 -31
- package/dist/next/api/apiHandler.d.ts +0 -48
- package/dist/next/api/apiHandler.js +0 -87
- package/dist/next/api/errorHandler.d.ts +0 -57
- package/dist/next/api/errorHandler.js +0 -72
- package/dist/next/api/routeHandler.d.ts +0 -60
- package/dist/next/api/routeHandler.js +0 -113
- package/dist/next/cache-middleware.d.ts +0 -35
- package/dist/next/cache-middleware.js +0 -77
- package/dist/next/components/ErrorView.d.ts +0 -13
- package/dist/next/components/ErrorView.js +0 -32
- package/dist/next/components/GlobalError.d.ts +0 -7
- package/dist/next/components/GlobalError.js +0 -43
- package/dist/next/components/NotFoundView.d.ts +0 -28
- package/dist/next/components/NotFoundView.js +0 -25
- package/dist/next/components/UnauthorizedView.d.ts +0 -28
- package/dist/next/components/UnauthorizedView.js +0 -22
- package/dist/next/index.d.ts +0 -35
- package/dist/next/index.js +0 -30
- package/dist/next/middleware/chain.d.ts +0 -47
- package/dist/next/middleware/chain.js +0 -80
- package/dist/next/middleware/index.d.ts +0 -6
- package/dist/next/middleware/index.js +0 -3
- package/dist/next/middleware/pii-redactor.d.ts +0 -32
- package/dist/next/middleware/pii-redactor.js +0 -82
- package/dist/next/middleware/pii-scrubber.d.ts +0 -11
- package/dist/next/middleware/pii-scrubber.js +0 -43
- package/dist/next/middleware/types.d.ts +0 -18
- package/dist/next/middleware/types.js +0 -1
- package/dist/next/request-helpers.d.ts +0 -25
- package/dist/next/request-helpers.js +0 -52
- package/dist/next/routing/route-map.d.ts +0 -272
- package/dist/next/routing/route-map.js +0 -202
- package/dist/providers/auth-firebase/browser-stub.d.ts +0 -24
- package/dist/providers/auth-firebase/browser-stub.js +0 -28
- package/dist/providers/auth-firebase/helpers.d.ts +0 -83
- package/dist/providers/auth-firebase/helpers.js +0 -205
- package/dist/providers/auth-firebase/index.d.ts +0 -11
- package/dist/providers/auth-firebase/index.js +0 -16
- package/dist/providers/auth-firebase/provider.d.ts +0 -8
- package/dist/providers/auth-firebase/provider.js +0 -118
- package/dist/providers/auth-firebase/session.d.ts +0 -19
- package/dist/providers/auth-firebase/session.js +0 -86
- package/dist/providers/db-firebase/admin-app-lite.d.ts +0 -6
- package/dist/providers/db-firebase/admin-app-lite.js +0 -50
- package/dist/providers/db-firebase/admin-auth-lite.d.ts +0 -5
- package/dist/providers/db-firebase/admin-auth-lite.js +0 -10
- package/dist/providers/db-firebase/admin-storage-lite.d.ts +0 -6
- package/dist/providers/db-firebase/admin-storage-lite.js +0 -11
- package/dist/providers/db-firebase/admin.d.ts +0 -29
- package/dist/providers/db-firebase/admin.js +0 -163
- package/dist/providers/db-firebase/base.d.ts +0 -44
- package/dist/providers/db-firebase/base.js +0 -180
- package/dist/providers/db-firebase/base.repository.d.ts +0 -34
- package/dist/providers/db-firebase/base.repository.js +0 -235
- package/dist/providers/db-firebase/browser-stub.d.ts +0 -37
- package/dist/providers/db-firebase/browser-stub.js +0 -56
- package/dist/providers/db-firebase/client-config.d.ts +0 -22
- package/dist/providers/db-firebase/client-config.js +0 -30
- package/dist/providers/db-firebase/field-ops.d.ts +0 -7
- package/dist/providers/db-firebase/field-ops.js +0 -13
- package/dist/providers/db-firebase/helpers.d.ts +0 -23
- package/dist/providers/db-firebase/helpers.js +0 -67
- package/dist/providers/db-firebase/index.d.ts +0 -31
- package/dist/providers/db-firebase/index.js +0 -42
- package/dist/providers/db-firebase/realtime.d.ts +0 -43
- package/dist/providers/db-firebase/realtime.js +0 -122
- package/dist/providers/db-firebase/rtdb-paths.d.ts +0 -12
- package/dist/providers/db-firebase/rtdb-paths.js +0 -12
- package/dist/providers/db-firebase/sieve.d.ts +0 -76
- package/dist/providers/db-firebase/sieve.js +0 -83
- package/dist/providers/email-resend/index.d.ts +0 -15
- package/dist/providers/email-resend/index.js +0 -14
- package/dist/providers/email-resend/provider.d.ts +0 -43
- package/dist/providers/email-resend/provider.js +0 -75
- package/dist/providers/firebase-client/auth.d.ts +0 -12
- package/dist/providers/firebase-client/auth.js +0 -30
- package/dist/providers/firebase-client/index.d.ts +0 -9
- package/dist/providers/firebase-client/index.js +0 -9
- package/dist/providers/firebase-client/realtime.d.ts +0 -18
- package/dist/providers/firebase-client/realtime.js +0 -39
- package/dist/providers/payment-razorpay/index.d.ts +0 -93
- package/dist/providers/payment-razorpay/index.js +0 -206
- package/dist/providers/shipping-shiprocket/index.d.ts +0 -272
- package/dist/providers/shipping-shiprocket/index.js +0 -148
- package/dist/providers/shipping-shiprocket/shiprocket-provider.d.ts +0 -46
- package/dist/providers/shipping-shiprocket/shiprocket-provider.js +0 -152
- package/dist/providers/storage-firebase/client.d.ts +0 -56
- package/dist/providers/storage-firebase/client.js +0 -141
- package/dist/providers/storage-firebase/index.d.ts +0 -16
- package/dist/providers/storage-firebase/index.js +0 -16
- package/dist/providers/storage-firebase/provider.d.ts +0 -23
- package/dist/providers/storage-firebase/provider.js +0 -103
- package/dist/react/ErrorBoundary.d.ts +0 -31
- package/dist/react/ErrorBoundary.js +0 -68
- package/dist/react/contexts/SessionContext.d.ts +0 -80
- package/dist/react/contexts/SessionContext.js +0 -350
- package/dist/react/contexts/ThemeContext.d.ts +0 -14
- package/dist/react/contexts/ThemeContext.js +0 -65
- package/dist/react/contexts/index.d.ts +0 -4
- package/dist/react/contexts/index.js +0 -2
- package/dist/react/hooks/useBreakpoint.d.ts +0 -29
- package/dist/react/hooks/useBreakpoint.js +0 -37
- package/dist/react/hooks/useBulkAction.d.ts +0 -65
- package/dist/react/hooks/useBulkAction.js +0 -69
- package/dist/react/hooks/useBulkSelection.d.ts +0 -40
- package/dist/react/hooks/useBulkSelection.js +0 -58
- package/dist/react/hooks/useCamera.d.ts +0 -34
- package/dist/react/hooks/useCamera.js +0 -147
- package/dist/react/hooks/useClickOutside.d.ts +0 -37
- package/dist/react/hooks/useClickOutside.js +0 -57
- package/dist/react/hooks/useContainerGrid.d.ts +0 -39
- package/dist/react/hooks/useContainerGrid.js +0 -47
- package/dist/react/hooks/useCountdown.d.ts +0 -26
- package/dist/react/hooks/useCountdown.js +0 -49
- package/dist/react/hooks/useGesture.d.ts +0 -51
- package/dist/react/hooks/useGesture.js +0 -181
- package/dist/react/hooks/useKeyPress.d.ts +0 -48
- package/dist/react/hooks/useKeyPress.js +0 -62
- package/dist/react/hooks/useLongPress.d.ts +0 -26
- package/dist/react/hooks/useLongPress.js +0 -55
- package/dist/react/hooks/useMediaQuery.d.ts +0 -17
- package/dist/react/hooks/useMediaQuery.js +0 -34
- package/dist/react/hooks/useMessage.d.ts +0 -11
- package/dist/react/hooks/useMessage.js +0 -45
- package/dist/react/hooks/usePendingFilters.d.ts +0 -58
- package/dist/react/hooks/usePendingFilters.js +0 -79
- package/dist/react/hooks/usePendingTable.d.ts +0 -49
- package/dist/react/hooks/usePendingTable.js +0 -45
- package/dist/react/hooks/usePullToRefresh.d.ts +0 -38
- package/dist/react/hooks/usePullToRefresh.js +0 -82
- package/dist/react/hooks/useRealtimeEvent.d.ts +0 -53
- package/dist/react/hooks/useRealtimeEvent.js +0 -124
- package/dist/react/hooks/useSwipe.d.ts +0 -55
- package/dist/react/hooks/useSwipe.js +0 -165
- package/dist/react/hooks/useUnsavedChanges.d.ts +0 -44
- package/dist/react/hooks/useUnsavedChanges.js +0 -55
- package/dist/react/hooks/useUrlTable.d.ts +0 -31
- package/dist/react/hooks/useUrlTable.js +0 -137
- package/dist/react/hooks/useVisibleItems.d.ts +0 -37
- package/dist/react/hooks/useVisibleItems.js +0 -59
- package/dist/react/index.d.ts +0 -50
- package/dist/react/index.js +0 -47
- package/dist/react/useModalStack.d.ts +0 -33
- package/dist/react/useModalStack.js +0 -61
- package/dist/repositories/index.d.ts +0 -38
- package/dist/repositories/index.js +0 -40
- package/dist/security/authorization.d.ts +0 -24
- package/dist/security/authorization.js +0 -73
- package/dist/security/browser.d.ts +0 -7
- package/dist/security/browser.js +0 -5
- package/dist/security/csp.d.ts +0 -16
- package/dist/security/csp.js +0 -44
- package/dist/security/index.d.ts +0 -11
- package/dist/security/index.js +0 -8
- package/dist/security/pii-encrypt.d.ts +0 -121
- package/dist/security/pii-encrypt.js +0 -351
- package/dist/security/pii-redact.d.ts +0 -20
- package/dist/security/pii-redact.js +0 -129
- package/dist/security/pii-schemas.d.ts +0 -38
- package/dist/security/pii-schemas.js +0 -62
- package/dist/security/rate-limit.d.ts +0 -70
- package/dist/security/rate-limit.js +0 -107
- package/dist/security/rbac/Can.d.ts +0 -31
- package/dist/security/rbac/Can.js +0 -24
- package/dist/security/rbac/default-roles.d.ts +0 -2
- package/dist/security/rbac/default-roles.js +0 -83
- package/dist/security/rbac/hook.d.ts +0 -20
- package/dist/security/rbac/hook.js +0 -30
- package/dist/security/rbac/index.d.ts +0 -8
- package/dist/security/rbac/index.js +0 -6
- package/dist/security/rbac/middleware.d.ts +0 -51
- package/dist/security/rbac/middleware.js +0 -51
- package/dist/security/rbac/resolver.d.ts +0 -5
- package/dist/security/rbac/resolver.js +0 -38
- package/dist/security/rbac/server.d.ts +0 -24
- package/dist/security/rbac/server.js +0 -42
- package/dist/security/rbac/types.d.ts +0 -22
- package/dist/security/rbac/types.js +0 -2
- package/dist/security/settings-encryption.d.ts +0 -5
- package/dist/security/settings-encryption.js +0 -48
- package/dist/seed/actions/demo-seed-actions.d.ts +0 -31
- package/dist/seed/actions/demo-seed-actions.js +0 -36
- package/dist/seed/actions/index.d.ts +0 -1
- package/dist/seed/actions/index.js +0 -1
- package/dist/seed/addresses-seed-data.d.ts +0 -19
- package/dist/seed/addresses-seed-data.js +0 -418
- package/dist/seed/bids-seed-data.d.ts +0 -7
- package/dist/seed/bids-seed-data.js +0 -1168
- package/dist/seed/blog-posts-seed-data.d.ts +0 -7
- package/dist/seed/blog-posts-seed-data.js +0 -215
- package/dist/seed/carousel-slides-seed-data.d.ts +0 -7
- package/dist/seed/carousel-slides-seed-data.js +0 -283
- package/dist/seed/cart-seed-data.d.ts +0 -20
- package/dist/seed/cart-seed-data.js +0 -179
- package/dist/seed/categories-seed-data.d.ts +0 -7
- package/dist/seed/categories-seed-data.js +0 -1220
- package/dist/seed/coupons-seed-data.d.ts +0 -7
- package/dist/seed/coupons-seed-data.js +0 -508
- package/dist/seed/defaults/categories.d.ts +0 -2
- package/dist/seed/defaults/categories.js +0 -12
- package/dist/seed/defaults/faqs.d.ts +0 -2
- package/dist/seed/defaults/faqs.js +0 -40
- package/dist/seed/defaults/homepage-sections.d.ts +0 -2
- package/dist/seed/defaults/homepage-sections.js +0 -59
- package/dist/seed/events-seed-data.d.ts +0 -8
- package/dist/seed/events-seed-data.js +0 -662
- package/dist/seed/factories/address.factory.d.ts +0 -21
- package/dist/seed/factories/address.factory.js +0 -44
- package/dist/seed/factories/bid.factory.d.ts +0 -15
- package/dist/seed/factories/bid.factory.js +0 -33
- package/dist/seed/factories/blog-post.factory.d.ts +0 -15
- package/dist/seed/factories/blog-post.factory.js +0 -22
- package/dist/seed/factories/carousel.factory.d.ts +0 -11
- package/dist/seed/factories/carousel.factory.js +0 -16
- package/dist/seed/factories/cart.factory.d.ts +0 -26
- package/dist/seed/factories/cart.factory.js +0 -35
- package/dist/seed/factories/category.factory.d.ts +0 -11
- package/dist/seed/factories/category.factory.js +0 -16
- package/dist/seed/factories/coupon.factory.d.ts +0 -21
- package/dist/seed/factories/coupon.factory.js +0 -43
- package/dist/seed/factories/faq.factory.d.ts +0 -10
- package/dist/seed/factories/faq.factory.js +0 -15
- package/dist/seed/factories/homepage-section.factory.d.ts +0 -9
- package/dist/seed/factories/homepage-section.factory.js +0 -13
- package/dist/seed/factories/notification.factory.d.ts +0 -17
- package/dist/seed/factories/notification.factory.js +0 -39
- package/dist/seed/factories/order.factory.d.ts +0 -20
- package/dist/seed/factories/order.factory.js +0 -20
- package/dist/seed/factories/payout.factory.d.ts +0 -21
- package/dist/seed/factories/payout.factory.js +0 -38
- package/dist/seed/factories/product.factory.d.ts +0 -27
- package/dist/seed/factories/product.factory.js +0 -111
- package/dist/seed/factories/review.factory.d.ts +0 -14
- package/dist/seed/factories/review.factory.js +0 -52
- package/dist/seed/factories/session.factory.d.ts +0 -15
- package/dist/seed/factories/session.factory.js +0 -31
- package/dist/seed/factories/store.factory.d.ts +0 -23
- package/dist/seed/factories/store.factory.js +0 -46
- package/dist/seed/factories/user.factory.d.ts +0 -19
- package/dist/seed/factories/user.factory.js +0 -55
- package/dist/seed/faq-seed-data.d.ts +0 -47
- package/dist/seed/faq-seed-data.js +0 -2320
- package/dist/seed/firestore-indexes.d.ts +0 -13
- package/dist/seed/firestore-indexes.js +0 -32
- package/dist/seed/homepage-sections-seed-data.d.ts +0 -18
- package/dist/seed/homepage-sections-seed-data.js +0 -339
- package/dist/seed/index.d.ts +0 -68
- package/dist/seed/index.js +0 -49
- package/dist/seed/notifications-seed-data.d.ts +0 -7
- package/dist/seed/notifications-seed-data.js +0 -494
- package/dist/seed/orders-seed-data.d.ts +0 -7
- package/dist/seed/orders-seed-data.js +0 -578
- package/dist/seed/payouts-seed-data.d.ts +0 -7
- package/dist/seed/payouts-seed-data.js +0 -202
- package/dist/seed/products-seed-data.d.ts +0 -7
- package/dist/seed/products-seed-data.js +0 -2477
- package/dist/seed/reviews-seed-data.d.ts +0 -7
- package/dist/seed/reviews-seed-data.js +0 -618
- package/dist/seed/runner.d.ts +0 -3
- package/dist/seed/runner.js +0 -38
- package/dist/seed/seed-market-config.d.ts +0 -49
- package/dist/seed/seed-market-config.js +0 -198
- package/dist/seed/sessions-seed-data.d.ts +0 -17
- package/dist/seed/sessions-seed-data.js +0 -355
- package/dist/seed/site-settings-seed-data.d.ts +0 -7
- package/dist/seed/site-settings-seed-data.js +0 -236
- package/dist/seed/store-addresses-seed-data.d.ts +0 -19
- package/dist/seed/store-addresses-seed-data.js +0 -106
- package/dist/seed/stores-seed-data.d.ts +0 -14
- package/dist/seed/stores-seed-data.js +0 -127
- package/dist/seed/test-utils.d.ts +0 -49
- package/dist/seed/test-utils.js +0 -107
- package/dist/seed/types.d.ts +0 -33
- package/dist/seed/types.js +0 -1
- package/dist/seed/users-seed-data.d.ts +0 -7
- package/dist/seed/users-seed-data.js +0 -727
- package/dist/seo/index.d.ts +0 -2
- package/dist/seo/index.js +0 -2
- package/dist/seo/json-ld.d.ts +0 -69
- package/dist/seo/json-ld.js +0 -166
- package/dist/seo/metadata.d.ts +0 -77
- package/dist/seo/metadata.js +0 -157
- package/dist/server.d.ts +0 -109
- package/dist/server.js +0 -110
- package/dist/style/tailwind/index.d.ts +0 -32
- package/dist/style/tailwind/index.js +0 -57
- package/dist/style/vanilla/index.d.ts +0 -24
- package/dist/style/vanilla/index.js +0 -48
- package/dist/tokens/index.d.ts +0 -733
- package/dist/tokens/index.js +0 -786
- package/dist/tokens/tokens.css +0 -221
- package/dist/ui/DataTable.d.ts +0 -78
- package/dist/ui/DataTable.js +0 -157
- package/dist/ui/DataTable.style.css +0 -190
- package/dist/ui/animation.helper.d.ts +0 -17
- package/dist/ui/animation.helper.js +0 -17
- package/dist/ui/color.helper.d.ts +0 -12
- package/dist/ui/color.helper.js +0 -31
- package/dist/ui/columns/build-columns.d.ts +0 -21
- package/dist/ui/columns/build-columns.js +0 -33
- package/dist/ui/columns/column-renderers.d.ts +0 -33
- package/dist/ui/columns/column-renderers.js +0 -64
- package/dist/ui/columns/index.d.ts +0 -6
- package/dist/ui/columns/index.js +0 -5
- package/dist/ui/components/Accordion.d.ts +0 -27
- package/dist/ui/components/Accordion.js +0 -57
- package/dist/ui/components/Accordion.style.css +0 -82
- package/dist/ui/components/ActiveFilterChips.d.ts +0 -13
- package/dist/ui/components/ActiveFilterChips.js +0 -9
- package/dist/ui/components/ActiveFilterChips.style.css +0 -66
- package/dist/ui/components/Alert.d.ts +0 -43
- package/dist/ui/components/Alert.js +0 -47
- package/dist/ui/components/Alert.style.css +0 -187
- package/dist/ui/components/Avatar.d.ts +0 -18
- package/dist/ui/components/Avatar.js +0 -42
- package/dist/ui/components/Avatar.style.css +0 -73
- package/dist/ui/components/AvatarDisplay.d.ts +0 -10
- package/dist/ui/components/AvatarDisplay.js +0 -56
- package/dist/ui/components/AvatarDisplay.style.css +0 -46
- package/dist/ui/components/BackgroundRenderer.d.ts +0 -15
- package/dist/ui/components/BackgroundRenderer.js +0 -42
- package/dist/ui/components/BackgroundRenderer.style.css +0 -31
- package/dist/ui/components/Badge.d.ts +0 -33
- package/dist/ui/components/Badge.js +0 -34
- package/dist/ui/components/Badge.style.css +0 -114
- package/dist/ui/components/BaseListingCard.d.ts +0 -39
- package/dist/ui/components/BaseListingCard.js +0 -56
- package/dist/ui/components/BaseListingCard.style.css +0 -84
- package/dist/ui/components/Breadcrumb.d.ts +0 -15
- package/dist/ui/components/Breadcrumb.js +0 -12
- package/dist/ui/components/Breadcrumb.style.css +0 -60
- package/dist/ui/components/BulkActionBar.d.ts +0 -34
- package/dist/ui/components/BulkActionBar.js +0 -86
- package/dist/ui/components/BulkActionBar.style.css +0 -196
- package/dist/ui/components/Button.d.ts +0 -31
- package/dist/ui/components/Button.js +0 -29
- package/dist/ui/components/Button.style.css +0 -160
- package/dist/ui/components/Card.d.ts +0 -21
- package/dist/ui/components/Card.js +0 -51
- package/dist/ui/components/Card.style.css +0 -192
- package/dist/ui/components/Checkbox.d.ts +0 -8
- package/dist/ui/components/Checkbox.js +0 -38
- package/dist/ui/components/Checkbox.style.css +0 -113
- package/dist/ui/components/ConfirmDeleteModal.d.ts +0 -33
- package/dist/ui/components/ConfirmDeleteModal.js +0 -74
- package/dist/ui/components/ConfirmDeleteModal.style.css +0 -89
- package/dist/ui/components/CountdownDisplay.d.ts +0 -14
- package/dist/ui/components/CountdownDisplay.js +0 -50
- package/dist/ui/components/CountdownDisplay.style.css +0 -4
- package/dist/ui/components/DashboardStatsCard.d.ts +0 -15
- package/dist/ui/components/DashboardStatsCard.js +0 -28
- package/dist/ui/components/DashboardStatsCard.style.css +0 -70
- package/dist/ui/components/DescriptionField.d.ts +0 -23
- package/dist/ui/components/DescriptionField.js +0 -28
- package/dist/ui/components/DescriptionField.style.css +0 -36
- package/dist/ui/components/DetailViewShell.d.ts +0 -51
- package/dist/ui/components/DetailViewShell.js +0 -50
- package/dist/ui/components/Div.d.ts +0 -20
- package/dist/ui/components/Div.js +0 -19
- package/dist/ui/components/Div.style.css +0 -6
- package/dist/ui/components/Divider.d.ts +0 -12
- package/dist/ui/components/Divider.js +0 -11
- package/dist/ui/components/Divider.style.css +0 -39
- package/dist/ui/components/Drawer.d.ts +0 -21
- package/dist/ui/components/Drawer.js +0 -72
- package/dist/ui/components/Drawer.style.css +0 -146
- package/dist/ui/components/Dropdown.d.ts +0 -36
- package/dist/ui/components/Dropdown.js +0 -142
- package/dist/ui/components/Dropdown.style.css +0 -112
- package/dist/ui/components/DynamicSelect.d.ts +0 -24
- package/dist/ui/components/DynamicSelect.js +0 -78
- package/dist/ui/components/DynamicSelect.style.css +0 -101
- package/dist/ui/components/EmptyState.d.ts +0 -12
- package/dist/ui/components/EmptyState.js +0 -17
- package/dist/ui/components/EmptyState.style.css +0 -30
- package/dist/ui/components/FilterDrawer.d.ts +0 -16
- package/dist/ui/components/FilterDrawer.js +0 -39
- package/dist/ui/components/FilterDrawer.style.css +0 -61
- package/dist/ui/components/FlowDiagram.d.ts +0 -33
- package/dist/ui/components/FlowDiagram.js +0 -15
- package/dist/ui/components/FlowDiagram.style.css +0 -77
- package/dist/ui/components/Form.d.ts +0 -27
- package/dist/ui/components/Form.js +0 -48
- package/dist/ui/components/Form.style.css +0 -27
- package/dist/ui/components/FormField.d.ts +0 -26
- package/dist/ui/components/FormField.js +0 -25
- package/dist/ui/components/FormField.style.css +0 -30
- package/dist/ui/components/FormGrid.d.ts +0 -46
- package/dist/ui/components/FormGrid.js +0 -42
- package/dist/ui/components/FormGrid.style.css +0 -32
- package/dist/ui/components/HorizontalScroller.d.ts +0 -33
- package/dist/ui/components/HorizontalScroller.js +0 -47
- package/dist/ui/components/HorizontalScroller.style.css +0 -109
- package/dist/ui/components/IconButton.d.ts +0 -32
- package/dist/ui/components/IconButton.js +0 -31
- package/dist/ui/components/IconButton.style.css +0 -103
- package/dist/ui/components/ImageGallery.d.ts +0 -17
- package/dist/ui/components/ImageGallery.js +0 -108
- package/dist/ui/components/ImageGallery.style.css +0 -163
- package/dist/ui/components/ImageLightbox.d.ts +0 -24
- package/dist/ui/components/ImageLightbox.js +0 -61
- package/dist/ui/components/ImageLightbox.style.css +0 -58
- package/dist/ui/components/Input.d.ts +0 -12
- package/dist/ui/components/Input.js +0 -29
- package/dist/ui/components/Input.style.css +0 -28
- package/dist/ui/components/ItemRow.d.ts +0 -10
- package/dist/ui/components/ItemRow.js +0 -7
- package/dist/ui/components/ItemRow.style.css +0 -33
- package/dist/ui/components/Layout.d.ts +0 -282
- package/dist/ui/components/Layout.js +0 -184
- package/dist/ui/components/Layout.style.css +0 -212
- package/dist/ui/components/ListingLayout.d.ts +0 -60
- package/dist/ui/components/ListingLayout.js +0 -121
- package/dist/ui/components/ListingLayout.style.css +0 -527
- package/dist/ui/components/ListingViewShell.d.ts +0 -38
- package/dist/ui/components/ListingViewShell.js +0 -11
- package/dist/ui/components/Menu.d.ts +0 -29
- package/dist/ui/components/Menu.js +0 -19
- package/dist/ui/components/Menu.style.css +0 -6
- package/dist/ui/components/Modal.d.ts +0 -18
- package/dist/ui/components/Modal.js +0 -79
- package/dist/ui/components/Modal.style.css +0 -102
- package/dist/ui/components/Pagination.d.ts +0 -25
- package/dist/ui/components/Pagination.js +0 -56
- package/dist/ui/components/Pagination.style.css +0 -76
- package/dist/ui/components/PasswordStrengthIndicator.d.ts +0 -12
- package/dist/ui/components/PasswordStrengthIndicator.js +0 -35
- package/dist/ui/components/PasswordStrengthIndicator.style.css +0 -56
- package/dist/ui/components/PriceDisplay.d.ts +0 -8
- package/dist/ui/components/PriceDisplay.js +0 -28
- package/dist/ui/components/PriceDisplay.style.css +0 -47
- package/dist/ui/components/Progress.d.ts +0 -23
- package/dist/ui/components/Progress.js +0 -32
- package/dist/ui/components/Progress.style.css +0 -81
- package/dist/ui/components/Radio.d.ts +0 -18
- package/dist/ui/components/Radio.js +0 -64
- package/dist/ui/components/Radio.style.css +0 -155
- package/dist/ui/components/RatingDisplay.d.ts +0 -8
- package/dist/ui/components/RatingDisplay.js +0 -15
- package/dist/ui/components/RatingDisplay.style.css +0 -50
- package/dist/ui/components/ResponsiveView.d.ts +0 -12
- package/dist/ui/components/ResponsiveView.js +0 -9
- package/dist/ui/components/ResponsiveView.style.css +0 -69
- package/dist/ui/components/RoleBadge.d.ts +0 -7
- package/dist/ui/components/RoleBadge.js +0 -21
- package/dist/ui/components/RoleBadge.style.css +0 -7
- package/dist/ui/components/RowActionMenu.d.ts +0 -13
- package/dist/ui/components/RowActionMenu.js +0 -17
- package/dist/ui/components/RowActionMenu.style.css +0 -91
- package/dist/ui/components/SectionTabs.d.ts +0 -19
- package/dist/ui/components/SectionTabs.js +0 -66
- package/dist/ui/components/SectionTabs.style.css +0 -163
- package/dist/ui/components/Select.d.ts +0 -19
- package/dist/ui/components/Select.js +0 -27
- package/dist/ui/components/Select.style.css +0 -177
- package/dist/ui/components/Semantic.d.ts +0 -154
- package/dist/ui/components/Semantic.js +0 -32
- package/dist/ui/components/Semantic.style.css +0 -14
- package/dist/ui/components/SideDrawer.d.ts +0 -28
- package/dist/ui/components/SideDrawer.js +0 -151
- package/dist/ui/components/SideDrawer.style.css +0 -214
- package/dist/ui/components/SideModal.d.ts +0 -25
- package/dist/ui/components/SideModal.js +0 -61
- package/dist/ui/components/SideModal.style.css +0 -77
- package/dist/ui/components/Skeleton.d.ts +0 -14
- package/dist/ui/components/Skeleton.js +0 -22
- package/dist/ui/components/Skeleton.style.css +0 -55
- package/dist/ui/components/SkipToMain.d.ts +0 -6
- package/dist/ui/components/SkipToMain.js +0 -6
- package/dist/ui/components/SkipToMain.style.css +0 -34
- package/dist/ui/components/Slider.d.ts +0 -17
- package/dist/ui/components/Slider.js +0 -38
- package/dist/ui/components/Slider.style.css +0 -17
- package/dist/ui/components/SlottedListingView.d.ts +0 -62
- package/dist/ui/components/SlottedListingView.js +0 -41
- package/dist/ui/components/SortDropdown.d.ts +0 -15
- package/dist/ui/components/SortDropdown.js +0 -8
- package/dist/ui/components/SortDropdown.style.css +0 -12
- package/dist/ui/components/Spinner.d.ts +0 -13
- package/dist/ui/components/Spinner.js +0 -15
- package/dist/ui/components/Spinner.style.css +0 -76
- package/dist/ui/components/StackedViewShell.d.ts +0 -50
- package/dist/ui/components/StackedViewShell.js +0 -39
- package/dist/ui/components/StarRating.d.ts +0 -17
- package/dist/ui/components/StarRating.js +0 -29
- package/dist/ui/components/StarRating.style.css +0 -44
- package/dist/ui/components/StatsGrid.d.ts +0 -18
- package/dist/ui/components/StatsGrid.js +0 -17
- package/dist/ui/components/StatsGrid.style.css +0 -96
- package/dist/ui/components/StatusBadge.d.ts +0 -18
- package/dist/ui/components/StatusBadge.js +0 -60
- package/dist/ui/components/StatusBadge.style.css +0 -5
- package/dist/ui/components/StepperNav.d.ts +0 -10
- package/dist/ui/components/StepperNav.js +0 -23
- package/dist/ui/components/StepperNav.style.css +0 -110
- package/dist/ui/components/SummaryCard.d.ts +0 -21
- package/dist/ui/components/SummaryCard.js +0 -15
- package/dist/ui/components/SummaryCard.style.css +0 -82
- package/dist/ui/components/TabStrip.d.ts +0 -34
- package/dist/ui/components/TabStrip.js +0 -57
- package/dist/ui/components/TabStrip.style.css +0 -97
- package/dist/ui/components/TablePagination.d.ts +0 -21
- package/dist/ui/components/TablePagination.js +0 -32
- package/dist/ui/components/TablePagination.style.css +0 -89
- package/dist/ui/components/Tabs.d.ts +0 -28
- package/dist/ui/components/Tabs.js +0 -41
- package/dist/ui/components/Tabs.style.css +0 -46
- package/dist/ui/components/TagInput.d.ts +0 -10
- package/dist/ui/components/TagInput.js +0 -60
- package/dist/ui/components/TagInput.style.css +0 -121
- package/dist/ui/components/TextLink.d.ts +0 -42
- package/dist/ui/components/TextLink.js +0 -48
- package/dist/ui/components/TextLink.style.css +0 -94
- package/dist/ui/components/Textarea.d.ts +0 -9
- package/dist/ui/components/Textarea.js +0 -21
- package/dist/ui/components/Textarea.style.css +0 -30
- package/dist/ui/components/Toast.d.ts +0 -15
- package/dist/ui/components/Toast.js +0 -61
- package/dist/ui/components/Toast.style.css +0 -114
- package/dist/ui/components/Toggle.d.ts +0 -12
- package/dist/ui/components/Toggle.js +0 -47
- package/dist/ui/components/Toggle.style.css +0 -107
- package/dist/ui/components/Tooltip.d.ts +0 -34
- package/dist/ui/components/Tooltip.js +0 -110
- package/dist/ui/components/Tooltip.style.css +0 -114
- package/dist/ui/components/Typography.d.ts +0 -50
- package/dist/ui/components/Typography.js +0 -103
- package/dist/ui/components/Typography.style.css +0 -178
- package/dist/ui/components/UnsavedChangesModal.d.ts +0 -17
- package/dist/ui/components/UnsavedChangesModal.js +0 -52
- package/dist/ui/components/UnsavedChangesModal.style.css +0 -33
- package/dist/ui/components/ViewToggle.d.ts +0 -15
- package/dist/ui/components/ViewToggle.js +0 -29
- package/dist/ui/components/ViewToggle.style.css +0 -50
- package/dist/ui/components/index.style.css +0 -76
- package/dist/ui/index.d.ts +0 -165
- package/dist/ui/index.js +0 -87
- package/dist/ui/rich-text/RichText.d.ts +0 -46
- package/dist/ui/rich-text/RichText.js +0 -172
- package/dist/ui/rich-text/RichText.style.css +0 -5
- package/dist/ui/rich-text/index.d.ts +0 -2
- package/dist/ui/rich-text/index.js +0 -1
- package/dist/ui/style.helper.d.ts +0 -7
- package/dist/ui/style.helper.js +0 -12
- package/dist/utils/animation.helper.d.ts +0 -19
- package/dist/utils/animation.helper.js +0 -19
- package/dist/utils/array.helper.d.ts +0 -17
- package/dist/utils/array.helper.js +0 -53
- package/dist/utils/business-day.d.ts +0 -47
- package/dist/utils/business-day.js +0 -68
- package/dist/utils/client.d.ts +0 -1
- package/dist/utils/client.js +0 -1
- package/dist/utils/color.helper.d.ts +0 -32
- package/dist/utils/color.helper.js +0 -51
- package/dist/utils/cookie.converter.d.ts +0 -7
- package/dist/utils/cookie.converter.js +0 -32
- package/dist/utils/date.formatter.d.ts +0 -22
- package/dist/utils/date.formatter.js +0 -194
- package/dist/utils/event-manager.d.ts +0 -45
- package/dist/utils/event-manager.js +0 -185
- package/dist/utils/filter.helper.d.ts +0 -18
- package/dist/utils/filter.helper.js +0 -21
- package/dist/utils/id-generators.d.ts +0 -243
- package/dist/utils/id-generators.js +0 -360
- package/dist/utils/index.d.ts +0 -17
- package/dist/utils/index.js +0 -18
- package/dist/utils/media-field.d.ts +0 -2
- package/dist/utils/media-field.js +0 -1
- package/dist/utils/number.formatter.d.ts +0 -13
- package/dist/utils/number.formatter.js +0 -100
- package/dist/utils/object.helper.d.ts +0 -16
- package/dist/utils/object.helper.js +0 -82
- package/dist/utils/pagination.helper.d.ts +0 -23
- package/dist/utils/pagination.helper.js +0 -24
- package/dist/utils/schema-ui.d.ts +0 -83
- package/dist/utils/schema-ui.js +0 -185
- package/dist/utils/sorting.helper.d.ts +0 -7
- package/dist/utils/sorting.helper.js +0 -16
- package/dist/utils/string.formatter.d.ts +0 -19
- package/dist/utils/string.formatter.js +0 -140
- package/dist/utils/type.converter.d.ts +0 -14
- package/dist/utils/type.converter.js +0 -61
- package/dist/validation/ZodSetup.d.ts +0 -5
- package/dist/validation/ZodSetup.js +0 -11
- package/dist/validation/email.validator.d.ts +0 -7
- package/dist/validation/email.validator.js +0 -33
- package/dist/validation/index.d.ts +0 -9
- package/dist/validation/index.js +0 -8
- package/dist/validation/input.validator.d.ts +0 -11
- package/dist/validation/input.validator.js +0 -33
- package/dist/validation/password.validator.d.ts +0 -21
- package/dist/validation/password.validator.js +0 -77
- package/dist/validation/phone.validator.d.ts +0 -9
- package/dist/validation/phone.validator.js +0 -41
- package/dist/validation/schemas.d.ts +0 -267
- package/dist/validation/schemas.js +0 -176
- package/dist/validation/url.validator.d.ts +0 -7
- package/dist/validation/url.validator.js +0 -44
- package/dist/validation/zod-error-map.d.ts +0 -17
- package/dist/validation/zod-error-map.js +0 -85
- package/dist/values/index.d.ts +0 -6
- package/dist/values/index.js +0 -6
- package/dist/values/success-messages.d.ts +0 -242
- package/dist/values/success-messages.js +0 -272
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useCallback, useRef, useState } from "react";
|
|
4
|
-
import { Button, Heading, Li, Row, Spinner, Span, Text, TextLink, Ul, } from "../../../ui";
|
|
5
|
-
import { useClickOutside, useMessage } from "../../../react";
|
|
6
|
-
import { formatRelativeTime } from "../../../utils";
|
|
7
|
-
import { useNotifications } from "../hooks/useNotifications";
|
|
8
|
-
const DEFAULT_ICONS = {
|
|
9
|
-
order_placed: "🛍️",
|
|
10
|
-
order_confirmed: "✅",
|
|
11
|
-
order_shipped: "📦",
|
|
12
|
-
order_delivered: "🎉",
|
|
13
|
-
order_cancelled: "❌",
|
|
14
|
-
bid_placed: "🔨",
|
|
15
|
-
bid_outbid: "⚡",
|
|
16
|
-
bid_won: "🏆",
|
|
17
|
-
bid_lost: "😔",
|
|
18
|
-
review_approved: "⭐",
|
|
19
|
-
review_replied: "💬",
|
|
20
|
-
product_available: "🔔",
|
|
21
|
-
promotion: "🏷️",
|
|
22
|
-
system: "ℹ️",
|
|
23
|
-
welcome: "👋",
|
|
24
|
-
};
|
|
25
|
-
export function NotificationBell({ limit = 10, viewAllHref, labels, icons, renderLink, onMarkAllReadSuccess, onMarkAllReadError, buttonClassName = "", dropdownClassName = "", hideOnMobile = true, }) {
|
|
26
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
27
|
-
const dropdownRef = useRef(null);
|
|
28
|
-
const { showSuccess, showError } = useMessage();
|
|
29
|
-
const { notifications, unreadCount, isLoading, refetch, markRead, markAllRead, isMarkingAll, } = useNotifications(limit);
|
|
30
|
-
const notificationIcons = { ...DEFAULT_ICONS, ...icons };
|
|
31
|
-
useClickOutside(dropdownRef, () => setIsOpen(false), { enabled: isOpen });
|
|
32
|
-
const handleToggle = useCallback(() => {
|
|
33
|
-
setIsOpen((prev) => {
|
|
34
|
-
if (!prev)
|
|
35
|
-
refetch();
|
|
36
|
-
return !prev;
|
|
37
|
-
});
|
|
38
|
-
}, [refetch]);
|
|
39
|
-
const handleMarkRead = useCallback(async (id) => {
|
|
40
|
-
await markRead(id);
|
|
41
|
-
refetch();
|
|
42
|
-
}, [markRead, refetch]);
|
|
43
|
-
const emitSuccess = onMarkAllReadSuccess ?? showSuccess;
|
|
44
|
-
const emitError = onMarkAllReadError ?? showError;
|
|
45
|
-
const handleMarkAllRead = useCallback(async () => {
|
|
46
|
-
try {
|
|
47
|
-
await markAllRead(undefined);
|
|
48
|
-
refetch();
|
|
49
|
-
emitSuccess(labels.markAllRead);
|
|
50
|
-
}
|
|
51
|
-
catch {
|
|
52
|
-
emitError(labels.error);
|
|
53
|
-
}
|
|
54
|
-
}, [
|
|
55
|
-
emitError,
|
|
56
|
-
emitSuccess,
|
|
57
|
-
labels.error,
|
|
58
|
-
labels.markAllRead,
|
|
59
|
-
markAllRead,
|
|
60
|
-
refetch,
|
|
61
|
-
]);
|
|
62
|
-
const renderActionLink = renderLink ??
|
|
63
|
-
((props) => (_jsx(TextLink, { href: props.href, onClick: props.onClick, className: props.className, children: props.children })));
|
|
64
|
-
return (_jsxs("div", { className: "relative", ref: dropdownRef, children: [_jsxs(Button, { onClick: handleToggle, className: `${hideOnMobile ? "hidden md:flex" : "flex"} p-2.5 md:p-3 rounded-xl transition-colors relative text-zinc-600 hover:bg-zinc-100 hover:text-zinc-900 dark:text-zinc-300 dark:hover:bg-slate-800 dark:hover:text-white ${buttonClassName}`, "aria-label": labels.title, "aria-expanded": isOpen, children: [_jsx("svg", { className: "w-6 h-6 md:w-7 md:h-7", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9" }) }), unreadCount > 0 && (_jsx(Span, { className: "absolute -top-1 -right-1 bg-red-500 text-white text-xs min-w-[20px] h-5 px-1.5 flex items-center justify-center rounded-full font-semibold shadow-md", children: unreadCount > 99 ? "99+" : unreadCount }))] }), isOpen && (_jsxs("div", { className: `absolute right-0 top-full mt-2 w-80 sm:w-96 rounded-xl shadow-2xl border border-zinc-200 bg-white dark:border-slate-800 dark:bg-slate-950 z-50 overflow-hidden ${dropdownClassName}`, children: [_jsxs(Row, { justify: "between", gap: "none", className: "px-4 py-3 border-b border-zinc-200 dark:border-slate-800", children: [_jsxs(Heading, { level: 3, className: "font-semibold text-zinc-900 dark:text-white", children: [labels.title, unreadCount > 0 && (_jsxs(Span, { className: "ml-2 text-xs bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400 px-2 py-0.5 rounded-full font-medium", children: [unreadCount, " ", labels.unread] }))] }), unreadCount > 0 && (_jsx(Button, { onClick: handleMarkAllRead, disabled: isMarkingAll, className: "text-xs text-primary hover:underline font-medium disabled:opacity-50", children: isMarkingAll ? labels.loading : labels.markAllRead }))] }), _jsx("div", { className: "max-h-96 overflow-y-auto", children: isLoading ? (_jsx("div", { className: "flex items-center justify-center py-10", children: _jsx(Spinner, { size: "md" }) })) : notifications.length === 0 ? (_jsxs("div", { className: "flex flex-col items-center justify-center py-10 px-4 text-center", children: [_jsx("svg", { className: "w-12 h-12 text-zinc-300 dark:text-zinc-600 mb-3", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9" }) }), _jsx(Text, { className: "font-medium text-zinc-900 dark:text-white", children: labels.empty }), _jsx(Text, { size: "sm", className: "mt-1 text-zinc-500 dark:text-zinc-400", children: labels.emptyDesc })] })) : (_jsx(Ul, { children: notifications.map((notification) => (_jsxs(Li, { className: `group flex items-start gap-3 px-4 py-3 border-b border-zinc-200 dark:border-slate-800 last:border-0 transition-colors hover:bg-zinc-50 dark:hover:bg-slate-900 ${!notification.isRead ? "bg-primary/5 dark:bg-primary/10" : ""}`, children: [_jsx(Span, { className: "text-xl flex-shrink-0 mt-0.5", children: notificationIcons[notification.type] ?? "🔔" }), _jsxs("div", { className: "flex-1 min-w-0", children: [_jsxs("div", { className: "flex items-start justify-between gap-2", children: [_jsxs(Text, { size: "sm", className: "font-medium text-zinc-900 dark:text-white leading-tight", children: [notification.title, !notification.isRead && (_jsx(Span, { className: "ml-1.5 inline-block w-2 h-2 rounded-full bg-primary flex-shrink-0 align-middle" }))] }), _jsx(Span, { className: "text-xs text-zinc-500 dark:text-zinc-400 flex-shrink-0", children: formatRelativeTime(notification.createdAt) })] }), _jsx(Text, { size: "sm", className: "text-zinc-600 dark:text-zinc-300 mt-0.5 line-clamp-2", children: notification.message }), _jsxs(Row, { gap: "3", className: "mt-1.5", children: [notification.actionUrl &&
|
|
65
|
-
renderActionLink({
|
|
66
|
-
href: notification.actionUrl,
|
|
67
|
-
onClick: () => {
|
|
68
|
-
if (!notification.isRead)
|
|
69
|
-
void handleMarkRead(notification.id);
|
|
70
|
-
setIsOpen(false);
|
|
71
|
-
},
|
|
72
|
-
className: "text-xs text-primary hover:underline font-medium",
|
|
73
|
-
children: notification.actionLabel ?? labels.viewAction,
|
|
74
|
-
}), !notification.isRead && (_jsx(Button, { variant: "ghost", onClick: () => void handleMarkRead(notification.id), className: "text-xs text-zinc-500 dark:text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200 hover:underline p-0 h-auto", children: labels.markRead }))] })] })] }, notification.id))) })) }), viewAllHref && (_jsx("div", { className: "px-4 py-3 border-t border-zinc-200 dark:border-slate-800 text-center", children: renderActionLink({
|
|
75
|
-
href: viewAllHref,
|
|
76
|
-
onClick: () => setIsOpen(false),
|
|
77
|
-
className: "text-sm text-primary hover:underline font-medium",
|
|
78
|
-
children: labels.viewAll,
|
|
79
|
-
}) }))] }))] }));
|
|
80
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { StackedViewShellProps } from "../../../ui";
|
|
3
|
-
export interface OrderDetailViewLabels {
|
|
4
|
-
title?: string;
|
|
5
|
-
backLabel?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface OrderDetailViewProps extends Omit<StackedViewShellProps, "sections"> {
|
|
8
|
-
labels?: OrderDetailViewLabels;
|
|
9
|
-
renderBack?: () => React.ReactNode;
|
|
10
|
-
renderHeader?: () => React.ReactNode;
|
|
11
|
-
renderItems?: () => React.ReactNode;
|
|
12
|
-
renderAddress?: () => React.ReactNode;
|
|
13
|
-
renderPayment?: () => React.ReactNode;
|
|
14
|
-
renderActions?: () => React.ReactNode;
|
|
15
|
-
isLoading?: boolean;
|
|
16
|
-
isNotFound?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare function OrderDetailView({ labels, renderBack, renderHeader, renderItems, renderAddress, renderPayment, renderActions, ...rest }: OrderDetailViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { StackedViewShell } from "../../../ui";
|
|
3
|
-
export function OrderDetailView({ labels = {}, renderBack, renderHeader, renderItems, renderAddress, renderPayment, renderActions, ...rest }) {
|
|
4
|
-
return (_jsx(StackedViewShell, { portal: "user", ...rest, title: labels.title, sections: [
|
|
5
|
-
renderBack?.(),
|
|
6
|
-
renderHeader?.(),
|
|
7
|
-
renderActions?.(),
|
|
8
|
-
renderItems?.(),
|
|
9
|
-
renderAddress?.(),
|
|
10
|
-
renderPayment?.(),
|
|
11
|
-
] }));
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { StackedViewShellProps } from "../../../ui";
|
|
3
|
-
export interface ProfileViewLabels {
|
|
4
|
-
title?: string;
|
|
5
|
-
editProfile?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface ProfileViewProps extends Omit<StackedViewShellProps, "sections"> {
|
|
8
|
-
labels?: ProfileViewLabels;
|
|
9
|
-
renderStats?: () => React.ReactNode;
|
|
10
|
-
renderActions?: () => React.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export declare function ProfileView({ labels, renderStats, renderActions, ...rest }: ProfileViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { StackedViewShell } from "../../../ui";
|
|
3
|
-
export function ProfileView({ labels = {}, renderStats, renderActions, ...rest }) {
|
|
4
|
-
return (_jsx(StackedViewShell, { portal: "user", ...rest, title: labels.title, sections: [renderActions?.(), renderStats?.()] }));
|
|
5
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { StackedViewShellProps } from "../../../ui";
|
|
3
|
-
export interface UserAccountHubViewLabels {
|
|
4
|
-
title?: string;
|
|
5
|
-
recentOrders?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface UserAccountHubViewProps extends Omit<StackedViewShellProps, "sections"> {
|
|
8
|
-
labels?: UserAccountHubViewLabels;
|
|
9
|
-
renderProfile?: () => React.ReactNode;
|
|
10
|
-
renderNav?: () => React.ReactNode;
|
|
11
|
-
renderRecentOrders?: () => React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
export declare function UserAccountHubView({ labels, renderProfile, renderNav, renderRecentOrders, ...rest }: UserAccountHubViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { StackedViewShell } from "../../../ui";
|
|
3
|
-
export function UserAccountHubView({ labels = {}, renderProfile, renderNav, renderRecentOrders, ...rest }) {
|
|
4
|
-
return (_jsx(StackedViewShell, { portal: "user", ...rest, title: labels.title, sections: [renderProfile?.(), renderNav?.(), renderRecentOrders?.()] }));
|
|
5
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { StackedViewShellProps } from "../../../ui";
|
|
3
|
-
export interface UserAddressesViewLabels {
|
|
4
|
-
title?: string;
|
|
5
|
-
addAddress?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface UserAddressesViewProps extends Omit<StackedViewShellProps, "sections"> {
|
|
8
|
-
labels?: UserAddressesViewLabels;
|
|
9
|
-
renderToolbar?: () => React.ReactNode;
|
|
10
|
-
renderAddresses?: () => React.ReactNode;
|
|
11
|
-
renderDeleteModal?: () => React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
export declare function UserAddressesView({ labels, renderToolbar, renderAddresses, renderDeleteModal, ...rest }: UserAddressesViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { StackedViewShell } from "../../../ui";
|
|
3
|
-
export function UserAddressesView({ labels = {}, renderToolbar, renderAddresses, renderDeleteModal, ...rest }) {
|
|
4
|
-
return (_jsx(StackedViewShell, { portal: "user", ...rest, title: labels.title, sections: [renderToolbar?.(), renderAddresses?.()], overlays: renderDeleteModal?.() }));
|
|
5
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { StackedViewShellProps } from "../../../ui";
|
|
3
|
-
export interface UserNotificationsViewLabels {
|
|
4
|
-
title?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface UserNotificationsViewProps extends Omit<StackedViewShellProps, "sections"> {
|
|
7
|
-
labels?: UserNotificationsViewLabels;
|
|
8
|
-
renderToolbar?: () => React.ReactNode;
|
|
9
|
-
renderFilters?: () => React.ReactNode;
|
|
10
|
-
renderActiveFilters?: () => React.ReactNode;
|
|
11
|
-
renderBulkActions?: () => React.ReactNode;
|
|
12
|
-
renderList?: () => React.ReactNode;
|
|
13
|
-
renderPagination?: () => React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
export declare function UserNotificationsView({ labels, renderToolbar, renderFilters, renderActiveFilters, renderBulkActions, renderList, renderPagination, ...rest }: UserNotificationsViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { StackedViewShell } from "../../../ui";
|
|
3
|
-
export function UserNotificationsView({ labels = {}, renderToolbar, renderFilters, renderActiveFilters, renderBulkActions, renderList, renderPagination, ...rest }) {
|
|
4
|
-
return (_jsx(StackedViewShell, { portal: "user", ...rest, title: labels.title, sections: [
|
|
5
|
-
renderToolbar?.(),
|
|
6
|
-
renderFilters?.(),
|
|
7
|
-
renderActiveFilters?.(),
|
|
8
|
-
renderBulkActions?.(),
|
|
9
|
-
renderList?.(),
|
|
10
|
-
renderPagination?.(),
|
|
11
|
-
] }));
|
|
12
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { StackedViewShellProps } from "../../../ui";
|
|
3
|
-
export interface UserOffersViewLabels {
|
|
4
|
-
title?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface UserOffersViewProps extends Omit<StackedViewShellProps, "sections"> {
|
|
7
|
-
labels?: UserOffersViewLabels;
|
|
8
|
-
renderTable?: () => React.ReactNode;
|
|
9
|
-
}
|
|
10
|
-
export declare function UserOffersView({ labels, renderTable, ...rest }: UserOffersViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { StackedViewShell } from "../../../ui";
|
|
3
|
-
export function UserOffersView({ labels = {}, renderTable, ...rest }) {
|
|
4
|
-
return (_jsx(StackedViewShell, { portal: "user", ...rest, title: labels.title, sections: [renderTable?.()] }));
|
|
5
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
import type { StackedViewShellProps } from "../../../ui";
|
|
3
|
-
export interface UserOrderTrackViewLabels {
|
|
4
|
-
title?: string;
|
|
5
|
-
backLabel?: string;
|
|
6
|
-
notFoundTitle?: string;
|
|
7
|
-
notFoundDescription?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface UserOrderTrackViewProps extends Omit<StackedViewShellProps, "sections"> {
|
|
10
|
-
labels?: UserOrderTrackViewLabels;
|
|
11
|
-
renderBack?: () => ReactNode;
|
|
12
|
-
renderTracking?: () => ReactNode;
|
|
13
|
-
renderNotFound?: () => ReactNode;
|
|
14
|
-
isNotFound?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare function UserOrderTrackView({ renderBack, renderTracking, renderNotFound, isNotFound, ...rest }: UserOrderTrackViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { StackedViewShell } from "../../../ui";
|
|
3
|
-
export function UserOrderTrackView({ renderBack, renderTracking, renderNotFound, isNotFound = false, ...rest }) {
|
|
4
|
-
return (_jsx(StackedViewShell, { portal: "user", ...rest, sections: [
|
|
5
|
-
renderBack?.(),
|
|
6
|
-
isNotFound ? renderNotFound?.() : renderTracking?.(),
|
|
7
|
-
] }));
|
|
8
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { SlottedListingViewProps } from "../../../ui";
|
|
3
|
-
export interface UserOrdersViewLabels {
|
|
4
|
-
title?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface UserOrdersViewProps extends Omit<SlottedListingViewProps, "renderTable"> {
|
|
7
|
-
labels?: UserOrdersViewLabels;
|
|
8
|
-
/** @deprecated Use `renderSearch` instead. */
|
|
9
|
-
renderToolbar?: () => React.ReactNode;
|
|
10
|
-
renderTable?: () => React.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export declare function UserOrdersView({ renderToolbar, renderTable, ...props }: UserOrdersViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { SlottedListingView } from "../../../ui";
|
|
3
|
-
export function UserOrdersView({ renderToolbar, renderTable, ...props }) {
|
|
4
|
-
return (_jsx(SlottedListingView, { portal: "user", ...props, renderSearch: renderToolbar ? () => renderToolbar() : props.renderSearch, renderTable: renderTable ?? (() => null) }));
|
|
5
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { StackedViewShellProps } from "../../../ui";
|
|
3
|
-
export interface UserSettingsViewLabels {
|
|
4
|
-
title?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface UserSettingsViewProps extends Omit<StackedViewShellProps, "sections"> {
|
|
7
|
-
labels?: UserSettingsViewLabels;
|
|
8
|
-
renderAccountInfo?: () => React.ReactNode;
|
|
9
|
-
renderProfileForm?: () => React.ReactNode;
|
|
10
|
-
renderEmailVerification?: () => React.ReactNode;
|
|
11
|
-
renderPhoneVerification?: () => React.ReactNode;
|
|
12
|
-
renderPasswordForm?: () => React.ReactNode;
|
|
13
|
-
renderMessage?: () => React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
export declare function UserSettingsView({ labels, renderAccountInfo, renderProfileForm, renderEmailVerification, renderPhoneVerification, renderPasswordForm, renderMessage, ...rest }: UserSettingsViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { StackedViewShell } from "../../../ui";
|
|
3
|
-
export function UserSettingsView({ labels = {}, renderAccountInfo, renderProfileForm, renderEmailVerification, renderPhoneVerification, renderPasswordForm, renderMessage, ...rest }) {
|
|
4
|
-
return (_jsx(StackedViewShell, { portal: "user", ...rest, title: labels.title, sections: [
|
|
5
|
-
renderMessage?.(),
|
|
6
|
-
renderAccountInfo?.(),
|
|
7
|
-
renderProfileForm?.(),
|
|
8
|
-
renderEmailVerification?.(),
|
|
9
|
-
renderPhoneVerification?.(),
|
|
10
|
-
renderPasswordForm?.(),
|
|
11
|
-
] }));
|
|
12
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export { AddressCard, AddressBook } from "./AddressBook";
|
|
2
|
-
export type { AddressCardAddress, AddressCardProps } from "./AddressBook";
|
|
3
|
-
export { AddressForm } from "./AddressForm";
|
|
4
|
-
export type { AddressFormLabels, AddressFormPlaceholders } from "./AddressForm";
|
|
5
|
-
export { AddressSelectorCreate } from "./AddressSelectorCreate";
|
|
6
|
-
export { NotificationBell } from "./NotificationBell";
|
|
7
|
-
export type { NotificationBellLabels, NotificationBellProps, NotificationBellRenderLinkProps, } from "./NotificationBell";
|
|
8
|
-
export type { AddressSelectorCreateProps, AddressSelectorCreateLabels, } from "./AddressSelectorCreate";
|
|
9
|
-
export { UserAccountHubView } from "./UserAccountHubView";
|
|
10
|
-
export type { UserAccountHubViewProps, UserAccountHubViewLabels, } from "./UserAccountHubView";
|
|
11
|
-
export { ProfileView } from "./ProfileView";
|
|
12
|
-
export type { ProfileViewProps, ProfileViewLabels } from "./ProfileView";
|
|
13
|
-
export { UserSettingsView } from "./UserSettingsView";
|
|
14
|
-
export type { UserSettingsViewProps, UserSettingsViewLabels, } from "./UserSettingsView";
|
|
15
|
-
export { UserOrdersView } from "./UserOrdersView";
|
|
16
|
-
export type { UserOrdersViewProps, UserOrdersViewLabels, } from "./UserOrdersView";
|
|
17
|
-
export { OrderDetailView } from "./OrderDetailView";
|
|
18
|
-
export type { OrderDetailViewProps, OrderDetailViewLabels, } from "./OrderDetailView";
|
|
19
|
-
export { UserAddressesView } from "./UserAddressesView";
|
|
20
|
-
export type { UserAddressesViewProps, UserAddressesViewLabels, } from "./UserAddressesView";
|
|
21
|
-
export { UserNotificationsView } from "./UserNotificationsView";
|
|
22
|
-
export type { UserNotificationsViewProps, UserNotificationsViewLabels, } from "./UserNotificationsView";
|
|
23
|
-
export { UserOffersView } from "./UserOffersView";
|
|
24
|
-
export type { UserOffersViewProps, UserOffersViewLabels, } from "./UserOffersView";
|
|
25
|
-
export { MessagesView } from "./MessagesView";
|
|
26
|
-
export type { MessagesViewProps, MessagesViewLabels } from "./MessagesView";
|
|
27
|
-
export { ChatList } from "./ChatList";
|
|
28
|
-
export type { ChatListProps, ChatListLabels } from "./ChatList";
|
|
29
|
-
export { ChatWindow } from "./ChatWindow";
|
|
30
|
-
export type { ChatWindowProps, ChatWindowLabels } from "./ChatWindow";
|
|
31
|
-
export { BecomeSellerView } from "./BecomeSellerView";
|
|
32
|
-
export type { BecomeSellerViewProps, BecomeSellerViewLabels, } from "./BecomeSellerView";
|
|
33
|
-
export { UserOrderTrackView } from "./UserOrderTrackView";
|
|
34
|
-
export type { UserOrderTrackViewProps, UserOrderTrackViewLabels, } from "./UserOrderTrackView";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export { AddressCard, AddressBook } from "./AddressBook";
|
|
2
|
-
export { AddressForm } from "./AddressForm";
|
|
3
|
-
export { AddressSelectorCreate } from "./AddressSelectorCreate";
|
|
4
|
-
export { NotificationBell } from "./NotificationBell";
|
|
5
|
-
export { UserAccountHubView } from "./UserAccountHubView";
|
|
6
|
-
export { ProfileView } from "./ProfileView";
|
|
7
|
-
export { UserSettingsView } from "./UserSettingsView";
|
|
8
|
-
export { UserOrdersView } from "./UserOrdersView";
|
|
9
|
-
export { OrderDetailView } from "./OrderDetailView";
|
|
10
|
-
export { UserAddressesView } from "./UserAddressesView";
|
|
11
|
-
export { UserNotificationsView } from "./UserNotificationsView";
|
|
12
|
-
export { UserOffersView } from "./UserOffersView";
|
|
13
|
-
export { MessagesView } from "./MessagesView";
|
|
14
|
-
export { ChatList } from "./ChatList";
|
|
15
|
-
export { ChatWindow } from "./ChatWindow";
|
|
16
|
-
export { BecomeSellerView } from "./BecomeSellerView";
|
|
17
|
-
export { UserOrderTrackView } from "./UserOrderTrackView";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const ADDRESS_TYPES: readonly [{
|
|
2
|
-
readonly value: "home";
|
|
3
|
-
readonly label: "Home";
|
|
4
|
-
}, {
|
|
5
|
-
readonly value: "work";
|
|
6
|
-
readonly label: "Work";
|
|
7
|
-
}, {
|
|
8
|
-
readonly value: "other";
|
|
9
|
-
readonly label: "Other";
|
|
10
|
-
}];
|
|
11
|
-
export type AddressType = (typeof ADDRESS_TYPES)[number]["value"];
|
|
12
|
-
export declare const INDIAN_STATES: readonly ["Andhra Pradesh", "Arunachal Pradesh", "Assam", "Bihar", "Chhattisgarh", "Goa", "Gujarat", "Haryana", "Himachal Pradesh", "Jharkhand", "Karnataka", "Kerala", "Madhya Pradesh", "Maharashtra", "Manipur", "Meghalaya", "Mizoram", "Nagaland", "Odisha", "Punjab", "Rajasthan", "Sikkim", "Tamil Nadu", "Telangana", "Tripura", "Uttar Pradesh", "Uttarakhand", "West Bengal", "Andaman and Nicobar Islands", "Chandigarh", "Dadra and Nagar Haveli and Daman and Diu", "Delhi", "Jammu and Kashmir", "Ladakh", "Lakshadweep", "Puducherry"];
|
|
13
|
-
export type IndianState = (typeof INDIAN_STATES)[number];
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export const ADDRESS_TYPES = [
|
|
2
|
-
{ value: "home", label: "Home" },
|
|
3
|
-
{ value: "work", label: "Work" },
|
|
4
|
-
{ value: "other", label: "Other" },
|
|
5
|
-
];
|
|
6
|
-
export const INDIAN_STATES = [
|
|
7
|
-
"Andhra Pradesh",
|
|
8
|
-
"Arunachal Pradesh",
|
|
9
|
-
"Assam",
|
|
10
|
-
"Bihar",
|
|
11
|
-
"Chhattisgarh",
|
|
12
|
-
"Goa",
|
|
13
|
-
"Gujarat",
|
|
14
|
-
"Haryana",
|
|
15
|
-
"Himachal Pradesh",
|
|
16
|
-
"Jharkhand",
|
|
17
|
-
"Karnataka",
|
|
18
|
-
"Kerala",
|
|
19
|
-
"Madhya Pradesh",
|
|
20
|
-
"Maharashtra",
|
|
21
|
-
"Manipur",
|
|
22
|
-
"Meghalaya",
|
|
23
|
-
"Mizoram",
|
|
24
|
-
"Nagaland",
|
|
25
|
-
"Odisha",
|
|
26
|
-
"Punjab",
|
|
27
|
-
"Rajasthan",
|
|
28
|
-
"Sikkim",
|
|
29
|
-
"Tamil Nadu",
|
|
30
|
-
"Telangana",
|
|
31
|
-
"Tripura",
|
|
32
|
-
"Uttar Pradesh",
|
|
33
|
-
"Uttarakhand",
|
|
34
|
-
"West Bengal",
|
|
35
|
-
"Andaman and Nicobar Islands",
|
|
36
|
-
"Chandigarh",
|
|
37
|
-
"Dadra and Nagar Haveli and Daman and Diu",
|
|
38
|
-
"Delhi",
|
|
39
|
-
"Jammu and Kashmir",
|
|
40
|
-
"Ladakh",
|
|
41
|
-
"Lakshadweep",
|
|
42
|
-
"Puducherry",
|
|
43
|
-
];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { UserProfile } from "../types";
|
|
2
|
-
interface UseProfileOptions {
|
|
3
|
-
initialData?: UserProfile;
|
|
4
|
-
enabled?: boolean;
|
|
5
|
-
endpoint?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function useProfile(userId: string, opts?: UseProfileOptions): {
|
|
8
|
-
profile: UserProfile | undefined;
|
|
9
|
-
isLoading: boolean;
|
|
10
|
-
error: Error | null;
|
|
11
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<UserProfile, Error>>;
|
|
12
|
-
};
|
|
13
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useQuery } from "@tanstack/react-query";
|
|
3
|
-
import { apiClient } from "../../../http";
|
|
4
|
-
import { ACCOUNT_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
5
|
-
export function useProfile(userId, opts) {
|
|
6
|
-
const endpoint = opts?.endpoint ?? ACCOUNT_ENDPOINTS.BY_ID(userId);
|
|
7
|
-
const query = useQuery({
|
|
8
|
-
queryKey: ["account", userId],
|
|
9
|
-
queryFn: () => apiClient.get(endpoint),
|
|
10
|
-
initialData: opts?.initialData,
|
|
11
|
-
enabled: opts?.enabled !== false && !!userId,
|
|
12
|
-
});
|
|
13
|
-
return {
|
|
14
|
-
profile: query.data,
|
|
15
|
-
isLoading: query.isLoading,
|
|
16
|
-
error: query.error,
|
|
17
|
-
refetch: query.refetch,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface AddressFormStateData {
|
|
2
|
-
fullName: string;
|
|
3
|
-
phoneNumber: string;
|
|
4
|
-
pincode: string;
|
|
5
|
-
addressLine1: string;
|
|
6
|
-
addressLine2: string;
|
|
7
|
-
landmark: string;
|
|
8
|
-
city: string;
|
|
9
|
-
state: string;
|
|
10
|
-
addressType: string;
|
|
11
|
-
isDefault: boolean;
|
|
12
|
-
}
|
|
13
|
-
interface UseAddressFormResult {
|
|
14
|
-
formData: AddressFormStateData;
|
|
15
|
-
errors: Record<string, string>;
|
|
16
|
-
handleChange: (field: keyof AddressFormStateData, value: string | boolean) => void;
|
|
17
|
-
validate: () => boolean;
|
|
18
|
-
reset: (data?: Partial<AddressFormStateData>) => void;
|
|
19
|
-
setFormData: React.Dispatch<React.SetStateAction<AddressFormStateData>>;
|
|
20
|
-
}
|
|
21
|
-
export declare function useAddressForm(initialData?: Partial<AddressFormStateData>, options?: {
|
|
22
|
-
validateFn?: (data: AddressFormStateData) => Record<string, string>;
|
|
23
|
-
}): UseAddressFormResult;
|
|
24
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useCallback, useState } from "react";
|
|
3
|
-
const DEFAULT_FORM_DATA = {
|
|
4
|
-
fullName: "",
|
|
5
|
-
phoneNumber: "",
|
|
6
|
-
pincode: "",
|
|
7
|
-
addressLine1: "",
|
|
8
|
-
addressLine2: "",
|
|
9
|
-
landmark: "",
|
|
10
|
-
city: "",
|
|
11
|
-
state: "",
|
|
12
|
-
addressType: "home",
|
|
13
|
-
isDefault: false,
|
|
14
|
-
};
|
|
15
|
-
function defaultValidate(data) {
|
|
16
|
-
const errors = {};
|
|
17
|
-
if (!data.fullName.trim())
|
|
18
|
-
errors.fullName = "Full name is required";
|
|
19
|
-
if (!data.phoneNumber.trim())
|
|
20
|
-
errors.phoneNumber = "Phone number is required";
|
|
21
|
-
if (!data.addressLine1.trim())
|
|
22
|
-
errors.addressLine1 = "Address line 1 is required";
|
|
23
|
-
if (!data.city.trim())
|
|
24
|
-
errors.city = "City is required";
|
|
25
|
-
if (!data.state.trim())
|
|
26
|
-
errors.state = "State is required";
|
|
27
|
-
if (!data.pincode.trim())
|
|
28
|
-
errors.pincode = "Pincode is required";
|
|
29
|
-
return errors;
|
|
30
|
-
}
|
|
31
|
-
export function useAddressForm(initialData = {}, options) {
|
|
32
|
-
const [formData, setFormData] = useState({
|
|
33
|
-
...DEFAULT_FORM_DATA,
|
|
34
|
-
...initialData,
|
|
35
|
-
});
|
|
36
|
-
const [errors, setErrors] = useState({});
|
|
37
|
-
const validateFn = options?.validateFn ?? defaultValidate;
|
|
38
|
-
const handleChange = useCallback((field, value) => {
|
|
39
|
-
setFormData((prev) => ({ ...prev, [field]: value }));
|
|
40
|
-
if (errors[field]) {
|
|
41
|
-
setErrors((prev) => {
|
|
42
|
-
const next = { ...prev };
|
|
43
|
-
delete next[field];
|
|
44
|
-
return next;
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}, [errors]);
|
|
48
|
-
const validate = useCallback(() => {
|
|
49
|
-
const newErrors = validateFn(formData);
|
|
50
|
-
setErrors(newErrors);
|
|
51
|
-
return Object.keys(newErrors).length === 0;
|
|
52
|
-
}, [formData, validateFn]);
|
|
53
|
-
const reset = useCallback((data = {}) => {
|
|
54
|
-
setFormData({ ...DEFAULT_FORM_DATA, ...data });
|
|
55
|
-
setErrors({});
|
|
56
|
-
}, []);
|
|
57
|
-
return { formData, errors, handleChange, validate, reset, setFormData };
|
|
58
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { AddressFormData } from "./useAddresses";
|
|
2
|
-
interface SavedAddress {
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
city: string;
|
|
6
|
-
fullName?: string;
|
|
7
|
-
state?: string;
|
|
8
|
-
}
|
|
9
|
-
interface CreateAddressApiResponse {
|
|
10
|
-
success: boolean;
|
|
11
|
-
data?: SavedAddress;
|
|
12
|
-
}
|
|
13
|
-
export declare function useAddressSelector(options?: {
|
|
14
|
-
listEndpoint?: string;
|
|
15
|
-
createEndpoint?: string;
|
|
16
|
-
onCreated?: (id: string) => void;
|
|
17
|
-
onCreateError?: () => void;
|
|
18
|
-
}): {
|
|
19
|
-
addresses: SavedAddress[];
|
|
20
|
-
isLoading: boolean;
|
|
21
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<SavedAddress[], Error>>;
|
|
22
|
-
createAddress: import("@tanstack/react-query").UseMutateFunction<CreateAddressApiResponse, Error, AddressFormData, unknown>;
|
|
23
|
-
isSaving: boolean;
|
|
24
|
-
};
|
|
25
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useMutation, useQuery } from "@tanstack/react-query";
|
|
3
|
-
import { apiClient } from "../../../http";
|
|
4
|
-
import { ACCOUNT_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
5
|
-
const DEFAULT_ENDPOINTS = {
|
|
6
|
-
list: ACCOUNT_ENDPOINTS.ADDRESSES,
|
|
7
|
-
create: ACCOUNT_ENDPOINTS.ADDRESSES,
|
|
8
|
-
};
|
|
9
|
-
export function useAddressSelector(options) {
|
|
10
|
-
const listEndpoint = options?.listEndpoint ?? DEFAULT_ENDPOINTS.list;
|
|
11
|
-
const createEndpoint = options?.createEndpoint ?? DEFAULT_ENDPOINTS.create;
|
|
12
|
-
const { data, isLoading, refetch } = useQuery({
|
|
13
|
-
queryKey: ["user-addresses", listEndpoint],
|
|
14
|
-
queryFn: () => apiClient.get(listEndpoint),
|
|
15
|
-
});
|
|
16
|
-
const addresses = data ?? [];
|
|
17
|
-
const { mutate: createAddress, isPending: isSaving } = useMutation({
|
|
18
|
-
mutationFn: async (payload) => {
|
|
19
|
-
const result = await apiClient.post(createEndpoint, payload);
|
|
20
|
-
return { success: true, data: result };
|
|
21
|
-
},
|
|
22
|
-
onSuccess: (res) => {
|
|
23
|
-
refetch();
|
|
24
|
-
if (res.data?.id)
|
|
25
|
-
options?.onCreated?.(res.data.id);
|
|
26
|
-
},
|
|
27
|
-
onError: options?.onCreateError,
|
|
28
|
-
});
|
|
29
|
-
return { addresses, isLoading, refetch, createAddress, isSaving };
|
|
30
|
-
}
|