@mohasinac/appkit 4.3.2 → 4.4.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/dist/_internal/client/features/maintenance/views/AnalysisRunnerView.js +1 -1
- package/dist/_internal/client/features/maintenance/views/CloudLogsListView.js +1 -1
- package/dist/_internal/client/features/maintenance/views/MaintenanceDashboardView.js +1 -1
- package/dist/_internal/client/features/maintenance/views/ServerErrorDetailView.js +1 -1
- package/dist/_internal/client/features/maintenance/views/ServerErrorsListView.js +1 -1
- package/dist/_internal/server/jobs/core/assignSpinPrize.d.ts +14 -3
- package/dist/_internal/server/jobs/core/assignSpinPrize.js +95 -56
- package/dist/_internal/server/jobs/handlers/assignSpinPrize.js +8 -2
- package/dist/_internal/shared/actions/action-registry.js +15 -0
- package/dist/_internal/shared/features/brands/schema.d.ts +4 -4
- package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +4 -4
- package/dist/_internal/shared/features/orders/schema.d.ts +8 -8
- package/dist/_internal/shared/features/reviews/schema.d.ts +2 -2
- package/dist/client.d.ts +36 -0
- package/dist/client.js +30 -0
- package/dist/constants/api-endpoints.d.ts +6 -0
- package/dist/constants/api-endpoints.js +2 -0
- package/dist/constants/field-names.d.ts +3 -0
- package/dist/constants/field-names.js +4 -0
- package/dist/features/about/components/DeveloperView.d.ts +16 -0
- package/dist/features/about/components/DeveloperView.js +29 -0
- package/dist/features/about/index.d.ts +2 -0
- package/dist/features/about/index.js +1 -0
- package/dist/features/account/schemas/index.d.ts +16 -16
- package/dist/features/addresses/schemas/index.d.ts +8 -8
- package/dist/features/admin/components/AdminAddressesView.js +1 -1
- package/dist/features/admin/components/AdminAllEventEntriesView.js +2 -2
- package/dist/features/admin/components/AdminArtView.js +1 -1
- package/dist/features/admin/components/AdminBidsView.js +2 -2
- package/dist/features/admin/components/AdminBlogView.js +2 -2
- package/dist/features/admin/components/AdminBrandsView.js +2 -2
- package/dist/features/admin/components/AdminBundlesView.js +2 -2
- package/dist/features/admin/components/AdminCartsView.js +2 -2
- package/dist/features/admin/components/AdminCategoriesView.js +2 -2
- package/dist/features/admin/components/AdminClassifiedView.js +1 -1
- package/dist/features/admin/components/AdminContactView.js +2 -2
- package/dist/features/admin/components/AdminCouponsView.js +2 -2
- package/dist/features/admin/components/AdminDigitalCodesView.js +1 -1
- package/dist/features/admin/components/AdminFaqsView.js +2 -2
- package/dist/features/admin/components/AdminFeaturesView.js +1 -1
- package/dist/features/admin/components/AdminGroupedListingsView.js +1 -1
- package/dist/features/admin/components/AdminHistoryView.js +1 -1
- package/dist/features/admin/components/AdminLiveView.js +1 -1
- package/dist/features/admin/components/AdminNewsletterView.js +2 -2
- package/dist/features/admin/components/AdminNotificationsView.js +2 -2
- package/dist/features/admin/components/AdminOrdersView.js +2 -2
- package/dist/features/admin/components/AdminPaymentMethodsView.js +1 -1
- package/dist/features/admin/components/AdminPayoutsView.js +2 -2
- package/dist/features/admin/components/AdminPrizeDrawsView.js +2 -2
- package/dist/features/admin/components/AdminProductsView.js +2 -2
- package/dist/features/admin/components/AdminReturnRequestsView.js +1 -1
- package/dist/features/admin/components/AdminReviewsView.js +2 -2
- package/dist/features/admin/components/AdminScammersView.js +2 -2
- package/dist/features/admin/components/AdminSessionsView.js +2 -2
- package/dist/features/admin/components/AdminStickersView.js +1 -1
- package/dist/features/admin/components/AdminStoreAddressesView.js +1 -1
- package/dist/features/admin/components/AdminStoresView.js +2 -2
- package/dist/features/admin/components/AdminSublistingCategoriesView.js +1 -1
- package/dist/features/admin/components/AdminSupportTicketsView.js +2 -2
- package/dist/features/admin/components/AdminTeamView.js +2 -2
- package/dist/features/admin/components/AdminTesterChecklistView.js +2 -2
- package/dist/features/admin/components/AdminUsersView.js +2 -2
- package/dist/features/admin/components/AdminWishlistsView.js +1 -1
- package/dist/features/admin/hooks/useAdminListing.d.ts +1 -1
- package/dist/features/auth/hooks/useAuth.d.ts +1 -1
- package/dist/features/blog/actions/blog-actions.d.ts +14 -14
- package/dist/features/blog/schemas/index.d.ts +14 -14
- package/dist/features/cart/hooks/useAddToCart.d.ts +6 -2
- package/dist/features/cart/hooks/useAddToCart.js +20 -3
- package/dist/features/cart/schemas/index.d.ts +3 -3
- package/dist/features/cart/utils/pending-ops.d.ts +20 -0
- package/dist/features/cart/utils/pending-ops.js +22 -0
- package/dist/features/catalogue/components/AdminCatalogueApprovalsView.js +1 -1
- package/dist/features/categories/components/CategoryBundlesListing.js +1 -1
- package/dist/features/categories/components/CategoryFilters.js +1 -1
- package/dist/features/categories/components/CategoryTree.js +1 -1
- package/dist/features/categories/schemas/index.d.ts +16 -16
- package/dist/features/events/actions/event-actions.d.ts +21 -1
- package/dist/features/events/actions/event-actions.js +85 -3
- package/dist/features/events/components/AdminEventEditorView.js +11 -2
- package/dist/features/events/components/AdminEventEntriesView.js +37 -4
- package/dist/features/events/components/AdminEventsView.js +2 -2
- package/dist/features/events/components/EventLeaderboard.d.ts +12 -2
- package/dist/features/events/components/EventLeaderboard.js +4 -1
- package/dist/features/events/components/EventRafflesSection.js +2 -2
- package/dist/features/events/repository/event-entry.repository.d.ts +39 -0
- package/dist/features/events/repository/event-entry.repository.js +153 -0
- package/dist/features/events/schemas/firestore.d.ts +28 -1
- package/dist/features/events/schemas/firestore.js +9 -0
- package/dist/features/events/schemas/index.d.ts +13 -13
- package/dist/features/events/types/index.d.ts +26 -0
- package/dist/features/faq/actions/faq-actions.d.ts +8 -8
- package/dist/features/faq/schemas/index.d.ts +22 -22
- package/dist/features/grouped/schemas/index.d.ts +2 -2
- package/dist/features/homepage/components/AnnouncementBar.d.ts +9 -1
- package/dist/features/homepage/components/AnnouncementBar.js +6 -3
- package/dist/features/homepage/components/MarketplaceHomepageView.js +2 -2
- package/dist/features/homepage/components/SectionCarousel.js +5 -1
- package/dist/features/homepage/components/WelcomeSection.js +2 -2
- package/dist/features/homepage/schemas/index.d.ts +2 -2
- package/dist/features/layout/BottomNavbar.js +8 -6
- package/dist/features/lottery/schemas/zod.d.ts +10 -10
- package/dist/features/media/MediaVideo.js +11 -3
- package/dist/features/orders/schemas/index.d.ts +52 -52
- package/dist/features/products/components/CompareOverlay.d.ts +9 -0
- package/dist/features/products/components/CompareOverlay.js +28 -3
- package/dist/features/products/components/InteractiveProductCard.js +9 -3
- package/dist/features/products/components/MakeOfferForm.js +1 -1
- package/dist/features/products/components/PlaceBidForm.js +1 -1
- package/dist/features/products/components/PrizeDrawCollage.js +1 -1
- package/dist/features/products/components/PrizeDrawsSection.js +2 -2
- package/dist/features/products/components/ProductDetailActions.js +3 -1
- package/dist/features/products/components/ProductGrid.js +1 -1
- package/dist/features/products/components/ProductInfo.js +1 -1
- package/dist/features/products/components/ProductsIndexListing.js +12 -2
- package/dist/features/products/hooks/useRelatedProducts.js +1 -1
- package/dist/features/products/schemas/index.d.ts +10 -10
- package/dist/features/promotions/schemas/index.d.ts +8 -8
- package/dist/features/reviews/schemas/index.d.ts +12 -12
- package/dist/features/scams/schemas/index.d.ts +6 -6
- package/dist/features/seller/components/CouponInlineSelect.js +1 -1
- package/dist/features/seller/components/SellerArtView.js +2 -2
- package/dist/features/seller/components/SellerAuctionsView.js +2 -2
- package/dist/features/seller/components/SellerBidsView.js +2 -2
- package/dist/features/seller/components/SellerBundlesView.js +1 -1
- package/dist/features/seller/components/SellerClassifiedView.js +2 -2
- package/dist/features/seller/components/SellerCouponsView.js +2 -2
- package/dist/features/seller/components/SellerDigitalCodesView.js +2 -2
- package/dist/features/seller/components/SellerGroupedListingsView.js +1 -1
- package/dist/features/seller/components/SellerLiveView.js +2 -2
- package/dist/features/seller/components/SellerOffersView.js +2 -2
- package/dist/features/seller/components/SellerOrdersView.js +2 -2
- package/dist/features/seller/components/SellerPayoutMethodsView.js +2 -2
- package/dist/features/seller/components/SellerPayoutsView.js +2 -2
- package/dist/features/seller/components/SellerPreOrdersView.js +2 -2
- package/dist/features/seller/components/SellerPrizeDrawsView.js +2 -2
- package/dist/features/seller/components/SellerProductsView.js +2 -2
- package/dist/features/seller/components/SellerShippingConfigsView.js +2 -2
- package/dist/features/seller/components/SellerStickersView.js +2 -2
- package/dist/features/seller/components/SellerStoreCategoriesView.js +1 -1
- package/dist/features/seller/components/SublistingInlineSelect.js +1 -1
- package/dist/features/seller/hooks/useSellerListingData.d.ts +1 -1
- package/dist/features/seller/schemas/index.d.ts +16 -16
- package/dist/features/server-errors/schemas/index.d.ts +4 -4
- package/dist/features/shell/StepForm.d.ts +1 -1
- package/dist/features/shipments/components/AdminShipmentsView.js +2 -2
- package/dist/features/stores/components/StoreProductsView.js +1 -1
- package/dist/features/stores/components/StoresIndexListing.js +1 -1
- package/dist/features/stores/schemas/index.d.ts +30 -30
- package/dist/features/support/schemas/index.d.ts +2 -2
- package/dist/features/tester/seed-data/tester-checklist-seed-data.js +68 -1
- package/dist/features/whatsapp-bot/helpers/payment-proof-message.d.ts +14 -0
- package/dist/features/whatsapp-bot/helpers/payment-proof-message.js +17 -0
- package/dist/features/whatsapp-bot/helpers/whatsapp.d.ts +2 -8
- package/dist/features/whatsapp-bot/helpers/whatsapp.js +4 -11
- package/dist/features/wishlist/repository/user-wishlist.repository.d.ts +11 -0
- package/dist/features/wishlist/repository/user-wishlist.repository.js +33 -0
- package/dist/index.d.ts +7 -12
- package/dist/index.js +16 -28
- package/dist/next/components/ErrorView.js +1 -1
- package/dist/next/components/NotFoundView.js +1 -1
- package/dist/next/components/UnauthorizedView.js +1 -1
- package/dist/next/routing/route-map.d.ts +4 -0
- package/dist/next/routing/route-map.js +2 -0
- package/dist/react/contexts/SessionContext.d.ts +1 -1
- package/dist/react/hooks/use-action-dispatch.d.ts +1 -1
- package/dist/react/hooks/useFormStatePreservation.d.ts +1 -1
- package/dist/schemas/registry.d.ts +236 -236
- package/dist/schemas/webhooks/razorpay.d.ts +100 -100
- package/dist/security/index.d.ts +1 -1
- package/dist/security/index.js +1 -1
- package/dist/security/rate-limit.d.ts +10 -0
- package/dist/security/rate-limit.js +13 -1
- package/dist/seed/events-seed-data.js +52 -1
- package/dist/server.d.ts +6 -0
- package/dist/server.js +8 -0
- package/dist/styles.css +25 -1
- package/dist/tailwind-utilities.css +1 -1
- package/dist/ui/components/HorizontalScroller.d.ts +7 -1
- package/dist/ui/components/HorizontalScroller.js +2 -2
- package/dist/ui/components/HorizontalScroller.style.css +24 -0
- package/dist/validation/schemas.d.ts +12 -12
- package/package.json +1 -1
|
@@ -345,6 +345,8 @@ export const EVENT_FIELDS = {
|
|
|
345
345
|
SPIN_MAX_PER_USER: "spinMaxPerUser",
|
|
346
346
|
SPIN_WINDOW_START: "spinWindowStart",
|
|
347
347
|
SPIN_WINDOW_END: "spinWindowEnd",
|
|
348
|
+
// Guest participation toggle (2026-08-20)
|
|
349
|
+
ALLOW_GUEST_PARTICIPATION: "allowGuestParticipation",
|
|
348
350
|
CREATED_AT: "createdAt",
|
|
349
351
|
UPDATED_AT: "updatedAt",
|
|
350
352
|
STATUS_VALUES: {
|
|
@@ -383,9 +385,11 @@ export const EVENT_ENTRY_FIELDS = {
|
|
|
383
385
|
STATUS: "status",
|
|
384
386
|
RAFFLE_ELIGIBLE: "raffleEligible",
|
|
385
387
|
SPIN_USED: "spinUsed",
|
|
388
|
+
SPIN_COUNT: "spinCount",
|
|
386
389
|
SPIN_PRIZE_ID: "spinPrizeId",
|
|
387
390
|
SPIN_PRIZE_COUPON_CODE: "spinPrizeCouponCode",
|
|
388
391
|
SPIN_WON_AT: "spinWonAt",
|
|
392
|
+
GUEST_IP_HASH: "guestIpHash",
|
|
389
393
|
CREATED_AT: "createdAt",
|
|
390
394
|
STATUS_VALUES: {
|
|
391
395
|
CONFIRMED: "CONFIRMED",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface DeveloperViewProps {
|
|
2
|
+
labels?: {
|
|
3
|
+
title?: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
journeyTitle?: string;
|
|
6
|
+
backToTeam?: string;
|
|
7
|
+
empty?: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Reuses the existing `siteSettings.aboutContent.teamMembers` /
|
|
12
|
+
* `.milestones` data (already admin-editable via Site Settings → About) —
|
|
13
|
+
* filtered to `isDeveloper` members — rather than inventing a separate
|
|
14
|
+
* content model just for this page. See CLAUDE.md's About-family notes.
|
|
15
|
+
*/
|
|
16
|
+
export declare function DeveloperView({ labels }: DeveloperViewProps): Promise<import("react").JSX.Element>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { normalizeError } from "../../../errors/normalize";
|
|
3
|
+
import { Avatar, Badge, Div, Heading, Row, Section, Span, Stack, Text, TextLink } from "../../../ui";
|
|
4
|
+
import { ROUTES } from "../../../constants";
|
|
5
|
+
import { PAGE_CONTAINER } from "../../../_internal/shared/styles/page";
|
|
6
|
+
import { siteSettingsRepository } from "../../../repositories";
|
|
7
|
+
/**
|
|
8
|
+
* Reuses the existing `siteSettings.aboutContent.teamMembers` /
|
|
9
|
+
* `.milestones` data (already admin-editable via Site Settings → About) —
|
|
10
|
+
* filtered to `isDeveloper` members — rather than inventing a separate
|
|
11
|
+
* content model just for this page. See CLAUDE.md's About-family notes.
|
|
12
|
+
*/
|
|
13
|
+
export async function DeveloperView({ labels = {} }) {
|
|
14
|
+
const page = { container: PAGE_CONTAINER };
|
|
15
|
+
let teamMembers = [];
|
|
16
|
+
let milestones = [];
|
|
17
|
+
try {
|
|
18
|
+
const settings = await siteSettingsRepository.getSingleton();
|
|
19
|
+
const aboutContent = settings?.aboutContent ?? {};
|
|
20
|
+
teamMembers = Array.isArray(aboutContent.teamMembers) ? aboutContent.teamMembers : [];
|
|
21
|
+
milestones = Array.isArray(aboutContent.milestones) ? aboutContent.milestones : [];
|
|
22
|
+
}
|
|
23
|
+
catch (_err) {
|
|
24
|
+
void normalizeError(_err);
|
|
25
|
+
// Firestore unavailable — render the empty state below rather than crash.
|
|
26
|
+
}
|
|
27
|
+
const developers = teamMembers.filter((m) => m.isDeveloper);
|
|
28
|
+
return (_jsxs(Div, { className: "-mx-4 md:-mx-6 lg:-mx-8 -mt-6 sm:-mt-8 lg:-mt-10", children: [_jsx(Section, { color: "inverse", tone: "accent-banner", padding: "banner", children: _jsxs(Div, { className: `${page.container.sm}`, children: [_jsx(Heading, { color: "inverse", level: 1, variant: "none", className: "mb-3", children: labels.title ?? "Meet the Developer" }), _jsx(Text, { color: "inverse", variant: "none", className: "/80", size: "sm", children: labels.subtitle ?? "The person building LetItRip, one feature at a time." })] }) }), _jsxs(Div, { className: `${page.container.sm}`, padding: "content-banner", children: [developers.length === 0 ? (_jsx(Text, { variant: "secondary", children: labels.empty ?? "Developer profile coming soon." })) : (_jsx(Stack, { gap: "xl", children: developers.map((dev) => (_jsxs(Stack, { gap: "md", surface: "default", padding: "lg", rounded: "xl", border: "default", children: [_jsxs(Row, { gap: "md", align: "center", children: [_jsx(Avatar, { src: dev.photoUrl, name: dev.name, alt: dev.name, size: "lg" }), _jsxs(Stack, { gap: "xs", children: [_jsx(Heading, { level: 2, children: dev.name }), _jsxs(Row, { gap: "xs", wrap: true, children: [_jsx(Span, { size: "xs", weight: "bold", className: "text-primary tracking-wide", transform: "uppercase", children: dev.role }), dev.isFounder && _jsx(Badge, { variant: "primary", size: "xs", children: "Founder" }), _jsx(Badge, { variant: "secondary", size: "xs", children: "Developer" })] })] })] }), _jsx(Text, { variant: "secondary", className: "leading-relaxed", children: dev.bio })] }, dev.name))) })), milestones.length > 0 && (_jsxs(Div, { className: "mt-14 border-t", border: "default", padding: "t-xl", children: [_jsx(Heading, { level: 3, className: "mb-6", color: "muted", size: "sm", weight: "semibold", transform: "uppercase", children: labels.journeyTitle ?? "The Journey" }), _jsx(Stack, { className: "relative border-l-2 border-primary/30 max-w-2xl pl-[2rem]", gap: "lg", children: milestones.map(({ year, text }) => (_jsxs(Div, { className: "relative", children: [_jsx(Div, { className: "absolute -left-10 top-1 w-4 h-4 bg-primary border-2 border-white", rounded: "full" }), _jsx(Span, { size: "xs", weight: "bold", className: "text-primary tracking-wide", transform: "uppercase", children: year }), _jsx(Text, { className: "mt-1", children: text })] }, year))) })] })), _jsx(Div, { className: "mt-10", children: _jsx(TextLink, { href: String(ROUTES.PUBLIC.ABOUT), variant: "muted", size: "sm", children: labels.backToTeam ?? "← Meet the whole team" }) })] })] }));
|
|
29
|
+
}
|
|
@@ -23,6 +23,8 @@ export { UnauthorizedView } from "./components/UnauthorizedView";
|
|
|
23
23
|
export type { UnauthorizedViewProps } from "./components/UnauthorizedView";
|
|
24
24
|
export { PolicyPageView } from "./components/PolicyPageView";
|
|
25
25
|
export type { PolicyPageViewProps } from "./components/PolicyPageView";
|
|
26
|
+
export { DeveloperView } from "./components/DeveloperView";
|
|
27
|
+
export type { DeveloperViewProps } from "./components/DeveloperView";
|
|
26
28
|
export { FAQPageView } from "./components/FAQPageView";
|
|
27
29
|
export type { FAQPageViewProps } from "./components/FAQPageView";
|
|
28
30
|
export { HelpPageView } from "./components/HelpPageView";
|
|
@@ -10,6 +10,7 @@ export { HowOrdersWorkView } from "./components/HowOrdersWorkView";
|
|
|
10
10
|
export { HowReviewsWorkView } from "./components/HowReviewsWorkView";
|
|
11
11
|
export { UnauthorizedView } from "./components/UnauthorizedView";
|
|
12
12
|
export { PolicyPageView } from "./components/PolicyPageView";
|
|
13
|
+
export { DeveloperView } from "./components/DeveloperView";
|
|
13
14
|
export { FAQPageView } from "./components/FAQPageView";
|
|
14
15
|
export { HelpPageView } from "./components/HelpPageView";
|
|
15
16
|
export { HowAuctionsWorkView } from "./components/HowAuctionsWorkView";
|
|
@@ -14,8 +14,8 @@ export declare const userAddressSchema: z.ZodObject<{
|
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
country: string;
|
|
16
16
|
id: string;
|
|
17
|
-
state: string;
|
|
18
17
|
city: string;
|
|
18
|
+
state: string;
|
|
19
19
|
postalCode: string;
|
|
20
20
|
line1: string;
|
|
21
21
|
label?: string | undefined;
|
|
@@ -25,8 +25,8 @@ export declare const userAddressSchema: z.ZodObject<{
|
|
|
25
25
|
}, {
|
|
26
26
|
country: string;
|
|
27
27
|
id: string;
|
|
28
|
-
state: string;
|
|
29
28
|
city: string;
|
|
29
|
+
state: string;
|
|
30
30
|
postalCode: string;
|
|
31
31
|
line1: string;
|
|
32
32
|
label?: string | undefined;
|
|
@@ -44,14 +44,14 @@ export declare const notificationPreferencesSchema: z.ZodObject<{
|
|
|
44
44
|
push?: boolean | undefined;
|
|
45
45
|
promotions?: boolean | undefined;
|
|
46
46
|
newsletter?: boolean | undefined;
|
|
47
|
-
orderUpdates?: boolean | undefined;
|
|
48
47
|
sms?: boolean | undefined;
|
|
48
|
+
orderUpdates?: boolean | undefined;
|
|
49
49
|
}, {
|
|
50
50
|
push?: boolean | undefined;
|
|
51
51
|
promotions?: boolean | undefined;
|
|
52
52
|
newsletter?: boolean | undefined;
|
|
53
|
-
orderUpdates?: boolean | undefined;
|
|
54
53
|
sms?: boolean | undefined;
|
|
54
|
+
orderUpdates?: boolean | undefined;
|
|
55
55
|
}>;
|
|
56
56
|
/**
|
|
57
57
|
* Base Zod schema for a user profile.
|
|
@@ -85,8 +85,8 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
85
85
|
}, "strip", z.ZodTypeAny, {
|
|
86
86
|
country: string;
|
|
87
87
|
id: string;
|
|
88
|
-
state: string;
|
|
89
88
|
city: string;
|
|
89
|
+
state: string;
|
|
90
90
|
postalCode: string;
|
|
91
91
|
line1: string;
|
|
92
92
|
label?: string | undefined;
|
|
@@ -96,8 +96,8 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
96
96
|
}, {
|
|
97
97
|
country: string;
|
|
98
98
|
id: string;
|
|
99
|
-
state: string;
|
|
100
99
|
city: string;
|
|
100
|
+
state: string;
|
|
101
101
|
postalCode: string;
|
|
102
102
|
line1: string;
|
|
103
103
|
label?: string | undefined;
|
|
@@ -115,14 +115,14 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
115
115
|
push?: boolean | undefined;
|
|
116
116
|
promotions?: boolean | undefined;
|
|
117
117
|
newsletter?: boolean | undefined;
|
|
118
|
-
orderUpdates?: boolean | undefined;
|
|
119
118
|
sms?: boolean | undefined;
|
|
119
|
+
orderUpdates?: boolean | undefined;
|
|
120
120
|
}, {
|
|
121
121
|
push?: boolean | undefined;
|
|
122
122
|
promotions?: boolean | undefined;
|
|
123
123
|
newsletter?: boolean | undefined;
|
|
124
|
-
orderUpdates?: boolean | undefined;
|
|
125
124
|
sms?: boolean | undefined;
|
|
125
|
+
orderUpdates?: boolean | undefined;
|
|
126
126
|
}>>;
|
|
127
127
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
128
128
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -136,8 +136,8 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
136
136
|
addresses?: {
|
|
137
137
|
country: string;
|
|
138
138
|
id: string;
|
|
139
|
-
state: string;
|
|
140
139
|
city: string;
|
|
140
|
+
state: string;
|
|
141
141
|
postalCode: string;
|
|
142
142
|
line1: string;
|
|
143
143
|
label?: string | undefined;
|
|
@@ -146,14 +146,14 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
146
146
|
line2?: string | undefined;
|
|
147
147
|
}[] | undefined;
|
|
148
148
|
photoURL?: string | undefined;
|
|
149
|
+
bio?: string | undefined;
|
|
149
150
|
notificationPreferences?: {
|
|
150
151
|
push?: boolean | undefined;
|
|
151
152
|
promotions?: boolean | undefined;
|
|
152
153
|
newsletter?: boolean | undefined;
|
|
153
|
-
orderUpdates?: boolean | undefined;
|
|
154
154
|
sms?: boolean | undefined;
|
|
155
|
+
orderUpdates?: boolean | undefined;
|
|
155
156
|
} | undefined;
|
|
156
|
-
bio?: string | undefined;
|
|
157
157
|
}, {
|
|
158
158
|
id: string;
|
|
159
159
|
email?: string | undefined;
|
|
@@ -164,8 +164,8 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
164
164
|
addresses?: {
|
|
165
165
|
country: string;
|
|
166
166
|
id: string;
|
|
167
|
-
state: string;
|
|
168
167
|
city: string;
|
|
168
|
+
state: string;
|
|
169
169
|
postalCode: string;
|
|
170
170
|
line1: string;
|
|
171
171
|
label?: string | undefined;
|
|
@@ -174,14 +174,14 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
174
174
|
line2?: string | undefined;
|
|
175
175
|
}[] | undefined;
|
|
176
176
|
photoURL?: string | undefined;
|
|
177
|
+
bio?: string | undefined;
|
|
177
178
|
notificationPreferences?: {
|
|
178
179
|
push?: boolean | undefined;
|
|
179
180
|
promotions?: boolean | undefined;
|
|
180
181
|
newsletter?: boolean | undefined;
|
|
181
|
-
orderUpdates?: boolean | undefined;
|
|
182
182
|
sms?: boolean | undefined;
|
|
183
|
+
orderUpdates?: boolean | undefined;
|
|
183
184
|
} | undefined;
|
|
184
|
-
bio?: string | undefined;
|
|
185
185
|
}>;
|
|
186
186
|
/**
|
|
187
187
|
* Client-side mirror of the server's updateProfileSchema
|
|
@@ -196,12 +196,12 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
196
196
|
profileIsPublic: z.ZodOptional<z.ZodBoolean>;
|
|
197
197
|
}, "strip", z.ZodTypeAny, {
|
|
198
198
|
displayName?: string | undefined;
|
|
199
|
-
phoneNumber?: string | undefined;
|
|
200
199
|
bio?: string | undefined;
|
|
200
|
+
phoneNumber?: string | undefined;
|
|
201
201
|
profileIsPublic?: boolean | undefined;
|
|
202
202
|
}, {
|
|
203
203
|
displayName?: string | undefined;
|
|
204
|
-
phoneNumber?: string | undefined;
|
|
205
204
|
bio?: string | undefined;
|
|
205
|
+
phoneNumber?: string | undefined;
|
|
206
206
|
profileIsPublic?: boolean | undefined;
|
|
207
207
|
}>;
|
|
@@ -42,12 +42,12 @@ export declare const addressFirestoreSchema: z.ZodObject<{
|
|
|
42
42
|
}, z.ZodTypeAny, "passthrough">;
|
|
43
43
|
isDefault: boolean;
|
|
44
44
|
phone: string;
|
|
45
|
-
state: string;
|
|
46
45
|
city: string;
|
|
47
|
-
|
|
48
|
-
fullName: string;
|
|
49
|
-
ownerType: "user" | "store";
|
|
46
|
+
state: string;
|
|
50
47
|
ownerId: string;
|
|
48
|
+
ownerType: "user" | "store";
|
|
49
|
+
fullName: string;
|
|
50
|
+
addressLine1: string;
|
|
51
51
|
postalCode: string;
|
|
52
52
|
addressLine2?: string | undefined;
|
|
53
53
|
landmark?: string | undefined;
|
|
@@ -63,12 +63,12 @@ export declare const addressFirestoreSchema: z.ZodObject<{
|
|
|
63
63
|
}, z.ZodTypeAny, "passthrough">;
|
|
64
64
|
isDefault: boolean;
|
|
65
65
|
phone: string;
|
|
66
|
-
state: string;
|
|
67
66
|
city: string;
|
|
68
|
-
|
|
69
|
-
fullName: string;
|
|
70
|
-
ownerType: "user" | "store";
|
|
67
|
+
state: string;
|
|
71
68
|
ownerId: string;
|
|
69
|
+
ownerType: "user" | "store";
|
|
70
|
+
fullName: string;
|
|
71
|
+
addressLine1: string;
|
|
72
72
|
postalCode: string;
|
|
73
73
|
addressLine2?: string | undefined;
|
|
74
74
|
landmark?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import { useQueryClient } from "@tanstack/react-query";
|
|
6
6
|
import { Badge, Div, FilterChipGroup, Span, Stack, Text, useToast } from "../../../ui";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useApiMutation } from "@mohasinac/appkit/client";
|
|
4
|
-
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit";
|
|
5
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit/client";
|
|
5
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { useQueryClient } from "@tanstack/react-query";
|
|
8
8
|
import { FilterChipGroup, ListingLayout, RowActionMenu, useToast } from "../../../ui";
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* AdminArtView — admin browse of art print listings (EMI/art-stickers session).
|
|
5
5
|
* Mirrors AdminClassifiedView's thin config-driven pattern.
|
|
6
6
|
*/
|
|
7
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
7
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { ListingLayout } from "../../../ui";
|
|
10
10
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useApiMutation } from "@mohasinac/appkit/client";
|
|
4
|
-
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit";
|
|
5
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit/client";
|
|
5
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import React, { useState } from "react";
|
|
7
7
|
import { useQueryClient } from "@tanstack/react-query";
|
|
8
8
|
import { ConfirmDeleteModal, FilterChipGroup, ListingLayout, RowActionMenu, useToast } from "../../../ui";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit";
|
|
4
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit/client";
|
|
4
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { FilterChipGroup, ListingLayout } from "../../../ui";
|
|
7
7
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit";
|
|
4
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit/client";
|
|
4
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { FilterChipGroup, ListingLayout, Text } from "../../../ui";
|
|
7
7
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { normalizeError } from "../../../errors/normalize";
|
|
4
|
-
import { SIEVE_OP, sieveFilter } from "@mohasinac/appkit";
|
|
5
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { SIEVE_OP, sieveFilter } from "@mohasinac/appkit/client";
|
|
5
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import { useState, useCallback } from "react";
|
|
7
7
|
import { Badge, Button, FilterChipGroup, Stack, Text, TextLink, useToast } from "../../../ui";
|
|
8
8
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { SIEVE_OP, sieveFilter } from "@mohasinac/appkit";
|
|
4
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { SIEVE_OP, sieveFilter } from "@mohasinac/appkit/client";
|
|
4
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { FilterChipGroup, ListingLayout } from "../../../ui";
|
|
7
7
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit";
|
|
4
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit/client";
|
|
4
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { FilterChipGroup, Heading, ListingLayout, Span, Text } from "../../../ui";
|
|
7
7
|
import { CATEGORY_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* AdminClassifiedView — admin browse of classified listings (W1-29).
|
|
5
5
|
* Read-only summary with edit-handoff to the seller-portal edit route.
|
|
6
6
|
*/
|
|
7
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
7
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { ListingLayout } from "../../../ui";
|
|
10
10
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useApiMutation } from "@mohasinac/appkit/client";
|
|
4
|
-
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit";
|
|
5
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit/client";
|
|
5
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import React, { useState } from "react";
|
|
7
7
|
import { useQueryClient } from "@tanstack/react-query";
|
|
8
8
|
import { ConfirmDeleteModal, FilterChipGroup, ListingLayout, RowActionMenu, useToast } from "../../../ui";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { normalizeError } from "../../../errors/normalize";
|
|
4
|
-
import { SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit";
|
|
5
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit/client";
|
|
5
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import React, { useCallback } from "react";
|
|
7
7
|
import { useQueryClient } from "@tanstack/react-query";
|
|
8
8
|
import { Div, FilterChipGroup, ListingLayout, Text, useToast } from "../../../ui";
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
/**
|
|
4
4
|
* AdminDigitalCodesView — admin browse of digital-code listings (W1-29).
|
|
5
5
|
*/
|
|
6
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
6
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { ListingLayout } from "../../../ui";
|
|
9
9
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit";
|
|
4
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit/client";
|
|
4
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import React, { useMemo } from "react";
|
|
6
6
|
import { FilterChipGroup, Heading, ListingLayout, Span, Text } from "../../../ui";
|
|
7
7
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { useRouter, useSearchParams, usePathname } from "next/navigation";
|
|
6
6
|
import { FilterChipGroup, ListingLayout } from "../../../ui";
|
|
@@ -5,7 +5,7 @@ import { normalizeError } from "../../../errors/normalize";
|
|
|
5
5
|
* AdminGroupedListingsView — admin moderation view for grouped product listings.
|
|
6
6
|
* W1-29 — pairs with the new GET /api/admin/grouped-listings endpoint.
|
|
7
7
|
*/
|
|
8
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
8
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
9
9
|
import React, { useState } from "react";
|
|
10
10
|
import { ListingLayout } from "../../../ui";
|
|
11
11
|
import { Button, Row, SideDrawer, Stack, Text, useToast, } from "../../../ui";
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* AdminHistoryView — read-only admin insights for the top-level `history` collection.
|
|
5
5
|
* One row per user with item count + last visit. Mirrors AdminWishlistsView.
|
|
6
6
|
*/
|
|
7
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
7
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { ListingLayout } from "../../../ui";
|
|
10
10
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
/**
|
|
4
4
|
* AdminLiveView — admin browse of live-item listings (W1-29).
|
|
5
5
|
*/
|
|
6
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
6
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { ListingLayout } from "../../../ui";
|
|
9
9
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { normalizeError } from "../../../errors/normalize";
|
|
4
4
|
import { useApiMutation, useBulkEvent, RTDB_PATHS } from "@mohasinac/appkit/client";
|
|
5
|
-
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit";
|
|
6
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
5
|
+
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit/client";
|
|
6
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
7
7
|
import React, { useCallback, useEffect, useState } from "react";
|
|
8
8
|
import { useQueryClient } from "@tanstack/react-query";
|
|
9
9
|
import { Button, ConfirmDeleteModal, FilterChipGroup, ListingLayout, RowActionMenu, useToast } from "../../../ui";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useApiMutation } from "@mohasinac/appkit/client";
|
|
4
|
-
import { SIEVE_OP, sieveFilter } from "@mohasinac/appkit";
|
|
5
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { SIEVE_OP, sieveFilter } from "@mohasinac/appkit/client";
|
|
5
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import React, { useState } from "react";
|
|
7
7
|
import { useQueryClient } from "@tanstack/react-query";
|
|
8
8
|
import { ConfirmDeleteModal, FilterChipGroup, ListingLayout, RowActionMenu, useToast } from "../../../ui";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit";
|
|
4
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit/client";
|
|
4
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import React, { useState, useCallback } from "react";
|
|
6
6
|
import { useRouter } from "next/navigation";
|
|
7
7
|
import { FilterChipGroup, ListingLayout, useToast } from "../../../ui";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import { useQueryClient } from "@tanstack/react-query";
|
|
6
6
|
import { Badge, Div, FilterChipGroup, Span, Stack, Text, useToast } from "../../../ui";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { normalizeError } from "../../../errors/normalize";
|
|
4
4
|
import { useApiMutation, useBulkEvent, RTDB_PATHS } from "@mohasinac/appkit/client";
|
|
5
|
-
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit";
|
|
6
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
5
|
+
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit/client";
|
|
6
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
7
7
|
import React, { useState, useEffect } from "react";
|
|
8
8
|
import { useQueryClient } from "@tanstack/react-query";
|
|
9
9
|
import { Button, FilterChipGroup, Form, FormActions, Input, ListingLayout, Modal, RowActionMenu, useToast, } from "../../../ui";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit";
|
|
4
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit/client";
|
|
4
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { Pencil, ListChecks } from "lucide-react";
|
|
7
7
|
import { Badge, Button, FilterChipGroup, ListingLayout, Row, Span, Text, TextLink } from "../../../ui";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { normalizeError } from "../../../errors/normalize";
|
|
4
|
-
import { SIEVE_OP, Stack, sieveFilter, Row } from "@mohasinac/appkit";
|
|
5
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { SIEVE_OP, Stack, sieveFilter, Row } from "@mohasinac/appkit/client";
|
|
5
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import React, { useState, useCallback } from "react";
|
|
7
7
|
import { ListingLayout, Span, Text, Toggle, useToast } from "../../../ui";
|
|
8
8
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useApiMutation } from "@mohasinac/appkit/client";
|
|
4
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import { useState } from "react";
|
|
6
6
|
import { useQueryClient } from "@tanstack/react-query";
|
|
7
7
|
import { ConfirmDeleteModal, RowActionMenu, useToast } from "../../../ui";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useApiMutation } from "@mohasinac/appkit/client";
|
|
4
|
-
import { Row, SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit";
|
|
5
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { Row, SIEVE_OP, Stack, sieveFilter } from "@mohasinac/appkit/client";
|
|
5
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import React, { useState, useCallback } from "react";
|
|
7
7
|
import { useQueryClient } from "@tanstack/react-query";
|
|
8
8
|
import { Button, FilterChipGroup, Label, ListingLayout, Modal, RowActionMenu, Textarea, useToast } from "../../../ui";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit";
|
|
4
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit/client";
|
|
4
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
5
5
|
import React, { useState } from "react";
|
|
6
6
|
import { useRouter } from "next/navigation";
|
|
7
7
|
import { FilterChipGroup, ListingLayout, RowActionMenu, Span, Stack, Text } from "../../../ui";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useApiMutation } from "@mohasinac/appkit/client";
|
|
4
|
-
import { SIEVE_OP, sieveFilter } from "@mohasinac/appkit";
|
|
5
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { SIEVE_OP, sieveFilter } from "@mohasinac/appkit/client";
|
|
5
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import React, { useState } from "react";
|
|
7
7
|
import { useQueryClient } from "@tanstack/react-query";
|
|
8
8
|
import { ConfirmDeleteModal, FilterChipGroup, ListingLayout, RowActionMenu, useToast } from "../../../ui";
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* AdminStickersView — admin browse of sticker listings (EMI/art-stickers session).
|
|
5
5
|
* Mirrors AdminClassifiedView's thin config-driven pattern.
|
|
6
6
|
*/
|
|
7
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
7
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { ListingLayout } from "../../../ui";
|
|
10
10
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
3
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
4
4
|
import { toRecordArray, toStringValue, } from "../hooks/useAdminListingData";
|
|
5
5
|
import { DataListingView } from "./DataListingView";
|
|
6
6
|
import { ADMIN_ENDPOINTS } from "../../../constants/api-endpoints";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useApiMutation } from "@mohasinac/appkit/client";
|
|
4
|
-
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit";
|
|
5
|
-
import { sortBy } from "@mohasinac/appkit";
|
|
4
|
+
import { sieveFilter, SIEVE_OP } from "@mohasinac/appkit/client";
|
|
5
|
+
import { sortBy } from "@mohasinac/appkit/client";
|
|
6
6
|
import React, { useState } from "react";
|
|
7
7
|
import { useQueryClient } from "@tanstack/react-query";
|
|
8
8
|
import { FilterChipGroup, ListingLayout, RowActionMenu, useToast } from "../../../ui";
|